Introduction
This project tells you, how to design your own data acquisition cum logging hardware plus software. Temperature from different locations are the data items to be logged onto the PC. Ofcourse the data from the sensors are analog and most of the cases. I’ve used temperature sensors as data generators, one can measure any kind of physical parameter like sound level, distance etc. I’ve used ATmega32 from MegaAVR family by ATMEL because it has 8 channels of 10 bit resolution Analaog to Digital Convertor which is used to digitized the analog data from the sensors.
Digital data is sent to the PC from the microcontroller using inbuilt full duplex UART channel of mega32. Data can br read on the GUI dash board designed using VB 6.0, The source code for both AVR frimware and VB software is provided in the download section.
Schematic
Hardware
Complete hardware schematic diagram in PDF is available above. Main heart component of the circuit is the ATmega32 microcontroller form MegaAVR family. temperature sensor used is LM335 which is calibrated by 10mv per degree kelvin. LCD is attached to display the data on each channel rael time at the site of installation of device. As data from the controller is sent to the PC using serial channel a signal level convertor MAX232 is used, to convert RS232 signals into TTL signal and vice versa. 16 MHz crystal oscillator is used to provide master clock to the system. LC network is attached for noise reduction in ADC. LM335 needs kind of calibration, for that purpose a preset of 10K in series with a 1K resistance is used.
LCD is connected to PORTC, you must disable JTAG using fuse bit settings to let the display work.
PCB Layout (DipTrace)
Download complete source code for AVR, VB interface here, take it use it..modify it. If found useful to you. Do reply me at devesh@electroons.com
how can i use these files..both code for micro controller and vb program? could please help me ?? If possible provide a video.
ReplyDeletemaddipatinakul77@gmail.com
Gooday Sir devesh, i have this project which requires us to make a digital speedometer and odometer and i came in to your site and decided to use your schematic/layout. I have tried it on Proteus (ISIS) simulator and is actually working.However, i am having a problem implementing it in breadbord and/or PCB. i am quite sure that all my connections were correct and all are according to your schematic diagram. i dont have any background in programming a microcontroller such as AT89S52 and i think i am having problems with the codes. please help me with this problem.thank you.
ReplyDelete