Linkit One Temperature Sensor Using Atmega

Temperature Sensor

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.

Temperature Sensor

Step 1: Components

Components 1

 

 

 

 

 

 

 

 

 

 

 

 

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

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

Setting

 

 

 

 

 

 

 

 

 

 

 

 

Read more: Linkit One Temperature Sensor

 

Leave a Comment

Your email address will not be published. Required fields are marked *