Thursday, September 30, 2010

Microcontroller Projects


I started doing electronic projects from late 80's and microcontroller projects from mid 90's. I have listed few projects here.


My Hobby electronic projects that got published in magazines,

A)


B)



Many Other circuits are on the web please search

Melody Generator

In 2000 i made a project to create tunes from a microcontroller with compressed music code. Unfortunately the project was lost when geocities went down, But to the rescue many web sites had a copy of the source code that i managed to get and re-posing it here,


Download Source code :





LCD Mini Oscilloscope 



I Made changes to the original code that is released by Vassilis Serasidis in his website.Also i enhanced the LCD to 240 x 128, will soon post the schematic and source code.

Here is the latest version of the scope with  240 x 128 LCD


PIC 50Mhz Frequency Meter

There was need for my function generator to display its frequency , i created this little PIC circuit to get a frequency meter,

J1 - TTL Freq input up to 50Mhz
J2 - 5v DC input
MJ1 and MJ2 - LCD 16 * 1 connector

50 MHz PIC Frequency Meter


The PIC software can be downloaded from here,



LPC2148 Development Board

Developed a new ARM board for Pattern generator project Circuit and test binaries attached.





Assembled board,






Board file in pdf


  • Software


Test Blinking LED

After the board is assembled or Purchased From , connect both USB as well as the Serial - COM port . If you are using USB- Serial converter select the port number after checking "Device manager" in windows for the port number. In the "Flash Magic" programmer select the settings as shown below,


Press SW2 and SW1 simultaniously and release SW2 and then SW1, then browse and select the LED Blink hex file given above and click start to program the device, once the programming is sucessful, press and release SW2 , Now LED D7 should blink indicating the board is working fine !

Here are some of the software drivers which are tested and working on my board


LCD driver

LCD's connected to LPC 2148 need to be 3.3v capable drive. Most of the LCD's in the market are 5v . We need to check the voltage level tolerance on the bus to check if it is capable of working in 3.3v. Some sample LCD that may work but fail on electrical immunity are JHD162A from china. We can use this for testing but not for production the Vlow is 0.7VDD which is very close to Vhigh of LPC2148. So don't use this LCD controller. I tried Lamped LM16200 and it is tollerant to 5 and 3.3v drives and works fine with the LPC2148.

The LCD software driver is given below,

Lcd.c
Lcd.h

EEProm driver

Similarly we can interface LPC2148 with EEPROM's as below. I used 24C64 EEPROM's with +5v and 4.7k pull up's on the i2c line. The software configures i2c hardware on chip and uses the HW to communicate with the EEPROM. There is no on chip eeprom in LPC2148.

EEProm.c
EEProm.h

Hand Sanitizer detection circuit  





More projects soon...