
pweatherstation
<H1>
ABOUT THIS PROJECT
</H1>
<B>
I have now logged more than a year of weather data for my location!! Database is ~32MB.
</B>
This project is about the development of code to do the following:
- Interface an arduino controller board to weather sensors (currently only the unit comprising Rain gauge, wind vane, anemometer available on sparkfun electronics, sensors category)
<B>
NEW: added connection to a photocell and can now measure light levels
</B>
.
to simultaneously Interface the same controller board to an SHT-15 sensor for temperature and relative humidity.
To interface the same controller board to an ethernet shield that sends weather information to a network.
to interface the same controller to an LCD screen displaying real-time weather information (the LCD is cabled and placed inside the house - typically)
<B>
NEW: removed from rev 4
</B>
.
(all of the above code is included on a.pde file for the arduino). For extra functionality, also included is:
PHP code for periodic upload of weather data and placing that info on a mySQL database (periodicity is done with crontab on a linux machine)
PHP code to periodically save a chart with the weather data to an online server. The charts can then be fetched by any website.
<B>
NEW: Now the data is uploaded to thingspeak.com and the charts are not generated by the code anymore
</B>
.
<H1>
STEP BY STEP INSTALLATION TUTORIAL (Contributed by Peppe 14.07.2011, thanks!)
</H1>
Download Arduino IDE0017 from http://code.google.com/p/arduino/downloads/list'>here.
Download SHT1x library from http://www.arduino.cc/playground/Code/Sensirion#SHT1x'>here and copy it to 0017-Arduino\hardware\libraries
Download Timer1 library from http://www.arduino.cc/playground/Code/Timer1'>here and copy it to 0017-Arduino\hardware\libraries
Download Webduino library from http://code.google.com/p/webduino'>here and copy it to 0017-Arduino\hardware\libraries
Open the pde file you download from this site and modify to your liking (IP address, description text...)
Compile and download if you are using the Duemilanove or proceed for the arduino UNO:
Go to the temporary folder (example in Windows to run type "% temp%") and in folder "build ..... tmp" to download the file generated in .hex
Connect the Arduino UNO and check the USB port is connected.
In ubuntu 10.04 for example (/dev/ttyACM1) and upload _. hex file with this command "avrdude -p m328p -P /dev/ttyACM1 -b 115200 -c stk500v1 -F -U flash:w:/$your path/25_06_2011_revision_4.cpp.hex"
Test ARDUINO with open browser and write "http://IP address in PDE Files"_
Works!!!
<H1>
HARDWARE:
</H1>
Anemometer (Digital pin 2 - pin 2 of RJ11, pin 3 to ground), rain gauge (Digital pin 3), wind vane (Analog pin 5 -> pin 1 of RJ45, pin 4 to ground) from http://www.sparkfun.com/products/8942'>here.
Temperature and Humidity sensor from http://www.sparkfun.com/products/8257'>here.
Photo resistor on pin analog 0 and connected just as described http://www.arduino.cc/playground/Learning/PhotoResistor'>here.
Arduino Diecimilla + Official Ethernet Shield (old version, but should work with new version)
<H1>
OUTPUT CHARTS
</H1>
See my 1-day charts http://supertechman.blogspot.com/p/weather-station-hourly-charts.html'>here.
Project Information
- License: GNU GPL v3
- 15 stars
- hg-based source control