I am trying to calibrate my sparkfun adxl337 accelerometer. I am changing these values from the example sketch:
scaledX = mapf(rawX, 0, 1028, -scale, scale);
scaledY = mapf(rawY, 0, 1023, -scale, scale);
scaledZ = mapf(rawZ, 0, 921.35, -scale, scale);
What I noticed is that when I calibrate the +scale, the -scale is also changed and vice versa. So after calibrating the + scale to 921.35, I went to calibrate the -scale and then the +scale values were changed and my scaled readings are no longer accurate. I was wondering if anyone has any insight as to fixing this.
Thanks so much,
Aidan S Burke
adxl337.ino (2.6 KB)