Science, Culture and other Stories

Here you'll find all about projects like: 2 DOF Maglev, Ionocraft, Tesla Coil, Non-Contact EEG, Plasma Speaker, GAMES on PAL TV set in retro style, articles about the long forgotten science of Electricity and much more !

 Almost every project has proved how important is to understand for yourself one thing at a time. Everything is so simple after that. You just need  to "translate" in your own terms, your own language -if you like- and only then you'll see that actually a lot of things are quite easy to understand.  Thanks for taking your time to see these pages and if you like them and you would like to contribute, comment,etc. feel free to drop a line.

My First Project with AVR microcontroller: Magnetic Field Meter with ATmega32 using LCD Nokia 3310





     This was a project for school which was done with one of my friends.


    This project is good for beginers, because it has a relatively short code and it is also simple to understand. 
    To the left we have the actual device and to the right the schematic.




       In the schematics you'll see all the ADC pins connected to Vcc, but that was done just for simulation purposes. In my next posts you'll find some nice models implemented in Proteus for Nokia 3310 lcd and some others. 
    In the real circuit I just connected the 3rd pin of SS495A Hall sensor to the ADC0 pin of ATmega32 (the 40th pin), the first one (the first pin of the sensor) being connected to Vcc, and the 2nd to the ground. Also, on ADC1 pin (39th pin) I can put the input signal for the Voltmeter (for the second value shown). ATENTION! You must input a signal between 0 and 5V.
    Inspiring code for the interface with the Lcd of Nokia 3310 could be found at http://fandigunawan.wordpress.com. It has basically the code needed for initialisation and using of the PCD8544 controller of the Lcd 3310 through the SPI interface. In the lcd_pcd8544_v026rev1.zip package you will find a nice program, FastLCD which can generate a matrix to be used in the code, so that you cand display pictures. More information you'll find in my next posts.
       Also, a good site for with lots of opensource software for a wide range of LCDs is http://serdisplib.sourceforge.net/#displays. It has also the 3310 Lcd description, pinouts, etc. : http://serdisplib.sourceforge.net/ser/pcd8544.html.
        After some coding and debuging steps I wrote this code: Nokia3310Hall&Voltmeter. 

Niciun comentariu:

Trimiteți un comentariu