RASPBERRY PI WEATHER STATION: BUILD YOUR OWN TEMPERATURE MONITOR #piday #raspberrypi @Raspberry_Pi
Make an inexpensive weather station using the Raspberry Pi, Via MagPi:
Come rain or shine, a Raspberry Pi weather station makes a great project. With a budget of around $100, Peter Kodermac built a Pi-powered weather station that captures temperature data, graphs it, and publishes it online. His website provides step-by-step instructions to walk you through the process, which involves some simple wiring, and setting up the Raspberry Pi as a web server.
For the Raspberry Pi weather station sensor, Peter recommends the DS18B20. It’s waterproof and comes with a long cable so you can keep the sensor away from the weather station, which might generate heat. The DS18B20 doesn’t measure humidity, so if you want to track humidity, try the DHT22 instead. Peter warns that the DHT22 tends to give less consistent values and can take more than one attempt to get a reading. Peter’s code, available through GitHub, is designed to compensate for that, automatically retrying where necessary.
Peter uses a Pi Cobbler breakout cable and a breadboard to make it easy to connect the sensor to the Raspberry Pi. Make sure you buy the correct Cobbler cable for the model of Raspberry Pi you are using! Everything is housed in a plastic food box, with a hole for the power cable to go in, and for the sensor cable to come out. A wooden roof offers shelter, and Peter puts silica gel sachets inside the box to offer additional protection from moisture.
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!
featured adafruit products
Featured Adafruit Product!
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, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, 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.