Tommaso Martorellasilvia11931
Published © GPL3+

Get Data From Weather Sensor Using Python On Microcontroller

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

EasyFull instructions provided1 hour185
Get Data From Weather Sensor Using Python On Microcontroller

Things used in this project

Hardware components

MikroElektronika Flip&Click
×1
MikroElektronika Weather Click
×1

Software apps and online services

Zerynth Studio
Zerynth Studio

Story

Read more

Schematics

schematics.png

This is the project scheme.
Schematics z5i2xfex5d

Code

main.py

Python
# weather
# Created at 2018-06-04 10:47:00.960125

from bosch.bme280 import bme280
import streams

streams.serial()

bmp = bme280.BME280(I2C0)

while True:
    temp, hum, pres = bmp.get_values()
    print("temp:", temp, "hum:", hum)
    sleep(1000)

Credits

Tommaso Martorella

Tommaso Martorella

6 projects • 3 followers
Contact
silvia11931

silvia11931

8 projects • 5 followers
Contact

Comments