Build a Simple IOT Weather Station

by Alex_chu in Circuits > Wireless

1009 Views, 4 Favorites, 0 Comments

Build a Simple IOT Weather Station

iot weather station banner.png

In this tutorial, we will build an awesome (it has a dashboard and chat feature!) yet simple IoT weather station using the Zio's Zuino XS PsyFi32 and our latest incorporation to the Qwiic family, the Zio Qwiic Air Pressure Sensor ! The board features a BMP280 sensor by Bosch that measures barometric pressure temperature, and it can be even used as an altimeter!

There are many weather station projects, but not many (or any that we could see) use the WiFi functionality of the Zuino XS PsyFi32 AND the Zio BMP280 sensor. The objective of this project is not just to build a weather station, but also to get started using the WiFi capabilities on the PsyFi32.

You should have already configured and installed PsyFi32 for development with the Arduino IDE. If you haven't, check out our tutorial to learn how to use the PSyFi32 with Arduino IDE.

Hardware:

Software & Libraries:

Connect the Zuino XS PsyFi32 and the Air Pressure Sensor Using the Qwiic Cable, and Power the PsyFi32

iot weather.jpg

The setup is pretty simple, just daisy chain the PsyFi32 and the Air Pressure sensor together. The good thing about Qwiic is that you don’t need a breadboard or a bunch of messy cables to connect the components!

Set Up ThingSpeak to Be Able to Read Sensor Data

If you don’t have it yet, create an account at ThingSpeak .Go to Channels on the top right menu and create a New ChannelFill in the information fields name and description, and select three Fields. In order, fill up the Field labels as follows: Temperature (°C), Pressure (hPa) and Altitude (m)You can fill up other information such as website link or Github, but the fields in (2) are the bare minimum

Flash the PsyFi32

Unnamed QQ Screenshot20181213165027.png

You will be required to enter your SSID and WiFi password before uploading the code.Go to the ThingSpeak Channel that you just created and click on API Keys. Copy the ‘Write API Key’ to the code (api_key string).

image1.jpg
IOT Weather Station Tutorial

You now have your own meteorological station!

You can have a look at the Channel we set up for this tutorial here .

Full code of the this tutorial can be downloaded here .