Browse over 10,000 Electronics Projects

LCD Thermometer LM35

LCD Thermometer LM35

The LM35 of National Semiconductors that is used in this project is a precision centigrade temperature sensor, which has an analog output voltage.The temperature is displayed on an LCD module. In this example the thermometer has a range of 0 digree C to 40 digree C and a resolution of 0.5 digree C. If you want to have a readout in Fahrenheit you can use the LM34.
In the circuit the LM35 is connected to the ADC port of the ATMega8. The ATMega8 uses a crystal as an oscillator for the clock pulses. At PORTD of the ATM8 an 20×4 LCD display is hooked to display the temparature in a discrete value and in a analog bar.



Advertisement1


The software for this project is written in BASCOM AVR. The BASCOM AVR compiler has build in commands for reading out the ADC port of a AVR microcontroller. The result is displayed on a LCD module in a discrete value of the temperature and in a bar-graph. The AT Mega8 has a A/D converter which can give an output of 210 = 1024 discrete values. When a 5V supply is used you have a resolution of 5000mV/1024 = 4.8mV. Because the LM35 has a output of 10mV/C the resolution of the thermometer is 10mV/4.8mV ~ 0.5 C . The LCD module has 20 columns. In the scale of 0 C digree to 40 digree C every column represents 2 digree C.

Visit Here for more.

 


Top