Showing posts with label microcontroller. Show all posts
Showing posts with label microcontroller. Show all posts

Wednesday, October 7, 2009

Microcontroller

The NXP LPC214x microcontroller (IC1) provided with the MCB2140 board is a high-end LPC214x device with advanced ADC, DAC and USB capabilities.

A 12.0 MHz crystal (Q1) provides the clock signal for the CPU.

MCB2140 Board Microcontroller

Monday, October 5, 2009

AVR Digital Clock with Roman Numerals




This digital clock project will display a Roman number instead Hindu-Arabic numeral system (1,2,3... ). The project uses micro ATTINY2313 as main processor and LCD to display the clock. When you turn on the device, it will shows a screen flashes "Tempera tempus" as reminder to adjust the time.


The adjustment is done via the small button.
  • Press and hold the button for about 3 seconds -> hours appear on the screen -> release the button.
  • Press the button again and hold -> the hours advance from "I" to "XXIV" -> release the button on the time right.
  • Wait about 3 seconds -> minutes to appear on the screen.
  • Press the button and hold -> the minutes advance from "nothing" to "LIX" -> release on just minutes.

    Unfortunately, you have to readjust the time after your turn off the power, because there is no RTC in this  project.

    Download schematic and source code here

    Monday, September 28, 2009

    Remote Control using PIC16F84A Microcontroller

    Remote Control using PIC16F84A Microcontroller
    Remote Control using PIC16F84A Microcontroller


    design controls up to 8 devices using a PIC microcontroller (PIC16F84A) connected to the phone line. The unique feature here is that unlike other telephone line based remote control, this device does not need the call to be answered at the remote end so the call will not be charged. This device depends on number of rings given on the telephone line to activate/deactivate devices.

    1. Circuit diagram (designed by www.tronicszone.com)
    2. Parts List
    3. C source code complied using HT-Soft PIC C compiler
    4. Compiler Hex code file to be directly programmed into the PIC

    Instructions for the telephone operated remote switch:

    A) While constructing the main circuit, make sure you use 18pin sockets (base) for the PIC16F84A. Do not solder the IC directly to the board since you may have to remove it for programming. Before you use the PIC on the main circuit, you have to first program it.

    B) To program the PIC16F84A microcontroller:

    There are lots of programmers on the Internet available to program PIC microncontrollers. Given below are links to some free PIC programmer hardware/software:

    * http://www.covingtoninnovations.com/noppp/
    * http://www.picallw.com/
    * http://www.lpilsley.uklinux.net/software.htm

    Note: Programm the chip with the hex file attached above and remember to set the fuse bits to use "EXTERNAL HS OSCILLATOR" mode!

    C) Remove the PIC from the programmer socket and put it into the main circuit socket.

    Set the DIP SWITCH as follows:

    Switch3 Switch4 No. of initial rings to Switch ON(activate half of the board)

    OFF OFF 5

    ON OFF 4

    OFF ON 3

    ON ON 2

    The number of initial rings to Switch OFF is one more than the number of rings to switch ON. For example, if you have set switch3 OFF & Switch4 ON then number of initial rings to activate half of the board to switch ON the relays is 3 and number of initial rings to activate half of the board to switch OFF the relays is 3+1 = 4

    Switch1 Swtich2 Delay before making the second set of rings

    OFF OFF 20sec

    ON OFF 15sec

    OFF ON 10sec

    ON ON 5sec

    This is the maximum delay the board can take after it is half activated. It will reset after this delay.

    D) Now connect the circuit to the phone line and switch on its power supply.

    E) You can test the board now. For example set the DIP switch to Switch1 ON, Switch2 OFF (15 sec delay) & switch3 ON, switch4 OFF (4 rings to activate half for switching ON). If you want to switch ON relay 1 (connected to RB0 of main circuit) then you have to do the following:

    1. Give 4 rings and put down the receiver
    2. Wait 5 seconds (this 5 seconds wait is required to prevent the board from detecting continous rings)
    3. then within 15 seconds give 1 ring (1 ring for relay1, 2 rings for relay2 and so on) and put down the receiver
    4. then within 5 sec the relay1 will switch ON

    To switch off relay1:

    1. Give 5 rings and put down the receiver
    2. Wait 5 seconds (this 5 seconds wait is required to prevent the board from detecting continous rings)
    3. then within 15 seconds give 1 ring (1 ring for relay1, 2 rings for relay2 and so on) and put down the receiver
    4. then within 5 sec the relay1 will switch OFF

    IMPORTANT: This circuit has been tested by me and found to work correctly. I cannot guarantee that the circuit will work at your end since it depends on error free construction and usage. Please do not contact for any support and requests, any such requests will not be entertained.

    Thursday, September 17, 2009

    Simple PIC RF/Microwave Frequency Counter

    PIC RF/Microwave Frequency Counter
    This RF/Microwave Frequency Counter project built based on PIC 16F876A. The basic counter rate is extended to at least 180MHz using two 74Fxx devices. A divide-by-64 prescaler is used for higher frequencies up to at least 4.5GHz. All results of the measurement are shown on an inexpensive, 2x16 alphanumeric LCD module with large characters.

    There are 3 inpust on this project a microwave (prescaled) input, an RF input and a TTL input. The microwave and RF inputs are AC coupled and terminated to a low impedance (around 50ohms). The TTL input is DC coupled and has a high input impedance. A progress-bar indicator is provided on the LCD for the gate timing.

    Both the microwave and RF inputs have an additional feature : a simple signal-level detector driving yet another bar indicator on the LCD module. This is very useful to check for the correct input-signal level as well as an indicator for circuit tuning or absorption-wave-meter dip display (Lecher wires). This project designed by Matjaz Vidmar.

    tag : RF counter, Microwave Frequency counter, PIC project source

    Simple PIC RF/Microwave Frequency Counter

    PIC RF/Microwave Frequency Counter
    This RF/Microwave Frequency Counter project built based on PIC 16F876A. The basic counter rate is extended to at least 180MHz using two 74Fxx devices. A divide-by-64 prescaler is used for higher frequencies up to at least 4.5GHz. All results of the measurement are shown on an inexpensive, 2x16 alphanumeric LCD module with large characters.

    There are 3 inpust on this project a microwave (prescaled) input, an RF input and a TTL input. The microwave and RF inputs are AC coupled and terminated to a low impedance (around 50ohms). The TTL input is DC coupled and has a high input impedance. A progress-bar indicator is provided on the LCD for the gate timing.

    Both the microwave and RF inputs have an additional feature : a simple signal-level detector driving yet another bar indicator on the LCD module. This is very useful to check for the correct input-signal level as well as an indicator for circuit tuning or absorption-wave-meter dip display (Lecher wires). This project designed by Matjaz Vidmar.

    tag : RF counter, Microwave Frequency counter, PIC project source

    Simple PIC RF/Microwave Frequency Counter

    PIC RF/Microwave Frequency Counter
    This RF/Microwave Frequency Counter project built based on PIC 16F876A. The basic counter rate is extended to at least 180MHz using two 74Fxx devices. A divide-by-64 prescaler is used for higher frequencies up to at least 4.5GHz. All results of the measurement are shown on an inexpensive, 2x16 alphanumeric LCD module with large characters.

    There are 3 inpust on this project a microwave (prescaled) input, an RF input and a TTL input. The microwave and RF inputs are AC coupled and terminated to a low impedance (around 50ohms). The TTL input is DC coupled and has a high input impedance. A progress-bar indicator is provided on the LCD for the gate timing.

    Both the microwave and RF inputs have an additional feature : a simple signal-level detector driving yet another bar indicator on the LCD module. This is very useful to check for the correct input-signal level as well as an indicator for circuit tuning or absorption-wave-meter dip display (Lecher wires). This project designed by Matjaz Vidmar.

    tag : RF counter, Microwave Frequency counter, PIC project source

    Sunday, August 30, 2009

    AVR Shark Tag Project

    microcontroller project animal tag
    The goal of this project was to develop a shark tag working bench-top microcontroller platform. It is to be used for on-animal, in-situ data logging applications involving sharks and potentially other large pelagic.

    The project used the Atmel Mega32 microcontroller to develop the core platform and functionality of a data archival tag. The project use temperature and pressure as sensor variable. The tasks ranged from logging sensor data to developing a simple user interface that requires only the addition of a laptop and a custom RS232 serial cable in the field.

    It used an off-the-shelf SD (Secure Digital) card using flash memory for large capacity multi-read/write data storage. The microcontroller’s ADCs (analog to digital converters) were used to convert analog voltages produced by select sensors into digital format.

    Tag: Animal Tag, shark, data logging, avr project src


    AVR Shark Tag Project

    microcontroller project animal tag
    The goal of this project was to develop a shark tag working bench-top microcontroller platform. It is to be used for on-animal, in-situ data logging applications involving sharks and potentially other large pelagic.

    The project used the Atmel Mega32 microcontroller to develop the core platform and functionality of a data archival tag. The project use temperature and pressure as sensor variable. The tasks ranged from logging sensor data to developing a simple user interface that requires only the addition of a laptop and a custom RS232 serial cable in the field.

    It used an off-the-shelf SD (Secure Digital) card using flash memory for large capacity multi-read/write data storage. The microcontroller’s ADCs (analog to digital converters) were used to convert analog voltages produced by select sensors into digital format.

    Tag: Animal Tag, shark, data logging, avr project src


    AVR Shark Tag Project

    microcontroller project animal tag
    The goal of this project was to develop a shark tag working bench-top microcontroller platform. It is to be used for on-animal, in-situ data logging applications involving sharks and potentially other large pelagic.

    The project used the Atmel Mega32 microcontroller to develop the core platform and functionality of a data archival tag. The project use temperature and pressure as sensor variable. The tasks ranged from logging sensor data to developing a simple user interface that requires only the addition of a laptop and a custom RS232 serial cable in the field.

    It used an off-the-shelf SD (Secure Digital) card using flash memory for large capacity multi-read/write data storage. The microcontroller’s ADCs (analog to digital converters) were used to convert analog voltages produced by select sensors into digital format.

    Tag: Animal Tag, shark, data logging, avr project src


    Thursday, August 13, 2009

    AVR Rotating Led Display

    Cool POV project : AVR Rotating Led Display


    If you like Rotating LED Display project, check out Rotating Led Display project by Aki Korhonen. He made POV project using modified 8 cm fan and microcontroller AVR AT mega as main part. To control the led, the project use 74HC595D shift registers. Not only can display the text this Rotating Led display can also demonstrate drawing and playable Pong game. Check the video below,





    tag: POV led display, rotating display, LED animation, AVR project (src)


    AVR Rotating Led Display

    Cool POV project : AVR Rotating Led Display


    If you like Rotating LED Display project, check out Rotating Led Display project by Aki Korhonen. He made POV project using modified 8 cm fan and microcontroller AVR AT mega as main part. To control the led, the project use 74HC595D shift registers. Not only can display the text this Rotating Led display can also demonstrate drawing and playable Pong game. Check the video below,





    tag: POV led display, rotating display, LED animation, AVR project (src)


    AVR Rotating Led Display

    Cool POV project : AVR Rotating Led Display


    If you like Rotating LED Display project, check out Rotating Led Display project by Aki Korhonen. He made POV project using modified 8 cm fan and microcontroller AVR AT mega as main part. To control the led, the project use 74HC595D shift registers. Not only can display the text this Rotating Led display can also demonstrate drawing and playable Pong game. Check the video below,





    tag: POV led display, rotating display, LED animation, AVR project (src)


    Tuesday, August 11, 2009

    Inductive Touch Sensing Keyboard Circuit

    Figure shows an example for a 4-key Inductive Touch Sensing keyboard
    with key controlled by the IO pins of the PIC® MCU.



    The PIC® microcontroller is used to generate a squarewave signal and
    to do all the necessary operations forproper detection of the key press event.

    Then, RIN-CIN filter converts the square wave output ofthe PWM into
    a quasi-triangular waveform.

    To calculate the amplitude of the triangular signal, thestandard charging
    time equation for an RC network willbe used

    MCP2036
    DescriptionThe MCP2036 Inductive Sensor Analog Front End(AFE)
    combines all the necessary analog functions fora complete inductance
    measurement system.The device includes :• High-frequency,
    current-mode coil driver forexciting the sensor coil.• Synchronous detector
    for converting AC sensevoltages into DC levels.• Output amplifier/filter to
    improve resolution andlimit noise.• Virtual ground reference generator for
    singlesupply operation.

    Features
    • Complete Inductance Measurement System:
    - Low-Impedance Current Driver
    - Sensor/Reference Coil Multiplexer
    - High-Frequency Detector
    • Operating Voltage: 2.7 to 5.5V
    • Low-Power Standby Mode
    • Gain and Frequency set by external passivecomponents


    MCP2036 Datasheet pdf
    http://ww1.microchip.com/downloads/en/DeviceDoc/22186A.pdf

    Introduction to Inductive Touch Sensing Vedio

    Introduction to mTouch Inductive Touch Sensing Part 1



    Introduction to mTouch Inductive Touch Sensing Part 2

    Sunday, August 2, 2009

    PIC Cactus LED Display

    LED Cactus Display PIC Project

    LEDactus is LED display project that resemble Cactus. It used PIC microcontroller 18F1320 as controller of the LED. LEDactus is immobile and attempts to survive by creating a pleasant display. It can produce more complex and mesmerizing displays. And in the latest generations, a sense of touch is added to allow the LEDactus to interact with passersby.

    term : LED display, electronic cactus, PIC project (src)

    PIC Cactus LED Display

    LED Cactus Display PIC Project

    LEDactus is LED display project that resemble Cactus. It used PIC microcontroller 18F1320 as controller of the LED. LEDactus is immobile and attempts to survive by creating a pleasant display. It can produce more complex and mesmerizing displays. And in the latest generations, a sense of touch is added to allow the LEDactus to interact with passersby.

    term : LED display, electronic cactus, PIC project (src)

    PIC Cactus LED Display

    LED Cactus Display PIC Project

    LEDactus is LED display project that resemble Cactus. It used PIC microcontroller 18F1320 as controller of the LED. LEDactus is immobile and attempts to survive by creating a pleasant display. It can produce more complex and mesmerizing displays. And in the latest generations, a sense of touch is added to allow the LEDactus to interact with passersby.

    term : LED display, electronic cactus, PIC project (src)

    Tuesday, June 30, 2009

    PIC LCD Oscilloscope for Spectrum Analyzers

    PIC LCD Oscilloscope for Spectrum Analyzers
    This is simple and inexpensive LCD oscilloscope for spectrum analyzer display. The project use PIC 16F876A as main processor. Although a small LCD screen is not as good as analog oscilloscope, a LCD oscilloscope may be very useful in field measurements, for battery operation or you need different measurement at the same time along with oscilloscope.

    The 80dB scale of this LCD oscilloscope can be adjusted with the two trimmers providing the reference voltages to the A/D converter. The operation of the LCD oscilloscope is slightly different between the 80dB mode and the 40dB mode. In the 80dB mode, the trace is always visible and saturates on the bottom or top of screen. In the 40dB mode, the trace runs out of the screen and only the central part of the original 80dB scale is displayed. This project designed by Matjaz Vidmar.

    Download
    Source code, documentation and schematic

    tags : LCD, Oscilloscope, Spectrum Analyzer, PIC, microcontroller, project src

    PIC LCD Oscilloscope for Spectrum Analyzers

    PIC LCD Oscilloscope for Spectrum Analyzers
    This is simple and inexpensive LCD oscilloscope for spectrum analyzer display. The project use PIC 16F876A as main processor. Although a small LCD screen is not as good as analog oscilloscope, a LCD oscilloscope may be very useful in field measurements, for battery operation or you need different measurement at the same time along with oscilloscope.

    The 80dB scale of this LCD oscilloscope can be adjusted with the two trimmers providing the reference voltages to the A/D converter. The operation of the LCD oscilloscope is slightly different between the 80dB mode and the 40dB mode. In the 80dB mode, the trace is always visible and saturates on the bottom or top of screen. In the 40dB mode, the trace runs out of the screen and only the central part of the original 80dB scale is displayed. This project designed by Matjaz Vidmar.

    Download
    Source code, documentation and schematic

    tags : LCD, Oscilloscope, Spectrum Analyzer, PIC, microcontroller, project src

    PIC LCD Oscilloscope for Spectrum Analyzers

    PIC LCD Oscilloscope for Spectrum Analyzers
    This is simple and inexpensive LCD oscilloscope for spectrum analyzer display. The project use PIC 16F876A as main processor. Although a small LCD screen is not as good as analog oscilloscope, a LCD oscilloscope may be very useful in field measurements, for battery operation or you need different measurement at the same time along with oscilloscope.

    The 80dB scale of this LCD oscilloscope can be adjusted with the two trimmers providing the reference voltages to the A/D converter. The operation of the LCD oscilloscope is slightly different between the 80dB mode and the 40dB mode. In the 80dB mode, the trace is always visible and saturates on the bottom or top of screen. In the 40dB mode, the trace runs out of the screen and only the central part of the original 80dB scale is displayed. This project designed by Matjaz Vidmar.

    Download
    Source code, documentation and schematic

    tags : LCD, Oscilloscope, Spectrum Analyzer, PIC, microcontroller, project src

    Wednesday, June 24, 2009

    USB PIC Programmer

    open source USB PIC Programmer

    If you start learning PIC microcontroller, you need PIC progrmmer to "fill" your PIC with compiled source code. You can build your own PIC programmer like USBPICprog project.

    Usbpicprog is an USB in circuit programmer for Microchip PIC processors. The hardware is as simple. The latest version only contains one PIC18F2550, 3 mosfets, and besides the connectors a hand full of passive components.

    download
    Open source programmer