The code shown here refers to the Grove - 6-Axis Accelerometer and Gyroscope sensor.
In the official wiki documentation, the manufacturer provides the Arduino example. However, Raspberry Pi code is not provided. This repository shows a Python code for using the Grove - 6-Axis Accelerometer&Gyroscope with GrovePi shield and a Raspberry Pi. The code here mentioned is an example of how to communicate with this sensor.
The sensor used is the LSM6DS3
, can be found named LSM6DS3TR
as well. And it connects to the
GrovePi by using a I2C port.
- GrovePi+ shield.
- Grove - 6-Axis Accelerometer and Gyroscope.
- Raspberry Pi 3B or Raspberry Pi 4B.
Datasheet is provided in /docs
folder.
Just run it. No extra libraries are needed.