mtmal / ICM20948-linux-i2c

Linux driver for I2C communication with ICM20948.
MIT License
8 stars 2 forks source link
cpp i2c icm20948

ICM20948-linux-i2c

General Info

Linux driver for I2C communication with ICM20948. It has been tested with Waveshare's Stereo Camera with integrated IMU: https://www.waveshare.com/wiki/IMX219-83_Stereo_Camera

The code has been tested on Jetson Nano with JetPack 4.4.1.

Setup

Default build without internal logging

$ mkdir build
$ cd build
$ cmake ..
$ make -j 4
$ ./test_ICM20948 -l 2000 -c 1

To build with additional logging, pass -DLOG=1 to cmake like:

$ cmake .. -DLOG=1

Credit

Discussion

There are few existing solutions of ICM20948 driver (e.g. original from Invensense or drivers for Arduino), but I decided to diverge from them with the following: