OUTPUT FROM ACCELERATION SENSOR LSM303
I am using a LSM303DLHC and setting it up with:
// CTRL_REG1_A (0x20) loaded with 0x27 = 00100111, 10hZ rate,normal power enable X,Y,Z on
Write_Register(ACC_I2C_ADDRESS,0x20,0x27);
// CTRL_REG4_A (0x23) loaded with 0x40 = 01000000, big endian, +/-2g
Write_Register(ACC_I2C_ADDRESS,0x23,0x40);
And reading the registers as follows:
ACC_Data[0] = Read_Register(ACC_I2C_ADDRESS,0x28); // read out x MSB
ACC_Data[1] = Read_Register(ACC_I2C_ADDRESS,0x29); // read out x LSB
But I am betting odd results like:
Ax:-16160 Ay:-16352 Az:192
When the sensor is 'flat' ie X and Y horizontal and Z vertical.
The output range seems to be about zero to -32,000? Is this correct?
Regards Bill Legge
