cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Problem with reading MPU-6500 by STM32

79617129
Associate

I can get the right WHO_I_AM(0x70) from mpu6500 by i2c,but I cant read other register or write other register.I cant read the gyroscope/accelerometer . whats more  ,i changed some mpu6500,and it doesnt work.

3 REPLIES 3
Andrew Neil
Evangelist III

So what investigation / testing / debugging have you done to find what's wrong?

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228 

Which STM32? They make a handful these days..

Did you explicitly start the device? Most IMU need to be configured in a mode of operation and started.

Perhaps look at other examples of use, say GitHub for Flight Controller type code, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III

Note that the MPU-6500 is not recommended for new designs:

https://invensense.tdk.com/products/motion-tracking/6-axis/mpu-6500/