How to use Stm32 to read the data from ICM42866 in the way of I2C?

By 1732592058qqcom , 7 July 2024

Hello, I am now working on an embeded device that uses icm42866 as imu. How ever, as i use it as the way of mpu6050(changed the reg address already), it didn't send the right data, as it's showed -2^15 or 0.So where can i get an example to initialize the icm42866 on stm32? At least i want you to show me the procedure for the init and communication with I2C

1732592058qqcom

1 year 8 months ago

Sry but i use the icm42688, just spell mistake...

phpbb Post ID
45729

mustafayildiri…

1 year 8 months ago

Hi,

You can check out our ICM-42688 driver for Atmel MCU here: https://invensense.tdk.com/developers/software-downloads/#smartmotion

phpbb Post ID
45731

1732592058qqcom

1 year 8 months ago

Hello,How to know the Sample Rate of ICM42688,or in an easier way to say, how do i know the time between the last time i read the register and the next time?

phpbb Post ID
45737

1732592058qqcom

1 year 8 months ago

Sry to interrupt,but the data i read from the module are solved out a unit that shivered quite a lot, what can i do to solve this problem?

phpbb Post ID
45738

mustafayildiri…

1 year 8 months ago

Hello,

I assume you set your ODR right, are you doing polling to read data?

phpbb Post ID
45742

1732592058qqcom

1 year 8 months ago

yeah, so i ahould use the interrupt to read date?

phpbb Post ID
45744

mustafayildiri…

1 year 7 months ago

Hi,

Try to see if you can get it working with interrupts. Also, check out our firmware as well

phpbb Post ID
45762
phpbb Topic ID
45728