Chamal Ayesh Wickramanayaka
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 hour871
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 Wickramanayaka

Chamal Ayesh Wickramanayaka

21 projects • 25 followers
Experienced software engineer with a passion for AI, IoT, and innovation, continuously seeking to learn and embrace new technologies.

Comments