Get Data From Weather Sensor Using Python On Microcontroller

About the project

In this tutorial we'll see how to read temperaure and humidity data from a weather sensor using Zerynth.

Project info

Difficulty: Easy

Platforms: MikroElektronikaZerynth

Estimated time: 1 hour

License: GNU General Public License, version 3 or later (GPL3+)

Items used in this project

Hardware components

MikroElektronika Flip&Click MikroElektronika Flip&Click x 1
MikroElektronika Weather Click MikroElektronika Weather Click x 1

Software apps and online services

Zerynth Studio Zerynth Studio

Story

https://www.youtube.com/watch?v=y6X0DUC078E

In this tutorial we'll see how to read temperature and humidity data from the Weather Click using the Flip&Click board.

We’ll use Zerynth Studio to program the microcontroller-based board in Python.

Zerynth simplifies and speeds up IoT development allowing programming in Python or hybrid C/Python the most popular 32-bit microcontrollers and connecting them to the leading Cloud Infrastructures like AWS, Google Cloud, Microsoft Azure, IBM Watson, Ubidots, and many more.

Required Material

  • You also need a WeatherSensor: we’ve chosen the Weather Click by MikroElektronika (read Zerynth documentation here).

Last but not least, you need:

Zerynth Studio, a powerful IDE for embedded programming in Python that enables the IoT. You can download it here.

Assembling

Just put the Weather Click on the slot “A” of the Flip&Click board (see schematics).

Programming

Once you have installed Zerynth Studio and created a Zerynth user, you have to register and virtualize the board.

Open the Zerynth documentation, copy the code snippet into a new project, complete it as shown in the video and uplink.

Place you hand on the weather sensor to see the temperature and humidity values on the serial monitor.

Now you can start to customize your program in Python!

Schematics, diagrams and documents

schematics.png

This is the project scheme.

Code

main.py

Credits

Leave your feedback...