Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega

Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega

Accelerometer ADXL345 is a 3-dimensional accelerometer, that measures acceleration in 3 dimensions X, Y and Z axis.

Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

Connection Diagram:

To Interface ADXL345 Accelerometer with Arduino UNO:

Interfacing ADXL345 Accelerometer with Arduino UNO

 

To Interface ADXL345 Accelerometer with Arduino Mega:

Interfacing ADXL345 Accelerometer with Arduino Mega

ADXL345 Library Installation on Arduino:

Arduino Library Manager to install libraries in arduinoArduino Library Manager to install libraries in arduino

Search for “ADXL345”, then Select and Install “Adafruit ADXL345”

adxl345 arduino library

After that search for “Adafruit unified Sensor” Library and select and Install it.

adxl345 arduino library

 

Arduino Program:

 

Results:

Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

 

Related Links:

One Comment on “Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega”

  1. please anyone provide me a arduino uno code for earthquake detecttion using with ADXL345 and its display results in 16* 2 LCD panel . plz help me for my project.

Leave a Reply