loading

In this instructable I'm going to how you how to measure the temperature using a Linkit One and a Lm35 temperature sensor. This project can be a part of a wireless weather monitor, if you have not seen my previous instructables please check it out, I have a lot of other Linkit One tutorials.

Step 1: Components

Here is a list of all the components required to get started, make sure you collect all the components first before proceeding to other steps-

LM35

Wires

Bread Board

Step 2: Schematics

The schematics can be found in the picture above, I had to use an arduino to represent the linkit one as Fritzing doesn't have a library for the Linkit one yet.

Step 3: Program

To upload the program you need to install the Linkit one plugin along with the Arduino IDE. You can find instructions on how to do that in the official website. You can also download the IDE with the Linkit One plugin pre-installed from GitHub.

float tempC;

int reading;

int tempPin = 0;

void setup(){

analogReference(INTERNAL);

Serial.begin(9600);

}

void loop(){

reading = analogRead(tempPin);

tempC = reading / 9.31;

Serial.println(tempC);

delay(1000);

}

Step 4: Setting It Up

After uploading the code you can set up the circuit at the place where you want to monitor the temperature, then connect the Linkit One to a PC and open up a serial monitor. You should see the temperature data on the serial monitor.

<p>Why do you divide the sensor value by 9.31?</p>

About This Instructable

1,609views

21favorites

License:

More by ImGokul:Serial Communication - Arduino and Linkit One Linkit One Temperature Sensor  Linkit One Motion Sensor  
Add instructable to: