Chamal Ayesh
Published © MIT

DIGI XBEE3 with BMP180

In this project I am going to show you how to connect BMP180 barometer sensor with Digi Xbee3 MicroPython radio module.

BeginnerFull instructions provided1 hour250
DIGI XBEE3 with BMP180

Things used in this project

Hardware components

Digi XBEE3 LTE-M/NB-IoT Development Kit
×1
Bosch BMP180
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Digi XCTU

Story

Read more

Schematics

Digi Xbee 3 with BMP180

This illustrates how to wire Digi Xbee 3 with BMP180 barometer sensor.

Code

Digi Xbee3 with BMP180

Python
from bmp180 import BMP180
from machine import I2C, Pin
bus = I2C(1, freq=100000)
bmp180 = BMP180(bus)
bmp180.oversample_sett = 2
bmp180.baseline = 101325
temp = bmp180.temperature
p = bmp180.pressure
while True:
	print("Values : ", temp, p)
	time.sleep_ms(1000)

Credits

Chamal Ayesh

Chamal Ayesh

5 projects • 1 follower
I am a software engineer with 15+ years experience. I have been working on IoT projects for 5+ years. Eager to learn new things.

Comments