Skip to content

Not working with MPU-9250 IMU, reads fail #1761

Closed
@MiloMindbender

Description

@MiloMindbender

Hardware:

Board: Adafruit ESP32 feather
Core Installation/update date: 1.0.0
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600

Description:

I noticed in some closed issues there were problems with the MPU-9250 IMU that were apparently resolved, but it appears these problems may have come back.

My ESP32 is unable to communicate with the https://www.sparkfun.com/products/13762 9250 i2c breakout board. When I got this it seemed to be running fine but with the latest release of ESP32 arduino support this doesn't seem to work any more.

Samples from this repository
https://github.com/sparkfun/SparkFun_MPU-9250-DMP_Arduino_Library
or this one
https://github.com/sparkfun/SparkFun_MPU-9250_Breakout_Arduino_Library

Both fail in similar ways, the writes appear to go through and be acked and all the reads fail with a nak according to my Saleae logic analyzer. It is not even possible to retrieve the "who am I" value.

I have tried adding 3.3k pullups to the setup, but this does not make any difference.
I have tried using 100,000 and 400,000 speeds on Wire, no difference.

I have also double-checked the wires, only 4 (2 power and SDA/SCL, and they are correct. Everything is powered from the 3.3v regulator on the Adafruit ESP32 Feather Board.

On one of my computers at home these samples DO seem to work, but I think that machine might have an older release of the ESP32 arduino libraries, I will check that and report back soon.

If it would be helpful, I can post a dump of the I2C traffic from my logic analyzer (software to view it is free). If anyone wants it, let me know, I need to re-capture the data to shrink it's size a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions