Openlog Artemis RedBoard IMU readings

Hi to all!

I have just bought a Red Openlog Artemis to migrate from the Razor IMU M0, what I was doing with the razor is a custom code to read the values from the in built MPU9250 and trigger an action depending the values. The problem I have right now is I am unable to get the values from the inbuilt ICM 20948 using custom code and the Sparkfun_ICM-20948_Arduino library via SPI, It allways shows the “Wrong ID” message at activation when I load the Example1_Basic sketch (uncommenting the SPI line).

Thanks.

Hi @sulhelka,

Have you enabled power for the IMU? You will need to replicate the imuPowerOn command in your custom code:

https://github.com/sparkfun/OpenLog_Art … #L468-L477

Also, please see:

https://github.com/sparkfun/OpenLog_Art … #L617-L687

Please make sure you are using the correct Chip Select pin for the IMU:

https://github.com/sparkfun/OpenLog_Art … s.ino#L109

Finally, please select Redboard Artemis ATP (from the SparkFun Apollo3 boards) as the board type when compiling the code.

Please let us know if this fixes your issue.

Best wishes,

Paul

Hi @sulhelka,

I forgot to mention that the CIPO pull-up needs to be enabled too!

I have added a test sketch for the IMU. Hopefully this should get you going?

https://github.com/sparkfun/OpenLog_Art … IMU_Basics

Very best wishes,

Paul