Giter VIP home page Giter VIP logo

weatherstation's Introduction

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

weatherstation's People

Contributors

gabrielburnworth avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.