Product successfully added to your shopping cart
4.50 JD Add to cart
1.90 JD Add to cart
5.50 JD Add to cart
6.00 JD Add to cart
0.15 JD Add to cart
1.00 JD Add to cart
Temperature Sensor LM35
LM35 sensor has three legs like a Transistor, first leg is Vin second one is Vout and the third one is Ground. we have to supply 5 volts to Vin and Ground and take the output voltage at Vout which tells us the temperature in terms of voltage. The output from the LM35 is 0.01V/'C. So, when temperature sensed is 50'C, the output voltage is 0.5V.
The result of the 10-bit Analog to Digital (A/D) Conversion is read using the function ADC_Read(0). This 10-bit digital value is then converted to the corresponding voltage by multiplying with 0.4887.
The 0.4887 came from that the ADC resoultion is 10 bits, so that the 0.1 volts resoultion of the LM35 is converted to the digital value 2.046 on the scale of 1023 ( 0.1V/5V * 1023). so in our code calculations we need to dived the digital reading converted from analog input by 2.046 which is the same as 0.4887 (1/2.046).