ADXL345 accelerometer
3-axis accelerometer with tap and free-fall detection.
What is the ADXL345 accelerometer and what is it used for?
3-axis accelerometer with tap and free-fall detection. Makers use it for tilt sensing, step counters.
A micro-machined mass on springs moves with acceleration, and the change in capacitance between fingers is measured.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Acceleration on 3 axes |
| Range | ±2, ±4, ±8 or ±16 g |
| Interface | I2C or SPI |
| I2C address | 0x53 or 0x1D |
| Supply voltage | 2 to 3.6 V |
Pinout
How to use it
Use the Adafruit ADXL345 library and pick the smallest range that fits your motion for the best resolution. The built-in tap and free-fall detection can wake a sleeping microcontroller through INT1.
Applications
Builds that use it
Washing machine done notifier
Earthquake shake logger
Vibration analyser
Digital protractor
Bridge health monitor model
Motor fault detection from vibration
Two-wheeler anti-theft alarm with GPS
Earthquake alarm for apartments
Alternatives
- MPU6050 IMUAdds a gyroscope
- LIS3DH accelerometerLower power for battery projects
Common questions
What is the ADXL345 accelerometer used for?
In maker projects: tilt sensing, step counters.
How does the ADXL345 accelerometer work?
A micro-machined mass on springs moves with acceleration, and the change in capacitance between fingers is measured.
What voltage does the ADXL345 accelerometer need?
2 to 3.6 V.
How do I connect the ADXL345 accelerometer to an Arduino or ESP32?
I2C or SPI. Pins: GND (Ground), VCC (3.3 V (modules often accept 5 V)), CS (Chip select, high for I2C), INT1 and INT2 (Interrupts for taps, free fall and activity), SDO (Address 0x53 (low) or 0x1D (high)), SDA (I2C data or SPI).
What can I use instead of the ADXL345 accelerometer?
MPU6050 IMU and LIS3DH accelerometer.
