https://github.com/michaelneys/bme280-python
Bosch BME280 sensor
https://github.com/michaelneys/bme280-python
bme280 bme280-sensor bme280driver bosch bosch-sensor humidity-sensor micropython pressure-sensor raspberry-pi-pico temperature-sensor
Last synced: 3 months ago
JSON representation
Bosch BME280 sensor
- Host: GitHub
- URL: https://github.com/michaelneys/bme280-python
- Owner: MichaelNeys
- License: mit
- Created: 2025-02-23T20:31:38.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T19:03:44.000Z (9 months ago)
- Last Synced: 2025-03-21T20:20:01.949Z (9 months ago)
- Topics: bme280, bme280-sensor, bme280driver, bosch, bosch-sensor, humidity-sensor, micropython, pressure-sensor, raspberry-pi-pico, temperature-sensor
- Language: Python
- Homepage:
- Size: 275 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bosch BME280 sensor
Temperature, humidity and pressure measurement using Python on a Raspberry Pi Pico W with I2C on the Bosch BME280 and sending its data to an MQTT server.
## Cabling


- I2C0 SDA (pin 1) on `SDA`
- I2C0 SCL (pin 2) on `SCL`
- 3V3(OUT) (pin 36) on `VIN`
- GND (pin 38) on `GND`
## Config
### WiFi
- `SSID` - your WiFi network name
- `PASSWD` - your WiFi network password
### MQTT
- `MQTT_BROKER` - MQTT broker ip-address
- `MQTT_USERNAME` - MQTT username
- `MQTT_PASSWORD` - MQTT password
- `MQTT_CLIENT_ID` - MQTT client ID
- `TOPIC_DIRECTORY` - topic directory to publish to
### update interval
- `time` - time in seconds between updates
## Flashing
- copy both python files to the root folder of the Raspberry Pi Pico W
- `main.py`
- `bme280.py`
- copy `config.json` after filling in required information