yelvlab / ESP32-Arduino-MPU9250

BPI-BIT MPU9250 Library
MIT License
33 stars 13 forks source link

I am not able to read data #2

Open frozenmafia opened 2 years ago

frozenmafia commented 2 years ago

I have esp32 wroom.

I connected 3v3 - vcc GND- GND 21 - SDA 22 - SCL

I have installed the library and uploaded the example it shows whoAmI() 117 as output. This is the ouptut I am receiving

cgrrty commented 2 years ago

There is something wrong with the source code.

jumpjack commented 5 months ago

I got 112 instead. Initialization gets stuck here:

https://github.com/yelvlab/ESP32-Arduino-MPU9250/blob/2124a5d8eecb90aea90d8163011271a9d07243e0/MPU9250.cpp#L62

I.e., it only works with addresses 113 and 115 (0x71 and 0x73). My 9250 is over 104 (0x68), but this library reads 112! But if I add 112 to check, it fails on next lines...