SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By roncos
#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
By Valen
#192134
I'm not familiar with the Teensy or the accelerometer, but without seeing your code and more samples of your data little can be said of the cause of this.