HOW TO USE LM35 ARDUINO

How To Use LM35 Arduino - LM35 temperature sensor is a type of temperature sensor that is most widely used for simple microcontroller project. Actually very many other types of temperature sensors can be used. However, because the price is low enough for the sensor is a favorite among lovers of microcontroller like me. 
Data Sheet LM35
LM35 temperature sensor is a type of sensor that has an analog voltage output. LM35 sensor can detect temperature range of -55 Celsius to 150 Celsius. Sensor output voltage will vary from -1 volt sampai 5 volt correspond to room temperature conditions. Sensor output voltage will increase by 10mV / Celsius. Because the sensor is in the form of analog voltage output, then to process the data from the sensors is required ADC (Analog To Digital Converter). Arduino that we will use as a microcontroller processing the data contained in it have ADC, so the sensor can be directly connected to the Arduino.

As for the circuit with arduino is as follows:
LM35 and Arduino circuit

and source code programming is as follows:

//declare variables
float tempC;
int tempPin = 0;

void setup()
{
Serial.begin(9600); //opens serial port, sets data rate to 9600 bps
}

void loop()
{
tempC = analogRead(tempPin);           //read the value from the sensor
tempC = (5.0 * tempC * 100.0)/1024.0;  //convert the analog data to temperature
Serial.print((byte)tempC);             //send the data to the computer
delay(1000);                           //wait one second before sending new data
}
 
 after that the program is ready to run, so first of I hope you succeed !!
 

Related Posts:

0 Response to "HOW TO USE LM35 ARDUINO"

Post a Comment

>