ICM-42688-P Accelerometer readings are completely wrong

By widaandrasgmailcom , 12 October 2025

I have an STM32F405 connected to an ICM-42688-P IMU via SPI. I have the configurations and data read set up. When i read the data registers while the board is on a flat surface i should get around 1g on the Z axis, but i get the following readings:
Facing up:
Accel G: -0.04, 0.18, -0.63 | Gyro DPS: 0.02, 0.02, 0.00 | Temp C: 28.32
Facing down:
Accel G: -0.08, 0.10, 0.36 | Gyro DPS: 0.02, -0.00, -0.00 | Temp C: 28.38
When i try other orientations the same happens. Has anyone experienced something similar?
Here is the code for the project: https://github.com/widaandras/imureview
I am trying to debug the issue for 2 days now and havent fount anything that could cause this. The only thing i can think of is that the sensor is damaged, but the gyro and temperature sensor works fine.

mustafayildiri…

5 months ago

Hello,

You can take a look at our implementation of it in eMD driver. https://invensense.tdk.com/developers/software-downloads/
https://github.com/tdk-invn-oss

phpbb Post ID
53354
phpbb Topic ID
53296