ADXL345 Accelerometer Tutorial

By Promotion | Updated 18 Apr 2017
ADXL345 Accelerometer Tutorial

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.

For more such intel IoT resources and tools from Intel, please visit the Intel® Developer Zone



Recent Questions

Do you people have any video tutorial for cake php?
Vivek Sharma
Aug 20, 2014
Responses 4
Vivek Bhatt
Aug 20, 2014
vishal Pallerla
Aug 21, 2014
Digit User
Aug 23, 2014
Jyoti Prakash
Aug 24, 2014
Be the first one to post the comment
Post a New Comment
You must be signed in to post a comment