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.

BeginnerFull instructions provided1 hour1,106
Get Data From Weather Sensor Using Python On Microcontroller

Things used in this project

Hardware components

MIKROE Flip&Click
×1
MIKROE Weather Click
×1

Software apps and online services

Zerynth Studio
Zerynth Studio

Story

Read more

Schematics

schematics.png

This is the project scheme.

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

8 projects • 4 followers
silvia11931

silvia11931

10 projects • 9 followers

Comments