- Sun Oct 16, 2016 3:28 pm
#192048
Hi
I have a MMA8452Q accelerometer connected to a teensy3.2.
The sample program runs and compiles successfully. The serial comms all work fine. But the values of acceleration are not as expected. I have set the scale to +/-2g and aligned the sensor flat on my desk. I think the outputs in this setup should be: x=0, y=0, z=1. But the actual readings are like: x=3.6, y=0.2, z=3.9.
Have I done something wrong? Is the sensor broken? Do I need to re-set zero offsets? Is there some extra setup step for the teensy that is not in the adruino docs? (The error seems to be more than full scale so offsets might not be able to fix it).
Thanks
Ronan
I have a MMA8452Q accelerometer connected to a teensy3.2.
The sample program runs and compiles successfully. The serial comms all work fine. But the values of acceleration are not as expected. I have set the scale to +/-2g and aligned the sensor flat on my desk. I think the outputs in this setup should be: x=0, y=0, z=1. But the actual readings are like: x=3.6, y=0.2, z=3.9.
Have I done something wrong? Is the sensor broken? Do I need to re-set zero offsets? Is there some extra setup step for the teensy that is not in the adruino docs? (The error seems to be more than full scale so offsets might not be able to fix it).
Thanks
Ronan