Skip to content

MEMS sensor control

Description

RoboBoard X4 contains accelerometer and gyroscope to measure movement and angles. At the moment there is no high-level Totem API to easily detect all rotations and interactions. Standard Arduino libraries can be used to read raw sensor data.

Note

Board revision v1.1 and v1.0 has different MEMS chip, so follow instructions accordingly

Setup library

Revision v1.1

I2C address: 0x68
Chip: ICM-20689 datasheet
Arduino library: ICM20689
Arduino examples: library examples

  1. Open Library Manager: ToolsManage Libraries...
  2. Install library: ICM20689
  3. Load example: FileExamplesICM20689Basic_I2C

Revision v1.0

I2C address: 0x6A
Chip: LSM6DS3 datasheet
Arduino library: Arduino_LSM6DS3
Arduino examples: library examples
Totem examples: totem examples

  1. Open Library Manager: ToolsManage Libraries...
  2. Install library: Arduino_LSM6DS3
  3. Load example: FileExamplesBoardMEMSReadRawData