Skip to content

Latest commit

 

History

History
83 lines (49 loc) · 2.15 KB

README.md

File metadata and controls

83 lines (49 loc) · 2.15 KB

WeatherStation

Collects and plots data from wind and rain meters

Sparkfun anemometer, wind vane, and rain gauge:

Setup

Arduino

Compile and upload weatherstation.ino to an Arduino Uno

Plug in weatherstation:

METER PIN
ANEMOMETER 2
RAIN GUAGE 3
WIND VANE A0

Also, see additional documentation.

Set up data collection

On Raspbian (Raspberry Pi):

sudo apt-get install python-numpy python-matplotlib python-serial
git clone https://github.com/gabrielburnworth/WeatherStation
cd WeatherStation
bash setup.sh

Will prompt you to calibrate the wind vane by aligning it with North. Once done, it will:

  1. Start data collection by running weatherstation_data_collection.py

  2. Create cronjob to plot the data every day at 12:01 AM

Data Collection

Serial output: WS WD R: 0.00 0.00 0.00

Wind-Speed(mph) Wind-Direction(v) Rainfall(in/hr)

Data is stored in a pickled numpy array

[[time(sec) wind-speed(mph) wind-direction(v) rainfall(in/hr)] ...]

Plots:

  • Wind radar plot
  • Rainfall and wind details

Example Plots

Wind speed and direction radar plot:

Rainfall and wind detail plots:

Additional Documentation

Sensor details (PDF) from Sparkfun

Wind Vane diagram:

Interrupt pins used:
METER PIN INTERRUPT
ANEMOMETER 2 0
RAIN GUAGE 3 1