adxl335-accelerometer

xod/common-hardware/adxl335-accelerometer

Reads acceleration from an ADXL335 based sensor. Note that concrete ADXL335 instances differ from each other and their output should be adjusted for precise mesearument. By default the values are coarse although reasonable enough to determine shaking and approximate orientation. For an ideally factored accelerometer the outputs are in range ±3ɡ.
adxl335-accelerometer
@/adxl335-accelerometer
Reads acceleration from an ADXL335 based sensor. Note that concrete ADXL335 instances differ from each other and their output should be adjusted for precise mesearument. By default the values are coarse although reasonable enough to determine shaking and approximate orientation. For an ideally factored accelerometer the outputs are in range ±3ɡ.
Pxport
Board port to which the X axis output is connected. Should be capable of analog reading analog values.
Pyport
Board port to which the Y axis output is connected. Should be capable of analog reading analog values.
Pzport
Board port to which the Z axis output is connected. Should be capable of analog reading analog values.
UPDpulse
Triggers new sensor reading
adxl335-accelerometer
XXYYZZDONEDONEERRERRPxPxPyPyPzPzUPDUPD
ERRpulse
Fires if reading failed.
DONEpulse
Fires on reading complete
Znumber
Non-adjusted acceleration along Z axis in range [-3, 3]
Ynumber
Non-adjusted acceleration along Y axis in range [-3, 3]
Xnumber
Non-adjusted acceleration along X axis in range [-3, 3]