arduino web thermostat controlled with android phone

You dont have the DHT files in you arduino/libraries folder. you can download it here:

instructions are in the readme.txt

It would be nice to have a schematic of your arduino.
Not everyone knows how to build your idea.

And do you have the Dutch version on-line as well?

I quickly made some schematics. see he first post.
You like the app with dutch text labels? For now its not online, perhaps a future version is multi langual. If i have time i send you a previous version in dutch or you can use my other app that suports custom text labels and has nearly the same funcionality.
http://arduino.cc/forum/index.php/topic,127770.0.html

Hi,
Seems to be a nice project....

i am trying to test it but I received a lot of errors...

sketch_oct31a.cpp:24:22: error: EEPROMex.h: No such file or directory
sketch_oct31a.cpp:25:20: error: Avviso.h: No such file or directory
sketch_oct31a.cpp: In function 'void setup()':
sketch_oct31a:141: error: 'EEPROM' was not declared in this scope
sketch_oct31a.cpp: In function 'void loop()':
sketch_oct31a:280: error: 'EEPROM' was not declared in this scope
sketch_oct31a.cpp: In function 'void action(int, EthernetClient)':
sketch_oct31a:422: error: 'EEPROM' was not declared in this scope
sketch_oct31a:459: error: 'EEPROM' was not declared in this scope

Where can I find the above libraries? Please help

Thanks a lot,

the EEPROMex library with thanks to mrTeehttp://arduino.cc/forum/index.php?topic=115587.0

You can delete the line #include <Avviso.h>
This an libray to send notifications to you phone. I commented out the code it uses but i forgot to remove the include line in the uploaded version. It has some nice function but i removed it because it needs a subscrision to "prowl" or "notifier my android" and because the sketch became to big to fit an arduino uno. More info can be found here: GitHub - colagrosso/avviso: (unmaintained) Ring the red phone from your Arduino. Whenever i recieve my mega (china post :frowning: ) i wil us it to let the arduino send a notification when the temperature in my house gets to hot and i can decide to open some windows remotely or close the shutters when its freezing outside.

Looks an interesting project. Do you have schematics?

I think I've found the pieces I ws looking for on other projects.

Nice - thanks for sharing
what exactly do the relays hook up to and what do they do?
This could be different for a lot of heating systems, and it is the core of your whole idea.

This looks great, can't wait to try it out!

I'm confused about the relays though, which one does what? I would only need one relay for my boiler?

thanks

testing now, but LCD screen is stuck on 'Getting IP'. I have assigned it the same IP that I use in other sketches and same mac address.

With the serial debugging I can see that is also stuck on Getting IP

have you seen this before? I have installed the DHT AND EEEPROM libs, I'm running bare bones with no temp sensors connected but don't think that is the problem?

FigZ:
Nice - thanks for sharing
what exactly do the relays hook up to and what do they do?
This could be different for a lot of heating systems, and it is the core of your whole idea.

With one relay you can switch between your current thermostat and the arduino thermostat.

The second thermostat turns on / off your heating system the same way your current thermostat does.

I uploaded some simple schematict in the opening post.

Hello

Thx Marque for very interesting project (Controler, Somfy, ...) many thx

All your project I easy install and use but with thermostat I have a problem with error look below.
Any idea for reason?
I use: Arduino uno R3, Ethernet Shield W5100, DFRobot LCD Keypad Shield, DHT22 2x 2 channel 5v relay.
The library EEPROMEx working if I use a sample.
First error in 142 lines:

"""" Tw = EEPROM.readFloat(address);"""""

thermostat_marque_android.ino: In function 'void setup()':
thermostat_marque_android:142: error: 'EEPROM' was not declared in this scope
thermostat_marque_android.ino: In function 'void loop()':
thermostat_marque_android:281: error: 'EEPROM' was not declared in this scope
thermostat_marque_android.ino: In function 'void action(int, EthernetClient)':
thermostat_marque_android:423: error: 'EEPROM' was not declared in this scope
thermostat_marque_android:460: error: 'EEPROM' was not declared in this scope

thx Marque in advance.
br ale

An idea for anyone building such a system in a region where temperatures go low enough to freeze pipes:

Make it fail-safe. What if your Ardu-stat turns the heat completely off, by malfunction?

Easy to do:

Keep your old thermostat in the circuit. Set it to turn the heading on at, say, 40 deg F.

Wire your Arduino circuits in parallel across your existing thermostat (assuming that your system turns the heat ON when a switch in the thermostat CLOSES).

Now your Arduino can ADD heat to your house, but even if the Arduino is never calling for heat, the old thermostat can step in, save the day, should the temperature fall to 39.

More on Fail Safe Design at...

Alesz:
First error in 142 lines:

"""" Tw = EEPROM.readFloat(address);"""""

thermostat_marque_android.ino: In function 'void setup()':
thermostat_marque_android:142: error: 'EEPROM' was not declared in this scope
thermostat_marque_android.ino: In function 'void loop()':
thermostat_marque_android:281: error: 'EEPROM' was not declared in this scope
thermostat_marque_android.ino: In function 'void action(int, EthernetClient)':
thermostat_marque_android:423: error: 'EEPROM' was not declared in this scope
thermostat_marque_android:460: error: 'EEPROM' was not declared in this scope

thx Marque in advance.
br ale

same error with Arduino IDE 5.1
with the Arduino IDE 1.0.1 - no errors

New beta version is online.
Find it here: Testers wanted! - Home Automation - Arduino Forum

Hi everyone!

I am completely new to this, and chose this as my first project.
Probably should have started with something more simple...

Anyway, this is a bit more that a project, is something that I realy need working...

I bought all the parts, download everything and know I am getting some errors when compiling the sketch.

Highlithed in yellow is the lines I am having problem with...
The first one says:
error: 'DHT22' was not declared in this scope - This should be only to identify the sensor type inside the DHT library.
However if I include the DHT22 library the error goes away.

Then the next one says:
error: expected primary-expression before ')' token - I don't have a clue how to solve this one...

There is some more, but one at the time... LOL

/*DHT.cpp has an default delay of 250. This makes the system realy slow and must be adjusted to 50 to react faster
Hardware used:
Arduino uno
Ethernet Shield W5100
DFRobot LCD Keypad Shield
DHT22 Humidity and Temperature sensor
2x 2 channel 5v relay

_____1 Room Thermostat pin 2
Relay 1___2
/ Heater pin 2
_______3 Relay 2

_____1 Mot Connected
Relay 2___2
/ Relay 1
_______3 Heater pin 1 and Room Thermostat pin 1

*/
#include <LiquidCrystal.h>
#include <Ethernet.h>
#include <HTTPClient.h>
#include <EEPROMEx.h>
#include <SPI.h>
#include <DHT.h>

#define DHTPIN1 (A0) // pin connected to temperature sensor
#define DHTPIN2 (A1) // optional second temperature sensor
#define DHTTYPE DHT22

DHT dht1(DHTPIN1, DHTTYPE);
DHT dht2(DHTPIN2, DHTTYPE);
const int System = 2; // pin connected to relay 1
const int Heater = 3; // pin connected to relay 2
const int Buzzer = A5; // pin connected to buzzer
float Tc; // measured temperature
float Td; // disired temperature
float h1;
float h2;
float t2;
float Tt;
int softwareversion = 1191;
int address = 0; // eeprom address

If anyone can help will be much appreciated!
Thank you in advance!

lmsvvavr:
Hi everyone!

I am completely new to this, and chose this as my first project.
Probably should have started with something more simple...

Anyway, this is a bit more that a project, is something that I realy need working...

I bought all the parts, download everything and know I am getting some errors when compiling the sketch.

Highlithed in yellow is the lines I am having problem with...
The first one says:
error: 'DHT22' was not declared in this scope - This should be only to identify the sensor type inside the DHT library.
However if I include the DHT22 library the error goes away.

Then the next one says:
error: expected primary-expression before ')' token - I don't have a clue how to solve this one...

There is some more, but one at the time... LOL

/*DHT.cpp has an default delay of 250. This makes the system realy slow and must be adjusted to 50 to react faster
Hardware used:
Arduino uno
Ethernet Shield W5100
DFRobot LCD Keypad Shield
DHT22 Humidity and Temperature sensor
2x 2 channel 5v relay

_____1 Room Thermostat pin 2
Relay 1___2
/ Heater pin 2
_______3 Relay 2

_____1 Mot Connected
Relay 2___2
/ Relay 1
_______3 Heater pin 1 and Room Thermostat pin 1

*/
#include <LiquidCrystal.h>
#include <Ethernet.h>
#include <HTTPClient.h>
#include <EEPROMEx.h>
#include <SPI.h>
#include <DHT.h>

#define DHTPIN1 (A0) // pin connected to temperature sensor
#define DHTPIN2 (A1) // optional second temperature sensor
#define DHTTYPE DHT22

DHT dht1(DHTPIN1, DHTTYPE);
DHT dht2(DHTPIN2, DHTTYPE);
const int System = 2; // pin connected to relay 1
const int Heater = 3; // pin connected to relay 2
const int Buzzer = A5; // pin connected to buzzer
float Tc; // measured temperature
float Td; // disired temperature
float h1;
float h2;
float t2;
float Tt;
int softwareversion = 1191;
int address = 0; // eeprom address

If anyone can help will be much appreciated!
Thank you in advance!

You need to download the LiquidCrystal and EEPROMEx library's. but i suggest you use the new beta version. it is easier to install and much more stable, I use it for more than a year now and never had problems. It doesn't come with the LCD but that's what the phone is for :slight_smile:
Download it here:
http://forum.arduino.cc//index.php?topic=180344.msg1336692#msg1336692

Please let me know if you run into troubles.

hi

With the new one I get this:

Arduino: 1.5.4 (Windows XP), Board: "Arduino Uno"

ThermoduinoPro_beta_ino:24: error: 'A10' was not declared in this scope
ThermoduinoPro_beta_ino:24: error: 'DHT22' was not declared in this scope
ThermoduinoPro_beta_ino:31: error: 'A13' was not declared in this scope
ThermoduinoPro_beta_ino.ino: In function 'void setup()':
ThermoduinoPro_beta_ino:981: error: 'A8' was not declared in this scope
ThermoduinoPro_beta_ino:984: error: 'A12' was not declared in this scope
ThermoduinoPro_beta_ino:987: error: 'A14' was not declared in this scope
ThermoduinoPro_beta_ino:995: error: 'class DHT' has no member named 'begin'
ThermoduinoPro_beta_ino.ino: In function 'void loop()':
ThermoduinoPro_beta_ino:1030: error: 'class DHT' has no member named 'readHumidity'
ThermoduinoPro_beta_ino:1031: error: 'class DHT' has no member named 'readTemperature'

lmsvvavr:
hi

With the new one I get this:

Arduino: 1.5.4 (Windows XP), Board: "Arduino Uno"

ThermoduinoPro_beta_ino:24: error: 'A10' was not declared in this scope
ThermoduinoPro_beta_ino:24: error: 'DHT22' was not declared in this scope
ThermoduinoPro_beta_ino:31: error: 'A13' was not declared in this scope
ThermoduinoPro_beta_ino.ino: In function 'void setup()':
ThermoduinoPro_beta_ino:981: error: 'A8' was not declared in this scope
ThermoduinoPro_beta_ino:984: error: 'A12' was not declared in this scope
ThermoduinoPro_beta_ino:987: error: 'A14' was not declared in this scope
ThermoduinoPro_beta_ino:995: error: 'class DHT' has no member named 'begin'
ThermoduinoPro_beta_ino.ino: In function 'void loop()':
ThermoduinoPro_beta_ino:1030: error: 'class DHT' has no member named 'readHumidity'
ThermoduinoPro_beta_ino:1031: error: 'class DHT' has no member named 'readTemperature'

The new version is only available for the Arduino mega because of the sketch size. Sorry for that :~

And it looks like you don't have the DHT library installed.

ok then

But can you help me with the other one!

And that is the thing, the library is installed...