Will look into that, thank youfstengel wrote: ↑Thu Mar 21, 2019 5:56 pmThat's the weird bit: normally the bno's address should be 0x28 or 0x29, depending on the state of its COM3 pin. If you are using the adafruit package, this pin is accessed through the ADR pin and defaults to COM3 low and 0x28 as the I2C address. So first things first: check if your bno is properly wired...
How to read from a i2c sensor and print on a i2c display when both use different init pins
-
- Posts: 13
- Joined: Mon Mar 11, 2019 2:23 pm
Re: How to read from a i2c sensor and print on a i2c display when both use different init pins
-
- Posts: 13
- Joined: Mon Mar 11, 2019 2:23 pm
Re: How to read from a i2c sensor and print on a i2c display when both use different init pins
Ive gone ahead and tightened the female ends on my wires connecting the ESP32 to the bno055 just in case they were loose. I am using the GND off the ESP32 and my wires are about 6inches long.
Unfortunately, the problem with addresses fluctuating still stands, I'm seeing 41 and 42 as addresses. Do you think I should lock the address down?
Re: How to read from a i2c sensor and print on a i2c display when both use different init pins
Yes. Tie the ADR pin of the bno55 to a stable level, like GND.
-
- Posts: 13
- Joined: Mon Mar 11, 2019 2:23 pm
Re: How to read from a i2c sensor and print on a i2c display when both use different init pins
Thanks everyone who has helped, I think I have gotten somewhere:
I set the address on the I2C by grounding out the ADR pin. This helped lock the address down.
To deal with the OSError: ETIMEDOUT I had to set my timeout to 2000 in the i2c init via:
I set the address on the I2C by grounding out the ADR pin. This helped lock the address down.
To deal with the OSError: ETIMEDOUT I had to set my timeout to 2000 in the i2c init via:
Code: Select all
i2c = I2C(-1, Pin(22), Pin(21), timeout=2000)
-
- Posts: 13
- Joined: Mon Mar 11, 2019 2:23 pm