This project is a simple thermometer which is easy to use and provides accurate results.
1)When the temperature is more than 35 degree celsius, the green led glows.
2)When the temperature is less than 35 degree celsius, the red led glows.
3)The 10K ohm potentiometer is used to set contrast of 16x2 LCD screen.
The main component used here is the temperature sensor (LM35).
LM35LM35 is a temperature sensor that provides analog signal as its output which is linearly proportional to the temperature in degree celsius.
LM35 has three pins:
PIN 1 : Vcc, it is the input pin (5v)
PIN 2 : Vout, we get output (it should be connected to the analog pin of arduino)
PIN 3 : GND, it is used for ground
Here I have used arduino and little bit of c programming for this project. Make the connections as given below:
Select the board in IDE as "Arduino Uno" and upload the code given.
If the code fails to upload, please check your USB or try re-plugging it.
LM35 TEMPERATURE FORMULALM35 output voltage is directly proportional to celsius and 10 milli volts represents 1 degree celsius.
Note: LM35 can measure from -50 to 150 degree celsius.
Arduino's analog pin resolution is from 0-1023, ie at +5v input it counts to 1023.
LM35 max input is 1500 milli volts (as max temperature is 150 degree celsius) or 1.5v (max output voltage).
So at 1.5v, analog pin count is equal to (1.5/5)*1023 = 306.9.
Now LM35 new resolution equals 306.9/150 = 2.046. This analog pin counts 2.046, equals to 1 degree change in celsius temperature of LM35.
FINAL EXECUTION
After uploading the code to the arduino, make sure that the circuit connections are correct.
Here I have used 5V of arduino to power up the sensor(LM35) and the LCD. You can also use a seperate 5V supply from a battery.
When the temperature is more than 35 degree celsius the green led glows as shown below:
When the temperature is below 35 degree celsius, the red led glows as shown below:
You can also the simulation online : https://www.tinkercad.com/things/ddvnnsV6y88
Comments
Please log in or sign up to comment.