Acquiring accelerometer data
The accelerometer is one of the most common sensors that's incorporated into the IMU.
In this recipe, we will develop an application to read the accelerometer measurements from the MPU-6050 IMU with a frequency of 50 Hz. The measurements will then be transmitted over the serial so that they can be acquired with the Edge Impulse data forwarder tool in the following recipe.
The following Arduino sketch contains the code that's referred to in this recipe
02_i2c_imu_read_acc.ino0
:
Getting ready
The accelerometer is a sensor that measures accelerations on one, two, or three spatial axes, denoted as X, Y, and Z.
In this and the following recipes, we will use the three-axis accelerometer that's integrated into the MPU-6050 IMU to measure the accelerations of three orthogonal directions.
However, how...