Skip to content

Accelerometer calibration #10

@robopassio

Description

@robopassio

I use this source with an Arduino Uno board, I have a problem with the calibration of the accelerometer. If the initial posture of the board is leaned then there is an offset and it can not get back to the true value after calibrating. I tried to remove the following lines, then the offset dissapeared but I do not know how to calibrate the accelerometer in a right way.
// // Push accelerometer biases to hardware registers
// writeByte(MPU9150_ADDRESS, XA_OFFSET_H, data[0]);
// writeByte(MPU9150_ADDRESS, XA_OFFSET_L_TC, data[1]);
// writeByte(MPU9150_ADDRESS, YA_OFFSET_H, data[2]);
// writeByte(MPU9150_ADDRESS, YA_OFFSET_L_TC, data[3]);
// writeByte(MPU9150_ADDRESS, ZA_OFFSET_H, data[4]);
// writeByte(MPU9150_ADDRESS, ZA_OFFSET_L_TC, data[5]);

Please give me some ideas about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions