Linkit ONE With LM35 Temperature Sensor
by BharathRam in Circuits > Microcontrollers
696 Views, 7 Favorites, 0 Comments
Linkit ONE With LM35 Temperature Sensor
![12074983_966338270104085_3783441612562526398_n.jpg](/proxy/?url=https://content.instructables.com/F17/BM7O/IFYBFCA0/F17BM7OIFYBFCA0.jpg&filename=12074983_966338270104085_3783441612562526398_n.jpg)
![Temperature sensor with linkit ONE](/proxy/?url=https://content.instructables.com/FZY/59AN/IFYBFCU7/FZY59ANIFYBFCU7.jpg&filename=Temperature sensor with linkit ONE)
Hii Guys.....in this instructable I'm gonna show you how to interface LM35 with Linkit ONE
Connections
![C360_2015-10-19-22-46-58-077.jpg](/proxy/?url=https://content.instructables.com/FVN/TW05/IFYBFCBI/FVNTW05IFYBFCBI.jpg&filename=C360_2015-10-19-22-46-58-077.jpg)
![C360_2015-10-18-12-10-56-733.jpg](/proxy/?url=https://content.instructables.com/FUG/3WGZ/IFYBFCAC/FUG3WGZIFYBFCAC.jpg&filename=C360_2015-10-18-12-10-56-733.jpg)
![C360_2015-10-18-12-10-45-029.jpg](/proxy/?url=https://content.instructables.com/FNB/9HDO/IFYBFCA8/FNB9HDOIFYBFCA8.jpg&filename=C360_2015-10-18-12-10-45-029.jpg)
1) Connect LM35 Vcc and Gnd pins
2) Connect LM35 output pin i.e center pin to the A0 (analog 0 ) of Linkit ONE board and connect the board to USB port
Coding
![C360_2015-10-18-12-12-25-482.jpg](/proxy/?url=https://content.instructables.com/FEQ/D1R9/IFYBFCAH/FEQD1R9IFYBFCAH.jpg&filename=C360_2015-10-18-12-12-25-482.jpg)
int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor
void setup() { // declare the ledPin as an OUTPUT: Serial.begin(115200); }
void loop() { // read the value from the sensor: sensorValue = analogRead(sensorPin); float cel = sensorValue*0.48828125; Serial.print("Temperature="); Serial.print(cel); Serial.println("*C"); delay(1000); }
Upload the code and open serial monitor its shows the temperature in celsius