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 addressIf 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 ![]()
Download it here:
http://forum.arduino.cc//index.php?topic=180344.msg1336692#msg1336692
Please let me know if you run into troubles.