2022-04-13 05:49 AM
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
2022-04-13 06:03 AM
Could be a wrong chip / clone?
hth
KnarfB
2022-04-13 06:20 AM
Does the magnetometer's Device ID return 0x48 as expected?
2022-04-13 07:15 AM
thanks for the reply,I am sure using mpu9250 only , in i2c scanner detect code is 0x68
Starting I2C Scanning:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0x68 - - - - - - - - - - - - - - - - - - - - - - - Done!
accelerometer and gyro getting correct values.
2022-04-13 10:29 AM
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