Understanding the HT Accelerometer Sensor
Posted: 31 Dec 2012, 05:59
After being given a Hitechnic Accelerometer Sensor by my dear family for Christmas, I'm trying to make sense of it. Using the test program from the HT web page, written to use the ReadSensorHTAccel routine in BRICX, I see the following strange behaviour.
I'd be grateful for any comments from someone who is familiar with this sensor.
Thanks.
Geoffrey
- X varies as I rotate the sensor horizontally, returning 0 at approximately north, then increasing to 511, flipping to -511 and increasing to -307 just before returning to zero at the original position (a total range of 818). Tilting the sensor has no effect on the reading.
- Y always returns a value of 0 or 4.
- Z always returns a value related to 2*X, as follows:
- -512<x<-256 z=2*x+1024
0<x< 256 z=2*x
256<x<512 z=2*x-1024
- -512<x<-256 z=2*x+1024
I'd be grateful for any comments from someone who is familiar with this sensor.
Thanks.
Geoffrey