Wifi Web Thermostat

Hello everyone, I am a new user from Italy. :slight_smile:

I realized a thermostat controllable by web using an arduino with wifi shield.
My house is divided into two zones (day and night) controlled by two programmable thermostats.
I often travel for work and sometimes happen to get home earlier or later than I thought. Hence the need to have a thermostat controllable by the web.
Looking around I found great thermostats wifi with web interface but very expensive (500-700 euros), so I decided to realize this project and it works!

Materials:

Product Price Qty Price Tot


Arduino Uno 29,90 1 29,90
Wifi Shield 56,00 1 56,00
Temperature Sensor DS18B20 2,00 2 4,00
Power Supply AC/DC 3-12V 500mA 9,90 1 9,90
Relay 220V 8,00 3 24,00
Switch 30,00 1 30,00
Switch Contact 1NO/1NC 5,00 2 10,00
Mini adhesive backed PCB support 14.3mm 4,50 1 4,06
Box 9,00 1 9,00


Total 176,86

I installed the Arduino + wifishield, the three relays and the switch in the box.
I placed the two temperature sensors side by side with traditional thermostats, one in the day zone and the other in the night zone.
The switch is used to include/exclude the arduino or the traditional thermostats.
I then added a third relay (on the web page "auxiliary") to turn on/off a pellet stove.

Screenshot of the webpage:

I attach the code, libraries and some pdf, please use arduino-0023 (with Arduino-1.0 does not work the wifi shield library).
I also used a modified OneWire library because the original one doesn't work with long wires (about 10 meters from arduino to temperature sensors).

Suggestions for improvement are welcome!

Code.pde (14.6 KB)

libraries.zip (175 KB)

WifiWebThermostat.pdf (694 KB)

8190-WIFI_SHIELD.pdf (698 KB)

Hi Gianni,
congratulations for your project! Very interesting.
If you want you can take a look at our project Freedomotic.com as software control for your system.
I noted that it's based on http commands so it's simple to create a specific plugin.
This is a code example for an ethernet relay board using a similar communication protocol Google Code Archive - Long-term storage for Google Code Project Hosting.
Regards

Looks like a nice and tidy user interface. :slight_smile:

I also used a modified OneWire library because the original one doesn't work with long wires (about 10 meters from arduino to temperature sensors).

One question>> What modifications did you do to the OneWire library?

I am asking, because I also plan to build some temperature monitoring on my heating system in the house, which is also heated by a pellet stove :slight_smile:

spumanti:
One question>> What modifications did you do to the OneWire library?

Look OneWire Arduino Library, connecting 1-wire devices (DS18S20, etc) to Teensy :slight_smile:

From back in the day when things were simple. :slight_smile:

http://web.comporium.net/~shb/t-stat.htm

marque:
Can you share with us how you did this?

I have attached a pdf in the first post with the scheme of the project.
There are few words in Italian, sorry. :~

Nice project, can you tell which WIFI shield you use ?

luxxtek:
Nice project, can you tell which WIFI shield you use ?

I have attached a pdf in the first post.
It's in Italian, sorry.

Looks nice, congratulations!

Cool. Where did you get the 220V relay?

tschoffelen:
Where did you get the 220V relay?

Here

Instead f the relay can it be used a mosfet

Hi
I wanted to do something similar to control my heating adjusting the start time automatically if its colder so in the winter it would come on earlier depending on the outside temperature. I even though it could learn how long it takes to get to temperature depending on how cold it was and adjust accordingly.
I looked at the WIFI shields and thought I may be beter using something like this http://www.ebay.co.uk/itm/Mini-Travel-Wireless-N-WLAN-Router-Access-Point-Adapter-/300556193704?pt=UK_Computing_Wireless_Routers&hash=item45fa8b8fa8&_uhb=1 an access point with an Ethernet shield that way all the WEP/WPA stuff is done externally and maybe I can pinch 6v from the PSU to power my arduino. Its cheaper too !!

HI, I would like to do something similar using enc28j60 chip Arduino shield.

Only a web temperature notifier :

For exemple ,if temp is below 20 deg send an email. If temp is over 25 send an email again. Is it possible. If yes how should i do with this shield?

Thanks a lot my friend.

Hi, nice project...Is it possible to use this code with ethernet libary? If yes can you tell me how?
Thanks a lot.

Hi!

I would like to know how you mounted the wiring and the librearies used but unfortunately there is no access to your .PDF, can you help me?
I'm spanish so don't problem with your Italian. I'm striving myself to learn how to do this and I would learn a lot from you!

Thanks!

that is cool project!
8)