Initialising & Configuring Accelerometer (ICM-40608) over I²C

By hammadjavaidsb… , 2 September 2024

Hi,
I have a TDK IMU ICM-40608 and would like to configure the accelerometer over I²C in C (from scratch) therefore would need to know what is required for accelerometer configuration. I am looking for any kind of reference manuals and coding examples on how the IMU can be programmed and configured for accelerometer use. I want to detect/observe changes on the angle to the G force on each axis. I'd appreciate your assistance in this matter.
Thanks.

hammadjavaidsb…

1 year 6 months ago

Following Acceleration config. have been done in mentioned order:
- REG_BANK_SEL 0x00
- INTF_CONFIG0 0x32 // Disable SPI, SensorData BigEndian(default), FIFO Count BigEndian(default), FIFO count in bytes, Setting 0
- DRIVE_CONFIG 0x29 // I2C Slew rate <2ns
- INTF_CONFIG1 0x91 // Default Reset value
- ACCEL_CONFIG0 0x06 // ACCEL_ODR Default 1Khz, ACCEL_FS_SEL Default 16g
- ACCEL_CONFIG1 0x0D // Default Reset Value
- GYRO_ACCEL_CONFIG0 0x15
- INT_SOURCE0 0x08 // UI_DRDY_INT1_EN 1
- INT_CONFIG 0x03 // INT1 Polarity Active High, INT1 Drive Push Pull
- REG_BANK_SEL 0x02
- ACCEL_CONFIG_STATIC2 0x7E // Default reset value
- ACCEL_CONFIG_STATIC3 0x80 // Default reset value
- ACCEL_CONFIG_STATIC4 0x3F // Default reset value
- SENSOR_CONFIG0 0x38 // ACCEL Enabled, Gyro Disabled
- REG_BANK_SEL 0x00
- SIGNAL_PATH_RESET 0x00 // Default reset value
- PWR_MGMT0 0x03 // ACCEL_MODE Low Noise Mode

What more configurations have to be done in order to get accelerometer working?

phpbb Post ID
46590

mustafayildiri…

1 year 6 months ago

Hello,

If you have Datasheet for the part, that will outline register configurations.

phpbb Post ID
46694
phpbb Topic ID
46561