cancel
Showing results for 
Search instead for 
Did you mean: 

STm32f401 interface to mpu9250 is not working?

Nredd.1
Associate III

I am using the STm32f401 interface mpu9250 sensor with i2c communication.

accelerometer and gyro values are getting, but magnetometer is not working(constant values getting),

WHO AM I register getting 0x75 instead of 0x71.

Regards,

naren

4 REPLIES 4
KnarfB
Principal III

Could be a wrong chip / clone?

hth

KnarfB

TDK
Guru

Does the magnetometer's Device ID return 0x48 as expected?

If you feel a post has answered your question, please click "Accept as Solution".
Nredd.1
Associate III

thanks for the reply,0693W00000LxshGQAR.jpgI am sure using mpu9250 only , in i2c scanner detect code is 0x68

Starting I2C Scanning:

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0x68 - - - - - - - - - - - - - - - - - - - - - - - Done!

accelerometer and gyro getting correct values.

Sharp and In-Focus would be a lot more helpful

0x75 is the WHOAMI register address, and perhaps not the content, sounds like your I2C code is wrong/broken

#BrooklynBeckhamPhotography

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