Have you ever wanted to measure the ambient Temperature in your home or having a project where you need to monitor temperature🤨?
To day we will see how to measure the ambient temperature with LM35 sensor.
figure 1 : Lm 35 temperature sensor
The famous LM35 linear temperature sensor is very useful to sense ambient/environment temperature. This sensor is based on the semiconductor LM35 temperature sensor. This sensor offers a functional range between -40 degree Celsius to 150 degree Celsius which then gives a high range of application.
Sensitivity is 10mV per degree Celsius. The output voltage is proportional to the temperature which means 0.01v ~ 1C. The output is linear to the temperature in degree Celsius and have high stability.
Figure 2 : characteristics of Lm35.
Note : The LM35 temperature sensor is an integrated circuit sensor that gives an analog output proportional to the temperature in Celsius.
Specifications
Calibrated Directly in Celsius (Centigrade)
0.5°C Ensured Accuracy (at 25°C)
Rated for Full −55°C to 150°C Range
Suitable for Remote Applications
Operates from 4 V to 30 V
Less than 60-µA Current Drain (consumption)
etc
Hardware setup
Figure 3 : Circuit diagram of LM35 with Arduino Nano
Sketch
now you can play with the codes and make some changes! and do not hesitate to share with us your thoughts about this sensor.✌
for questions write them in the comment section!
Lm35 output voltage is proportional to centigrade/Celsius temperature. Lm35 Celsius/centigrade resolution is 10 mills volt. 10 mills volt represent one degree centigrade/Celsius. So if Lm35 outputs 100 mills volts the equivalent temperature in centigrade/Celsius will be 100/10 = 10 centigrade/Celsius. Lm35 can measure from -50 degree centigrade/Celsius up to 150 degree centigrade/Celsius.
Lm35 voltage conversion to temperature formula/equation derivation for Arduino
Arduino analog pins can measure up-to +5 volts OR the voltage on which it is working normally +5 volts.
Arduino analog pin resolution is 1023 starting from 0. On +5 volts input it counts to 1023.
Lm35 max voltage output is 1500mV( At 150 degree centigrade). 1500mV is equal to 1500/1000 = 1.5 volts. So Lm35 at max outputs…
float mv = ( val/1024.0)*5000; float cel = mv/10;
can someone explain to me this conversion and where it comes from
and how it is used
my temperature seems to be at 0.0 degrees Celsius. Can someone explain to me abit more about the calculations and the effectiveness of the LM35
Excuse me! can someone help me understand easily this lesson because I'm not really getting it
It worked !!!