Diy weather station kit

Diy weather station kit DEFAULT

Introduction: Complete DIY Raspberry Pi Weather Station With Software

Back in late February I saw this post on the Raspberry Pi site.

They had created Raspberry Pi Weather Stations for Schools. I totally wanted one! But at that time (and I believe still as of writing this) they are not publicly available (you need to be in a select group of testers). Well, I wanted on and I didn't feel like shelling out hundreds of dollars for an existing 3rd party system.

So, like a good Instructable user, I decided to make my own!!!

I did a little research and found some good commercial systems I could base mine off. I found some good Instructables to help with some of the Sensor or Raspberry PI concepts. I even found this site, which was pay dirt, they had tore down an existing Maplin system:

Fast forward about a month and I have a basic working system. This is a complete Raspberry Pi Weather system with just the base Raspberry Pi hardware, camera, and some assorted analog and digital sensors to make our measurements. No buying pre-made anemometers or rain gauges, we are making our own! Here's it's features:

  • Records info to RRD and CSV, so can be manipulated or exported/imported to other formats.
  • Uses the Weather Underground API to get cool info like historical highs and lows, moon phases, and sunrise/sunset.
  • Uses the Raspberry Pi Camera to take a picture once a minute (you can then use them to make timelapses).
  • Has webpages that display the data for the current conditions and some historical (last hour, day, 7 days, month, year). The website theme changes with the time of day (4 options: sunrise, sunset, day and night).

All of the software for record and displaying the information is in a Github, I've even done some bug tracking, feature requests in there as well:

This project was a great learning experience for me, I got to really dive into the capabilities of the Raspberry Pi especially with the GPIO, and I hit some learning pain points as well. I hope you, the reader, can learn from some of my trials and tribulations.

Step 1: Materials


  • 9 Reed Switches (8 for the Wind Direction, 1 for the Rain Gauge, optionally 1 for the wind speed instead of a Hall Sensor), I used these:
  • 1 Hall Sensor (for the Wind Speed, called an anemometer) -
  • Temperature (
  • Humidity (lots of Humidity sensors come with a Temperature sensor), I used the DHT
  • Pressure (the BMP came with a temperature sensor in it as well), I used the BMP,, this product is now discontinued but there is an equivalent with the BMP (
  • Photoresistor (
  • GPS Chip or USB GPS (
  • 4 strong magnets (2 for anemometer, 1 for Direction, 1 for Rain Gauge), I used the rare earth magnets, highly recommended) (
  • A handful of assorted resistors, I have this pack which has proved extremely handy over time:
  • MCP - to convert analog to digital inputs for the Raspberry Pi -



  • 2 Thrust Bearings (or skateboard or roller-skate bearings will work too), I got these on Amazon:
  • 2 Waterproof Enclosures (I used an electrical enclosure from the local big box store), doesn't matter much, just need to find a good size enclosure that's going to have enough space and protect everything).
  • Some PVC Pipe and End Caps (various sizes).
  • PVC mount brackets
  • Couple sheets of thin Plexiglass (nothing too fancy).
  • plastic standoffs
  • mini screws (I used #4 bolts and nuts).
  • 2 Plastic Christmas Tree Ornament - used for the anemometer, I got mine at the local Hobby Lobby.
  • Small dowel
  • Small piece of plywood.


  • Dremel
  • Glue Gun
  • Soldering Iron
  • Multimeter
  • Drill

Step 2: Main Enclosure - Pi, GPS, Camera, Light

The main enclosure houses the PI, the Camera, the GPS and the light sensor. It is designed to be waterproof since it houses all the critical components, the measurements are taking from the remote enclosure and that one is designed to be exposed/open to the elements.


Pick an enclosure, I used an electrical junction box, various project boxes and waterproof cases will work just as well. Key point is it has enough space to hold everything.

My Enclosure contains:

  • The raspberry pi (on standoffs) - Needs a WIFI chip, don't want to be running Cat5e into the backyard!
  • The Camera (also on standoffs)
  • The GPS chip, connected via USB (using a sparkfun FTDI cable: - The GPS provides latitude and longitude, which is nice, but more importantly, I can get accurate time from the GPS!
  • two ethernet/cat 5 jacks to connect the Main enclosure to the other enclosure that houses the other sensors. This was just a convenient way of having cables going between the two boxes, I have roughly 12 wires, and the two cat5 provide 16 possible connections, so I have room to expand/change things around.

There is a window in the front of my enclosure for the Camera to see out of. The case with this window protects the camera, but I did have issues where the red led on the camera (when it's taking a photo) reflects off the plexiglass and shows up in the photo. I used some black tape to mitigate this and try and block it (and other LEDs from the Pi and GPS), but it's not % yet.

Step 3: 'Remote Enclosure' for Temperature, Humidity, Pressure

This is where I stored the Temperature, Humidity, and Pressure sensors as well as the "hook ups" for the rain gauge, wind direction and wind speed sensors.

It's all very straightforward, pins here connect via the ethernet cables to the required pins on the Raspberry Pi.

I tried to use Digital sensors where I could and then any Analog are added on to the MCP it takes up to 8 analog which was more than enough for my needs, but gives room to improve / expand.

This enclosure is open to the air (it has to be for accurate temperature, humidity and pressure). The bottom holes are popped out, so I gave some of the circuits a spray of a Silicone Conformal Coating spray (you can get it online or a place like Fry's Electronics). Hopefully it should protect the metal from any moisture, though you have to be careful and not use it on some of the sensors.

The top of the enclosure is also where the wind speed sensor fits. It was a toss up, I could have put the wind speed or wind direction on top, I didn't see any major advantages of one over the other. Overall you want both sensors (wind dir and speed) high enough where buildings, fences, obstacles don't interfere with the measurements.

Step 4: Rain Gauge

I mostly followed this instructable to make the actual gauge:

I made this out of plexiglass so I could see what was going on and I thought it would be cool. Overall the plexiglass worked ok, but combined with the Gluegun, rubber sealant and overall cutting and drilling it doesn't stay looking that pristine, even with the protective film.

Key points:

  • The sensor is a simple reed switch and magnet treated like a button press in the RaspberryPi code, I simple count buckets over time and then make the conversion later to "inches of rain".
  • Make it big enough to hold enough water to tip, but not so much that it needs a lot in order to tip. My first pass I made each tray not large enough so it would fill and start draining over the edge before it tipped.
  • I also found that residual water could add some error to the measurement. Meaning, completely dry it took X drops to fill a side and tip it, once wet it took Y drops (which is less than X) to fill and tip. Not a huge amount but came into affect when trying to calibrate and get a good "1 load equals how much" measurement.
  • Balance it, you can cheat by adding gluegun glue to the underneath ends if one side is vastly heavier then the other, but you need it as close to balanced as you can.
  • You can see in the photo I setup a little testing rig using some sponges and a wood holder to test and get it balanced properly before installing.

Step 5: Wind Direction

This was a simple weather vane. I based the electronics off the Maplin system:

Key Points:

  • This is an analog sensor. The eight reed switches combined with various resistors divide up the output into chunks so I can identify which coordinate the sensor is in by the value. (The concept is explained out in this instructable:
  • After screwing on the weather vane part you do need to calibrate it so that "this direction is what points north".
  • I made a test rig with wood so that I could switch in and out resistors easily that covered the full range of values for me, that was super helpful!
  • I used a thrust bearing, it did fine, I'm sure a regular skateboard or rollerskate bearing would have been just as fine.

Step 6: Wind Speed

This one I once again turned to the Instructable community and found and followed this instructable:

Key points:

  • You can use the hall sensor or switch to a reed sensor as well. The hall sensor is more of an analog sensor so if you are using it in a digital way, like a button press, you need to make sure the reading/voltage is high enough that it acts like a true button press, rather than not enough.
  • Size of the cup is crucial, so is the length of the stick! Originally I used ping pong balls and they were way too small. I also put them on long sticks which didn't work either. I got very frustrated and then came across that instructable, Ptorelli did a great job explaining and it helped me out when my original design didn't work as well.

Step 7: Software

Software is written in Python to record the data from the sensors. I used some other 3rd party Git libraries from Adafruit and others to get the information from the sensors and GPS. There are also some cron jobs that pull some of the API information as well. Most is explained/outlined in the Git documentation at docs/install_notes.txt

The web software is in PHP to display it on the webpage while also utilizing YAML for the config files and of course the RRD tool to store and graph the data.

It utilizes the Weather Underground API to get some of the interesting data that sensors can't pull: Record Hi's and Lows, Phase of the Moon, Sunset and Sunrise times, there's also Tides available on their API, which I thought was really neat, but I live in Austin TX which is very far from water.

All of it is available on Github and is actively maintained and currently being used as I further refine and calibrate my own system, so you can submit feature requests and bug reports as well.

The software goes through a theme change depending on the time of day, there are 4 stages. If the current time is + or - 2 hrs from sunrise or sunset then you will get the sunrise and sunset themes, respectively (right now just a different background, I will probably do different font/border colors in the future). Likewise outside those ranges gives the day or night theme.

Thanks for reading, If you'd like to see more photos and videos of my projects than check out my Instagram and YouTube Channel.

1 Person Made This Project!

Did you make this project? Share it with us!


  • Plastic Challenge

    Plastic Challenge
  • Pumpkins & Gourds Speed Challenge

    Pumpkins & Gourds Speed Challenge
  • Space Contest

    Space Contest

Weather Station Kit with Solar Panel

  • Operating voltage: 5V
  • Size: **mm (**")
  • Weight: g
  • Controller: Paletter Board  x1
  • Self Adhesive Mini Breadboard  x1
  • LCD Module  x1
  • Capactive Touch Sensor  x1
  • Solar Lipo Charger  x1
  • Polymer Lithium Ion Battery v  x1
  • DHT22 Temperature and Humidity Sensor  x1
  • Gravity: i2C BMP Barometer Sensor  x1
  • Real Time Clock Module (DS)  x1
  • 3mm Bassword Lasercut Peices  x1
  • F/M Jumper Cables  x15
  • F/F Jumper Cables  x10
  • Aluminium Foil  x1
  • Blu Tack  x1
  • Screw Pack  x1
  • Screw Driver  x1
  • Documents

  • Weather Station User Manual V Eng a traducir (Spanish)
  • Weather Station V User Manual
  • Weather Station V User Manual
  • Arduino Library and Code (BMP Version) (Required IDE x, the higher IDE x will have a compiling error)
  • Arduino Library and Code (BMP Version) (Compatible with x, x, x)

  • Shipping List

    • DIY weather station KIT  x1
    1. Names for pubg
    2. Sims 3 apple computer
    3. 1977 c10 cowl hood
    4. Sarasota speed boat races
    5. Wonder woman gif


    In we sent out nearly Oracle Raspberry Pi Weather Stations to schools from around the world who had applied to receive these kits. The original Weather Station kit is a HAT for the Raspberry Pi that allows it to collect weather data using a variety of sensors. It is designed to be used in schools to enable students to create their own weather station, and has a range of resources to support its use.

    These kits have been very popular. If you’re one of the many people who has been wanting to get hold of one, this guide will take you through the process of building your own.

    This is an advanced project both in terms of electronics and programming. You should read through the whole project before purchasing any components.

    What you will make

    A weather station for collecting local climate and environmental data. First of all you will develop and build a prototype weather station using a breadboard and jumper wires. Once you’ve got everything running and tested, you can turn this prototype into a more robust build so that you can deploy it outside and it will be reliable in the long term.

    What you will learn

    This project covers elements from the following strands of the Raspberry Pi Digital Making Curriculum:


    He tenses his whole body when I begin to suck on his sweet pussy. Workout of movements comes on the go. Who, as a man, does not know what a creature like him wants with the same aggregate of pleasures in the groin. Staying on our feet is hard for both of us. We move onto a sofa nearby.

    Kit diy weather station

    Ariada, at lunchtime you said that you were ready to continue. Why are you acting like this now. - I didn't say anything, I just ate the fruit.

    DIY Raspberry Pi Weather Station

    Yes, my mother replied, We have never been among them, in their world at this time, and we need to do. As all people do. We now live among them, and we need to clearly learn a lot, as they all do.

    You will also be interested:

    Sorry for Ima. Good girl!" - Mikhail sighed standing next to him. I looked at him.

    1380 1381 1382 1383 1384