LinkIt One Temperature Monitor

by ThisIsSteve in Circuits > Microcontrollers

1014 Views, 8 Favorites, 0 Comments

LinkIt One Temperature Monitor

IMG_20151029_201627.jpg
IMG_20151029_201747.jpg

Here is another project using the LinkIt One, In this project I'm going to show you how to work with temperature station, which displays the temperature wireless on a web page which can be monitored remotely. This is the third instructable using the LinkIt One make sure you also check out my previous instructable.

The sensor I will be using is an LM35 IC which is quite a common sensor used with the Arduino and this would work great with the Linkit One.

So lets get started...

Requirements

2.jpg
1.jpg

Here is a list of components required for this instructable...

  • LinkIt One
  • Battery
  • LM35
  • Antenna
  • Breadboard
  • Jumper wires

Once you have all the parts its is time to get started...

Circuit

IMG_20151029_201747.jpg

The circuit is really very simple and is assembled on a breadboard, all you have to connect is the LM35 -

  • LM35 VCC to LinkIt One +5v
  • LM35 signal to LinkIt One analogue pin 5
  • LM35 GND to LinkIt One GND

With the printed readings facing you the terminal to the right is the Gnd pin of the LM35 and the one to the left is the VCC and the middle one is the signal pin.

Test

IMG_20151028_201642.jpg
temp_link.PNG

Before running it wireless lets test over a serial monitor, this test should output the temperature over a serial monitor which can been viewed using a PC. The Code can be found below open it using an Arduino IDE with the LinkIt One plugin. Upload the code at the suitable port and open up a serial monitor you should get the range of readings on the screen which are the temperature of the room you are in.

float tempC;
int reading; int tempPin = 0;

void setup() { Serial.begin(9600); }

void loop() { reading = analogRead(tempPin); tempC = reading / 9.31; Serial.println(tempC); delay(1000); }

Code

temp2.PNG
4.jpg

After the testing step it is time to make the circuit wireless and now it is time for the actual code. You can upload the code found below in the arduino IDE and make sure you enter your WiFi SSID and password in the field where it says SSID and password. Upload the code to the suitable Com port.

Downloads

Testing

Open the IP address obtained in the previous step in a suitable web browser and you should see a webpage load with the current temperature being displayed.

You can now wirelessly view the current temperature of the place over the internet, also make sure you have your router port forwarded if you want internet access.