loading

Hii Guys.....in this instructable I'm gonna show you how to interface LM35 with Linkit ONE

Step 1: Connections

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

Step 2: Coding

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
<p>It is awesome I am also from India though a bit younger.......please check out my instuctables also...........</p><p><a href="https://www.instructables.com/id/Arduino-Controlled-Security-Lights-also-scary-prop/" rel="nofollow">https://www.instructables.com/id/Arduino-Controlled-Security-Lights-also-scary-prop/</a></p><p>I liked your one so I am following you if you like my one please follow........</p>
<p>ya I went through Arduino Controlled Security Lights also scary prop for halloween....thats good but it would be an awesome one if photos and video quality are good... but i liked it.</p>

About This Instructable

315views

7favorites

More by BharathRam:Smart Bag J.A.R.V.I.S  Smart Helmet 
Add instructable to: