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
- Open Library Manager:
Tools
→Manage Libraries...
- Install library:
ICM20689
- Load example:
File
→Examples
→ICM20689
→Basic_I2C
Revision v1.0
I2C address: 0x6A
Chip: LSM6DS3 datasheet
Arduino library: Arduino_LSM6DS3
Arduino examples: library examples
Totem examples: totem examples
- Open Library Manager:
Tools
→Manage Libraries...
- Install library:
Arduino_LSM6DS3
- Load example:
File
→Examples
→Board
→MEMS
→ReadRawData