Interfacing ADXL345 Accelerometer with Arduino UNO (1)
Interfacing ADXL345 Accelerometer with Arduino UNO (1)
1. Introduction
We all know about accelerometer and gyroscope; they are primarily used to detect
acceleration. While Accelerometer can measure linear acceleration, the gyroscope
can help find the rotational acceleration. A gyroscope is used to measure angular
velocity that uses the earth’s gravity to determine the orientation of the object in
motion. There is a sensor like MPU6050 which has both accelerometer and
gyroscope and it works as an Inertial Measurement Unit (IMU) to find the orientation,
position, and velocity.
Here we are discussing about ADXL345 Accelerometer which is used to measure
the acceleration or change in velocity in x, y, and z-axis. These small sensors areF
used in cars and bikes to detect accidents to deploy the airbags and are also used in
mobile phones for a variety of applications like compass and location tracking.
2. System design
2.1 Hardware and software requirements
• Arduino UNO
• ADXL345 Accelerometer
• Male-female wires
• Breadboard
2.2 Block diagram
2.3 Circuit diagram
3.3 Conclusion
In this experiment, the ADXL345 accelerometer was successfully interfaced with
the Arduino UNO, allowing real-time measurement of acceleration in the X, Y,
and Z axes. The sensor was configured using I2C communication, and the acquired
data was processed and displayed using the Arduino serial monitor. The results
demonstrated the ADXL345's capability to detect motion, tilt, and orientation with
high sensitivity and accuracy. The experiment also highlighted the importance of
proper wiring, sensor calibration, and data filtering techniques to improve
measurement precision. This setup can be further extended for applications such as
motion tracking, vibration analysis, and gesture recognition.