SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By JVHooligan
#192766
Hello everyone,
I have a question about the sparkfun sample code written by Jim Lindblom @ SparkFun Electronics that I would like to discuss.

I built a Arduino based IMU using the sparkfun LSM9DS1, the SD shield and the Arduino UNO R3 for loggin flight data in rockets and other platforms. Here is a picture of the electronics:

Image

In the sample code the accelrometer dynamic range can be set in the line of code:

imu.settings.accel.scale = 16; // Set accel scale to +/-16g.

when I set the range to 2, 4, or 8 the acceleration measured when the IMU is 'flat' on a given axis the acceleration reads about 1 or - 1 which makes sense as it is being accelerated with 1 G of gravity. When I set it to 16 the acceleration is about 0.68. My question is does anyone know what is going on? Why is the acceleration not 1?

John