Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

Interfacing Accelerometer ADXL345 (GY-291) 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:

Leave a Reply

Your email address will not be published. Required fields are marked *