2024-08-05 08:28 AM
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.
2024-08-05 08:55 AM
So what investigation / testing / debugging have you done to find what's wrong?
2024-08-05 09:01 AM
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.
2024-08-05 09:21 AM
Note that the MPU-6500 is not recommended for new designs:
https://invensense.tdk.com/products/motion-tracking/6-axis/mpu-6500/