MPU-6886 adress (0x68) OK / (0x69) NOT OK

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
stefan.erni
Valued Contributor
Posts: 765
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 172 times

MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by stefan.erni »

Hi Ben

The MPU6886 is working nice with the adress 0(0x68)

But NOT with the adress 0(0x69) (and hardware change pin A0)



regards

Stefan
Attachments
Snag_e27822.png
Snag_e27822.png (35.57 KiB) Viewed 983 times

stefan.erni
Valued Contributor
Posts: 765
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 172 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by stefan.erni »

Hi Ben

So if I use only one IMU, that's ok

Adress 0(0x69) with A0 GND works
Adress1(0x69) with A0 3v3 works

unfortunately I need both IMU

There is already a problem with initialising

This program does not run, it hangs on the second test.
no matter if address 0 or 1 first

regards

Stefan

hang on second test:
Snag_97cfc5.png
Snag_97cfc5.png (134.25 KiB) Viewed 973 times

stefan.erni
Valued Contributor
Posts: 765
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 172 times

Flowcode v10 Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by stefan.erni »

Hi Ben

I prepared 4 IMU
2pcs with adress 0x68
2pcs with adress 0x69

I tested individually on bus1 and all of these work well.

So I connected them all on bus1 and bus2 and this is not working
but if I connect one module to bus1 and the other to bus2, it works no matter which address I use.
Only one module works on one bus!
(of course I have always adjusted the addresses and pins)

My hardware has 2 groove connector, but soon I have to connect it to a smaller hardware with only one i2c bus free

regards

Stefan

BenR
Matrix Staff
Posts: 1760
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 607 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by BenR »

Hi Stefan,

Is it an ESP you're using? I think I might need to make a similar mod like I did to the ESP32 SPI CAL.

stefan.erni
Valued Contributor
Posts: 765
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 172 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by stefan.erni »

Hi Ben

Yes it's an ESP32 now and later.
regards

Stefan

BenR
Matrix Staff
Posts: 1760
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 607 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by BenR »

OK thanks, I'll look into doing the mod for you this afternoon.

BenR
Matrix Staff
Posts: 1760
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 607 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by BenR »

Hello,

Right I've pushed a change and checked it compiles ok. Hopefully this should now allow multiple components to share the same ESP32 I2C hardware channel.

Let me know how you get on.

stefan.erni
Valued Contributor
Posts: 765
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 172 times

Re: MPU-6886 adress (0x68) OK / (0x69) NOT OK

Post by stefan.erni »

Hi Ben

I tested two modul on the same bus and now it's working perfect!

thank's alot

regards

Stefan

Post Reply