Final weather station will be water proof, record temp, humidity, barometric, light, soil moisture & upload to net & have internal webpage .
#define DHTPIN 13
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(t) || isnan(h))
Serial.println("Error reading DHT!");
Values before and after breathing into the sensor.
I was saving the DHT driver files (DHT.h) to “C:\Program Files (x86)\Arduino\libraries\DHT” and not “%UserProfile%\My Documents\Arduino\libraries”. This is common knowledge but no one says this here, here or here.
So here is the idea, I have heap of sensors from ebay that I have working individually (temp, Humidity, pressure etc) so why not build a weather station.
The most expensive/time consuming part would be building the mechanical stuff to detect the wind/rain (pivot bucket with magnetic sensor) and a solar panel/wifi module. Technically this should not be too hard. A 3D Printer would be handy.
The 555 Timer will trigger update events and the 4 bit timer is really there to help switch open circuits to reuse the limited analogue pins on the Ardrino, EEPROM will save data if the internet is offline. I plan on open sourcing all code and designs.
Full Size image<.a>.