Git Product home page Git Product logo

Comments (4)

Gadgetoid avatar Gadgetoid commented on September 24, 2024

It looks like you're running into IO errors for some reason- is the BME680 plugged directly into Breakout Garden, what other sensors do you have connected, and do you have an entry for i2c baudrate in your /boot/config.txt?

from bme680-python.

StefanKreiling avatar StefanKreiling commented on September 24, 2024

thanks for answering.
no there is no setting for i2c baudrate. I added 40000. Tried to get a bmp280 running on breakout garden with a similar result:
~/breakout-garden-master/bmp280-python/examples $ python2 dump-calibration.py
Traceback (most recent call last):
File "dump-calibration.py", line 10, in
bmp280.setup()
File "/usr/local/lib/python2.7/dist-packages/bmp280/init.py", line 146, in setup
raise RuntimeError("Unable to find bmp280 on 0x{:02x}, CHIP_ID returned {:02x}".format(self._i2c_addr, self._bmp280.CHIP_ID.get_id()))
RuntimeError: Unable to find bmp280 on 0x76, CHIP_ID returned 00
Moreover, the oled I planned to use doesn't work, too - getting a dotted line.
Any idea much appreciated.
Many thanks

from bme680-python.

GeCr1988 avatar GeCr1988 commented on September 24, 2024

@StefanKreiling you can try to use the secondary address of the BME680 which is 0x77. It worked for me.
But just to be sure if the device is connected properly you can write in the REPL the following command.

>>> from machine import I2C
>>> i2c = I2C(0, I2C.MASTER,pins=('P22','P21'), baudrate=100000)
>>> i2c.scan()
[8, 16, 30, 119]
>>>

The value 119 = 0x77. Hope this help you

The BME680 - CHIP_ID is 0x61 indeed … however I saw the the get_chip ID method returns the b'a'.
If you compare b'a'[0] == 0x61 the result will be True.

from bme680-python.

StefanKreiling avatar StefanKreiling commented on September 24, 2024

solved. fresh installation of raspbian did help. Don't know what the issue was but must have been a software issue. The only difference was probably a) installation of python2 & 3 and b) double installation of BME680 (package with breakout garden & single install?)
thanks for the help -

from bme680-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.