This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 (PCA10040) and ICM 20648

Hi everyone, I am using nRF52832 (PCA10040) and ICM 20648. I want to write a I2C aka TWI interface to read accelerometer and gyroscope readings and print them out with TeraTerm. I tried to find libraries online but there are none available. Any ideas how to start about doing this?

Thanks!!

Parents
  • This is a short and general description of how to interface with a sensor that communicates over serial:

    1. Start by testing the TWI Sensor Example

    2. Go to Invensense's website and grab whatever C driver they've written for ICM 20648. Almost all serious sensor vendors have built their own generic C drivers, and often accompanying libraries that deal with post-processing of the data.

    3. Exchange the read/write functions in the Invensense driver with appropriate nRF TWI driver calls. See TWIM driver API docs. 
Reply
  • This is a short and general description of how to interface with a sensor that communicates over serial:

    1. Start by testing the TWI Sensor Example

    2. Go to Invensense's website and grab whatever C driver they've written for ICM 20648. Almost all serious sensor vendors have built their own generic C drivers, and often accompanying libraries that deal with post-processing of the data.

    3. Exchange the read/write functions in the Invensense driver with appropriate nRF TWI driver calls. See TWIM driver API docs. 
Children
Related