Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

ADXL345* Accelerometer Tutorial

$
0
0

Data from the built-in 3-axis accelerometer of the Terasic DE10-Nano is measured on ALL 3 axes to show when the board is in motion. The raw output of the accelerometer is converted to g-force values by a sensor library and then sent to graphing software for data visualization and interpretation.

In this tutorial you will:

  • Interface with the board's built-in digital accelerometer using an I2C interface.
  • Use Intel’s I/O and sensor libraries (MRAA and UPM) to get data from the accelerometer.
  • Monitor and observe acceleration data for small vibration and movement along the x, y, z axes.
  • Translate the acceleration data into +/- g-force values to demonstrate the motion of the Terasic DE10-Nano board.
  • Show the accelerometer data using different open-source technologies:
    • Express* (web server)
    • Plotly* (graphing library)
    • Websocket* (data stream).

Note: Both Express.js and Plotly.js are non-restrictive MIT* licensed technologies.

Visit GitHub for this project's code samples. 

Additional Resources


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>