Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robmarkcole/bme680-mqtt-micropython
Publish data from the bme680 sensor over MQTT using micropython
https://github.com/robmarkcole/bme680-mqtt-micropython
micropython pycom wipy
Last synced: about 2 months ago
JSON representation
Publish data from the bme680 sensor over MQTT using micropython
- Host: GitHub
- URL: https://github.com/robmarkcole/bme680-mqtt-micropython
- Owner: robmarkcole
- License: mit
- Created: 2017-12-15T09:23:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T06:42:33.000Z (about 6 years ago)
- Last Synced: 2024-05-01T14:24:57.355Z (7 months ago)
- Topics: micropython, pycom, wipy
- Language: Python
- Size: 3.61 MB
- Stars: 15
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpython - bme680-mqtt-micropython - Driver for BME680 gas, pressure, temperature and humidity sensor. (精选驱动库 / 传感器)
- awesome-micropython - bme680-mqtt-micropython - Driver for BME680 gas, pressure, temperature and humidity sensor. (Libraries / Sensors)
README
# bme680-mqtt-micropython
Publish data from the bme680 sensor over MQTT using micropython. Makes use of:
* https://github.com/gkluoe/bme680/blob/master/library/bme680/i2c.py
* https://github.com/pimoroni/bme680
Am using in my leak sensor rig:
* https://www.hackster.io/robin-cole/micropython-leak-detector-with-adafruit-and-home-assistant-a2fa9e[On Wipy 3](https://docs.pycom.io/datasheets/development/wipy3#pinout), P9 = SDA and P10 = SCL.
Read sensor bytes using `machine` with:
```python
from machine import I2C
i2c = I2C(0) # using defauls P9 and P10
i2c.scan() # returns [119] which is hex 0x77
i2c.readfrom(0x77, 5) # read 5 bytes
```