License: Copyright 2015 Aaron Magill, MIT License
Node | Description |
---|---|
example-mx2125 | No description |
get-acceleration | Measure acceleration in terms of g (acceleration due to earth's gravity).
Returns value that represents the milli G's acting on the axis. |
device-mx2125 | A simple Wrapper for the MX2125 Library by Aaron Magill |
get-tilt | Measure the level of tilt in terms of +/- 90 degrees. 0 degrees is when the top surface of the accelerometer chip is parallel to the ground. |
get-rotation | Measure clockwise rotation assuming accelerometer is held vertical. Zero degree rotation is when the triangle on the MX2125 chip is pointing up. |
get-temperature | Returns floating point number of the temperature in Celsius as reported by the MX2125 chip. The formula used is calculated for use with the ADC bit width of an Arduino UNO and will need to be changed if your model is different. Note that this seems to fluctuate quite a bit, but should give an idea as to the approximate operating temperature... |