Control Nokia 3310 Graphical LCD

Do you still remember old good Nokia 3310? I remember it was my very first cellular phone I had - and it was expensive. Now these phones are obsolete but some people still uses them as unbreakable and reliable phones. If you have one you can do some fun with its graphical LCD.

Nokia3310_pic_programming.jpg

Nokia 3310 graphical LCD is Philips PCD8544 controller based LCD that can be interfaced via SPI connection. So this is ideal for interfacing with microcontrollers like PIC16F877P. LCD pinout is as follows:

1 - VDD ==> Input voltage.
2 - SCK ==> Serial Clock.
3 - SDI ==> Serial Data Input.
4 - D/C ==> Data/Command Input.
5 - SCE ==> Chip Select.
6 - GND ==> Ground.
7 - VOUT ==> VLCD.
8 - RES ==> Reset.

So connection is obvious. Other part is writing code. Some demo application can be found here written for Hi-Tech C compiler.

Read

Stand alone CPU cooler fan speed tester

PC can display CPU fan speed via simple application. Another option is to go to BIOS menu and read fan speed value. But if you want to have stand alone device that measures CPU cooler fan speed so here it is. It is a PIC16F627 based fan tester with four 7 segment LED displays.

CPU_Fan_Tester_pic.JPG

CPU fan sends tachometric pulses via separate wire and can be calculated as RPM. PIC captures and calculates the time by using two timers/counters. One captures pulses and another calculates elapsed time. For instance, by capturing the amount of pulses within the period of 1 second would yield the frequency at which the fan spins, e.g. 60Hz. To convert to RPM it is a simple matter of multiplying the frequency in Hz by 60, which in this case yields to 3600 RPM. Schematic is simple - the most components are used for interfacing LED displays. They are controlled via BCD converter and transistor keys. Fan pulse wire connects directly to PIC pin via pull-up resistor as amplitude of fan pulses is same as PIC power supply - 5V.

Read

RFID reader based on PIC microcontroller

RFID cards are commonly used in many areas like access control, security, and for other identification purposes. One of simplest cards to read are HID ISOProx that don’t use any encryption. Their carrier frequency is 125 kHz.

 PIC_RFID_Reader.jpg

Hardest part in this reader project is the reader itself as it has to power the tag with magnetic field and sense the transmitted signal. For this series resonance of 150 kHz circuit - antenna is used. Signal from antenna is passed through low pass and band pass circuits and then to PIC comparator, where RFID FSK pulses are detected and decoded. Latest ASM source can be seen here. Probably RFID reader could use more advanced microcontroller than PIC16F628A for more efficient signal reading by using interrupt based compare capture module as this one already uses it for 150 kHz carrier signal generation.

Read

Simple 1s to 15s rocket timer

If you are a rocket modeling hobbyist and need simple and reliable rocket timer with adjustable time this project is for you. Timer can be set from 1s to 15s by using 4 dip switch IC. Depending on switch binary position 2^4=16, the time is set when second stage of rocket has to be ignited.

rocket_timer.jpg

Project is based on common PIC16F84 running at 4MHz. MICROCHIP TC4422 is used to control the voltage and current to the “igniter”. Timer also has two failsafes to avoid accidental ignition. Device is powered from 9V battery and is small size as weight is critical in rocketing. Program is written in assembly language.

Read

A software based DTMF Remote control

The intent of this project was to build a software DTMF decoder which is run on PIC microcontroller. No any external decoder IC is needed only few external components. DTMF control is convenient where phone line is present, as device can share it with other phone devices.

pic_DTMF_decoder.jpg

In this particular project remote receiver can control 4 outputs that can drive up to 10Amps at 12VAC. Device accept three commands: SET, RESET and Check output status. Controller is password protected. All values including password are stored in EEPROM memory. Probably most interesting part in this project is software DTMF decoding as this task is usually done by DSP or specialized chips. Decoding is based on Goertzel algorithm. So here is some challenging ASM coding done, but results are positive. Check out the ASM source.

Read

« Previous PageNext Page »