Hello,
I am using MMA841 Accelerometer.
I stable condition i am getting higher value data on X,Y,Z axis.
I want to calibrate my accelerometer so that in stable condition it should read X,Y,Z axis data as zero.
For that i am referring application note AN-4069. I followed steps as in AN-4069.
For calibration i used following steps and Accel_offset_X,Accel_offset_Y, Accel_offset_Z are calculated as in given in AN-4069
MMA8451_WriteReg(MMA8451_CTRL_REG_1, 0x018);
MMA8451_WriteReg(0x2F, Accel_offset_X);
MMA8451_WriteReg(0x30, Accel_offset_Y);
MMA8451_WriteReg(0x31, Accel_offset_Z);
MMA8451_WriteReg(0x2A, CTRL_REG1_Data);//Set active mode
With this my calibration process is working.
But when i disable above steps and reprogram the device it is showing the original data as before calibration.
Please help me if i am going in wrong direction.
-Amreen