Acceleration and rotation sensors are most known from smartphones. The rotation of the device can be detected and can be addressed directly.
With the Raspberry Pi and a Gyroscope / Accelerator sensor it is possible to measure the rotation as well as the acceleration of the 3 axes.
In this tutorial use the MPU 6050 Gyroscope / Accelerator sensor interferfaced to a Raspberry Pi, and reads the values using I2C.
For this tutorial I have used the following components:
- Raspberry Pi
- MPU 6050 sensor module
- Jumper Cables