DIY Raspberry Pi Weather Station #piday #raspberrypi @Raspberry_Pi
I have a weather station I’ve built up over time using two Raspberry Pi B+s, a Raspberry Pi 2, a mesh radio network, and a bunch of different sensors from AdaFruit. As an aside, I really love AdaFruit; they’re incredibly responsive, ship immediately, have a great web site and lots of learning material, and they’re totally funded by sales. Great place, throw them some business.
The weather station is currently running version 09 of my Python software, which I won’t include here because it’s really long and convoluted because of the interface with non-I2C sensors.
As I mentioned, the system is built around a core Raspberry Pi B+. Here’s a picture of it. If you click on the picture it will bring up a much larger version so you can see more detail.
The RPi is in a frosted case. There’s a black ribbon cable that extends the GPIO pins to a solderless breadboard. There is also a white ribbon cable coming out the top that leads up to the window where there is a Raspberry Pi PiCam (RP_OV5467 5 MP camera) taped to the window to monitor the outside weather.
You can also see a SparkFun Redboard Arduino with an XBee Pro on a shield. More about that later.
This Raspberry Pi runs the primary software, which, as I noted, is written in Python 2.7. It reads the sensors, writes data into a remote mySQL database, and updates the Internet with current conditions. These updates occur every six minutes; the sensor reading and processing program runs from cron.
There are four primary sensor platforms: first is a bundle of sensors that are hanging out the bedroom window to measure outside conditions; second is a GPS unit that tracks the weather station’s location (not that it ever moves); third is a full size breadboard with digital sensors; fourth is a Geiger counter to measure radiation levels. We’ll talk about the digital inside platform first.
Adafruit HTU21D-F Temperature & Humidity Sensor Breakout Board: It’s summer and you’re sweating and your hair’s all frizzy and all you really want to know is why the weatherman said this morning that today’s relative humidity would max out at a perfectly reasonable 52% when it feels more like 77%. Enter the HTU21D-F Temperature + Humidity Sensor – the best way to prove the weatherman wrong! Read more.
SI1145 Digital UV Index / IR / Visible Light Sensor: Remember when you were a kid and there was a birthday party at the pool and your parents totally embarrassed you by slathering you all over with sunscreen and you were all “MOM I HAVE ENOUGH SUNSCREEN” and she wouldn’t listen? Well, if you had this UV Index sensor connected up to an Arduino you could have said “According to this calibrated SI1145 sensor from SiLabs, the UV index right now is 4.5 which means I do not need more sunscreen” and she would have been so impressed with your project that you could have spent more time splashing around. Read more.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
We are angry, frustrated, and in pain because of the violence and murder of Black people by the police because of racism. We are in the fight AGAINST RACISM. George Floyd was murdered, his life stolen. The Adafruit teams have specific actions we’ve done, are doing, and will do together as a company and culture. We are asking the Adafruit community to get involved and share what you are doing. The Adafruit teams will not settle for a hash tag, a Tweet, or an icon change. We will work on real change, and that requires real action and real work together. That is what we will do each day, each month, each year – we will hold ourselves accountable and publish our collective efforts, partnerships, activism, donations, openly and publicly. Our blog and social media platforms will be utilized in actionable ways. Join us and the anti-racist efforts working to end police brutality, reform the criminal justice system, and dismantle the many other forms of systemic racism at work in this country, read more @ adafruit.com/blacklivesmatter
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.