Arduino uno temperature sensor code
Introduction:
Temperature Sensor is very crucial part in today’s application
(hardware) such as smart phones and TV etc. Have you at any point left your
cell phone in your vehicle on a hot day? Assuming this is the case, your screen
may have shown a picture of a thermometer and an admonition that your telephone
has overheated. That is on the grounds that there is a small inserted
temperature sensor that quantifies the inside temperature of your telephone.
Once within the telephone arrives at a specific temperature (iPhones shut down
at around 113 degrees Fahrenheit, for instance), the temperature sensor imparts
an electronic sign to an inserted PC. This, thus, confines clients from getting
to any applications or highlights until the telephone has chilled ease off, as
running projects would just further harm the telephones inside segments.
The Temperature Sensor LM35 arrangement are accuracy
incorporated circuit temperature gadgets with a yield voltage directly relative
to the Centigrade temperature. The LM35 gadget has a bit of leeway over
straight temperature sensors aligned in Kelvin, as the client isn't required to
take away an enormous steady voltage from the yield to get helpful Centigrade
scaling. The LM35 gadget doesn't require any outside adjustment or cutting to
give average correct nesses of ±¼°C at room temperature and ±¾°Cover a full
−55°C to 150°C temperature go.
Basic Experimental
setup:
This experiment is based on Arduino Micro controller and
Temperature Sensor is used to measure the room temperature Circuit is given
below:
float TempValue, TempValueC, TempValuemv;
void setup()
{
pinMode(A0,INPUT);
Serial.begin(9600);
}
void loop()
{
TempValue=analogRead(A0);
TempValuemv=TempValue*5000/1024;
TempValueC=(TempValuemv/10)+(-50);
Serial.println(TempValueC);
}
Post a Comment