- Sun Mar 09, 2014 2:14 am
#169184
I'm testing out this 9DOF sensor package (https://www.sparkfun.com/products/12636) and having some issues. The accelerometer isn't changing, nor does the Pitch & Roll reading. I'm running the LSM9DS0_Simple example that comes with the SFE library and this is what I'm getting:
In the setup(), there's an example to initialize the library with sensor scales and data rates. When I enable that (and disable the default one), this is the result:
When I run the other example, LSM9DS0_SerialMenus, the accelerometer reads a constant -24539, -24539, 24539. Doesn't change.
What am I missing here? Aren't they all supposed to be changing, particularly the accelerometer with the way I'm spinning/swinging this thing?
Code: Select all
Notice how the accelerator reading remains at -1.50, -1.50, 1.50 and the Pitch and Roll stays at -21.82, -21.82 regardless of how much I shake, spin, swing, or drop the thing. The Gyro, Mag, and Heading readings change, but nothing else does.LSM9DS0 WHO_AM_I's returned: 0x49D4
Should be 0x49D4
G: 87.06, -2.48, -11.33
A: -1.50, -1.50, 1.50
M: -0.17, 0.21, 0.10
Heading: 129.50
Pitch, Roll: -21.82, -21.82
G: 6.25, -1.55, -9.19
A: -1.50, -1.50, 1.50
M: -0.15, -0.10, 0.25
Heading: -57.28
Pitch, Roll: -21.82, -21.82
G: -37.53, -4.18, 0.52
A: -1.50, -1.50, 1.50
M: -0.14, 0.05, 0.24
Heading: 159.55
Pitch, Roll: -21.82, -21.82
In the setup(), there's an example to initialize the library with sensor scales and data rates. When I enable that (and disable the default one), this is the result:
Code: Select all
This time, the accelerometer seems stuck at -4.49, -4.49, 4.49 and the pitch & roll are stuck at -10.32, -10.32 ...LSM9DS0 WHO_AM_I's returned: 0x49D4
Should be 0x49D4
G: -72.39, 161.62, 10.31
A: -4.49, -4.49, 4.49
M: 0.28, 0.16, 0.06
Heading: 28.98
Pitch, Roll: -10.32, -10.32
G: 50.29, -422.85, 11.47
A: -4.49, -4.49, 4.49
M: -0.32, -0.03, 0.15
Heading: -84.35
Pitch, Roll: -10.32, -10.32
G: -591.31, 102.29, 288.02
A: -4.49, -4.49, 4.49
M: -0.33, 0.03, 0.12
Heading: 175.18
Pitch, Roll: -10.32, -10.32
When I run the other example, LSM9DS0_SerialMenus, the accelerometer reads a constant -24539, -24539, 24539. Doesn't change.
What am I missing here? Aren't they all supposed to be changing, particularly the accelerometer with the way I'm spinning/swinging this thing?