Hi guys, I’m trying to read the X, Y, and Z values of my lis302dl accelerometer. Currently, I can read the WhoAmI register value correctly and I can somewhat read some value in the three axes but they are so noisy.
this is how I have my control registers setup:
0x20=0b01000111 //CTRL1 register, enable active mode,x, y, and z axes
0x21=0b00010000 //CTRL2 high pass filter enabled
I’ve reread the datasheet a couple times but I could not find the answers to the following questions:
Are the 8bit values from the x,y, and z registers signed or unsigned?
What should the default values of each register be? When I don’t move the accelerometer at all, the values of each of the three register fluctuate from 0x00 - 0xFF.
Is there anyway to fix the noise? I’ve tried enabling the high pass filter but it doesn’t do much help.
Thanks in advanced