Two 6DoF IMU ISM330DHCX with mux and redboard artemis ATP Data?

Hello,

I’m having trouble collecting data from 2 IMUs (6DoF ISM330DHCX). The acceleration and gyro data that I’m getting is all zero (for example, I’ll get accel x = 0.0, y=0.0, etc).

My end goal is to create a device that I can wear to collect walking data; I want to measure asymmetry in my gait using the differences in angular velocity between each leg. As such, I’m also worried that when I do start to get values, the accel/gyro will start to drift.

Here is my setup:

Any help would be appreciated. I’m mostly focused on actually getting values, then I can worry about drifting/inaccurate data later. I’ve been troubleshooting my code for a while, I’m not sure what else I need to fix (could it be something with the I2C?). Thanks!

You don’t need the multiplexer. The sensor has two selectable I2C addresses, so follow the hookup guide and set them differently.

Your code should declare two different instances of the sensor, each with the appropriate I2C address. You may also need to disconnect the pullup resistors on one of the boards.

To reduce drift, the gyro zero offsets need to be individually calibrated.

Hint: get each sensor working correctly with its individual I2C address before combining them (and their respective code).

1 Like