ADXL345 three-axis accelerometer
Choose an ADXL345 acceleration range, wire I²C or SPI, and distinguish tilt readings from motion-induced acceleration.

What is measured
This sensor measures acceleration along three axes. On a desk at rest, gravity dominates the measured vector. While the board moves or vibrates, the same reading includes those accelerations, so tilt inferred from a single sample can be misleading.
Using the breakout
Choose either I²C or SPI and configure the breakout’s bus selection as documented. Match the rail and signals to the breakout specifications. Read and check the device ID before interpreting samples.
Range and resolution
Choose a range large enough to avoid clipping. If you use full-resolution mode, use its corresponding scale factor rather than applying the conversion for fixed 10-bit mode.
Specifications
| Parameter | Value or condition | Source |
|---|---|---|
| Axis count | Three | SparkFun |
| Selectable full-scale ranges | ±2 g, ±4 g, ±8 g and ±16 g | SparkFun |
Compatibility and practice
With a bare chip, use 3.3 V logic. Separate breakout designs may offer level shifting.
Related components
Sources and datasheets
- ADXL345 Hookup Guide · SparkFun