Being able to monitor the weather in real-time is great for education, research, or simply to analyze how the local climate changes over time. This project by Hackster.io user Pradeep explores how he was able to design a simple station outdoors that could communicate with a cloud-based platform for aggregating the sensed data.
The board Pradeep selected is the Arduino MKR WiFi 1010 owing to its low-power SAM D21 microcontroller and Wi-Fi/BLE connectivity for easy, wireless communication. After configured, he connected a DFRobot Lark Weather Station, which contains sensors for measuring wind speed/direction, temperature, humidity, and barometric pressure — all in a compact device. Every second, the MKR WiFi 1010’s sketch polls the sensors for new data over I2C before printing it to USB.
The cloud integration aspect was achieved by leveraging Qubitro’s platform to collect and store the data for later visualization and analysis. To set it up, Pradeep created a new device connection and copied the resulting MQTT endpoint/token into his sketch. Then once new data became ready, it got serialized into a JSON payload and sent to the topic where a variety of widgets could then show dials and charts of each weather-related metric.
To read more about this DIY weather station, you can visit Pradeep’s project write-up here.