Comments (3)
This scenario happened to me too. I ended up using the TCA9548A I2C Multiplexer to get this accomplished. Worked like a charm. If you are quick pintch in a hurry you can use a GPIO to power the sensor (it requires really low current so a gpio pin set to high is enough) and just cycle them from high to low sequentially to get all measurements.
from bme680-python.
As much as I hate to say it - since we only provide breakouts that use the i2c interface and this library is strongly i2c focussed - I'm afraid I can't support use over SPI.
You can- however- throw up an additional i2c bus using i2c-gpio
(documentation in the overlays readme: https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/README) on a Raspberry Pi using any two regular GPIO pins and appropriate pull resistors.
Then you can initialise the BME680 library with your new i2c bus like so:
from smbus import SMBus
from bme680 import BME680
bme680 = BME680(i2c_device=SMBus(N))
SPI support is something I would consider reviewing and merging a PR for, however, since I know many people using breakouts not manufactured by us use this library and may want this feature.
from bme680-python.
Thanks for the answer. I think i'm gonna buy an i2c multiplexer und use this.
from bme680-python.
Related Issues (20)
- Invalid CHIP ID: 0x60 HOT 4
- IOError: [Errno 121] Remote I/O error HOT 16
- Temperature offset and humidity issue HOT 6
- can I make a pi with the bme680 hat act as a zigbee z-wave device ? HOT 1
- chip id issue with BME680 Breakout HOT 4
- Solution for "BME680 Not Found. Invalid CHIP ID: 0x-79"
- Broken link in readme? HOT 3
- heat_stable goes to False, then intermittent Errno 121
- Add support for IAQ, eCO2 and bVOCe HOT 1
- Error in get_sensor_data (after running for some time)
- gas same value
- How can the heater be disabled? HOT 1
- constants don't match Bosch-version
- Micropython bme.data.gas_resistance always exact same reading (-1.986394e+07 Ohms)
- Altitude and sea level pressure HOT 2
- How do I force sleep mode?
- Can this be used in micropython? HOT 3
- Getting the estimated CO2 in ppm
- Using v2.0.0 with temperature_pressure_humidity.py unmodified example from repository HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bme680-python.