2019-06-17 07:46 AM
--- More detail on MotionAC library ---
The library acquires data from the accelerometer and calculates the offset and scale factor coefficients together with the calibration quality value. Calibration can be done in two ways: dynamic calibration and 6-point calibration. The offset and scale factor coefficients are then used to compensate raw data coming from accelerometer. In particular, it features:
The central function that performs the calibration is this one:
void MotionAC_Update (MAC_input_t *data_in, uint8_t *is_calibrated)
*data_in parameter is a pointer to a structure with input data + timestamp, while *is_calibrated parameter is a pointer to a value which returns 1 if calibration is done.
See below the detailed calibration process to make your app with the MotionAC effective! �?�
2019-06-17 07:47 AM
This calibration algorithm uses the normal motion of the three orthogonal axes of a stationary accelerometer sensor exposed to Earth’s gravitation field.
Step 1. Hold the device firmly as shown in position 1.
Step 2. Gently rotate the device by 180° around the YZ plane such that in position 4, the device is flipped to its back side.
Step 3. Rotate the device by 180° in a clockwise fashion around the XZ plane to reach position 1.