Introduction: Online Temperature Monitoring Using Arduino + Ethernet Shield

Picture of Online Temperature Monitoring Using Arduino + Ethernet Shield

Hi, today i will show you guy how to make arduino temperature online monitoring, this example is web-based that mean you can connect from anyplace, By combine AJAX and PHP together that can bring temperature data mostly realtime without refresh you web browser. I hope it will useful example and you can modify to monitor any data online ^^

Require parts.

1. Arduino and Ethernet Shiled

2. DS18B20 temperature sensor

3. Breadboard and Wire

4. Ethernet Cable with internet connection for your Arduino

5. Web server that support PHP (see more in Step 2)

Step 1: Start Wiring Things

Picture of Start Wiring Things

Let's Wiring following the image above,

In the video i using sealed type of DS18B12 onewire sensor for waterproof reason and easy to demonstrate

Step 2: Upload Files and Get It Run!

you can get all code from this link http://www.iointouch.com/?p=18 at bottom of page.

When you unzip the files, following this step below

1. upload files in folder PHP&HTML to root of your web server, for local use or test you can config you PC as web server that support PHP by using Apache Server (plus with dynamic DNS you can get it online too). or if you want to get it online you need to get web hosting see more here. http://www.iointouch.com/?p=49

2. open Temp_Monitor.pde file using Arduino IDE, then

- Config static ip address to match with you network if you don't have DNS assign from router.
at line :
IPAddress ip(192,168,0,177); // set static local IP address dns, gateway and subnet if it not assigned by DHCP

IPAddress dnServer(192, 168, 0, 1);

IPAddress gateway(192, 168, 0, 1);

IPAddress subnet(255, 255, 255, 0);

- Config your website address at line: "char server[] = "www.yourdomainname.com"; // Server URL"
and line : client.println("Host: www.yourdomainname.com"); // Server URL

Change it to your website address, Then Upload it into arduino.

3. Open Serial Monitor from IDE to see. if thing connect correctly server will responds

4. Open your website URL www.yourdomainname.com/temp.html and see latest temp data online.
(for local hosted server call http://127.0.0.1 or your ip address) Have Fun.

Comments

davidphillippina (author)2015-12-03

If the designer of this instructable is too irresponsible to update their post as requested especially when code is necessary to run this project, the instructable should be flagged or removed.

ErwinN (author)2015-10-07

Link to Files is dead, can you upload to a new server

PetervdPol (author)2015-03-09

I am afraid your links are dead... can you fix them? Love to try this one.

WX4ME (author)2014-11-19

Great Work !!

Please fix the links, i cannot download the code

Thanks for sharing

Jose PhilipP (author)2014-10-02

great tutotial.. but is this working in android phone even if your far from the device?

SamuelKJKemp (author)2014-10-01

Link to Files is dead, can you upload to a new server or use Dropbox?

About This Instructable

18,587views

72favorites

License:

Add instructable to: