-
Notifications
You must be signed in to change notification settings - Fork 39
SPI broken? #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi thanks for reporting this. I'm wondering if there's some difference between running it on a native CircuitPython board and on the Raspberry Pi that's causing the error. |
@0x6470 , Is it an original Adafruit breakout ? |
Yes, it's an official board, I bought it from an official distributor (Eckstein GmbH). |
@0x6470 I have no problems with a BME280 which driver is exactly build on the same structure. |
The BME680 is a bit different than the BME280 in terms of SPI. See #16 (comment) from the last PR. I'll leave this open for when I get a chance to test on a RPi. |
@0x6470 Post a photo of your setup showing how you are wiring everything together. BME680 on RPi via SPI checks out OK.
pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board, busio, digitalio
>>> import adafruit_bme680
>>> cs = digitalio.DigitalInOut(board.D5)
>>> spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
>>> bme680 = adafruit_bme680.Adafruit_BME680_SPI(spi, cs)
>>> bme680.temperature
23.73234375
>>> bme680.humidity
44.72550176005509
>>> bme680.pressure
1015.1474238206924
>>> |
Thanks for testing this @caternuson |
I'm so sorry... |
I tried to implement this library in order to read the data form this sensor.
Here's my code:
I get the error
"Failed to find BME680! Chip ID 0xff"
Changing the value in line 45 of adafruit_bme680.py didn't help me.
I checked my wiring many times and also got myself a second sensor, which didn't work (with SPI) either.
Strangely both of them work, when connected via I2C.
I'm running a Raspberry Pi Zero W (Yes, SPI and I2C are enabled via raspi-config) with openHABian, but I also tried it on a Raspberry Pi 3 B+ with Raspbian, just to get the same error.
The text was updated successfully, but these errors were encountered: