bradzilla84/x2125

License: Copyright 2015 Aaron Magill, MIT License

Memsic MX2125 Dual-axis Accelerometer library for Arduino
NodeDescription
example-mx2125No 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...
To use the nodes in your project you should have the  bradzilla84/x2125  library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.