Skip to Content
Circuitera

ADXL345 three-axis accelerometer

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

ADXL345 three-axis accelerometer photograph
SparkFun Triple-Axis-Accelerometer-Breakout ADXL345 09836- 01c.jpg by SparkFun · CC BY 2.0. Resized and encoded as WebP without cropping.

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.

Source: SparkFun

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.

Source: SparkFun

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.

Source: SparkFun

Specifications

ParameterValue or conditionSource
Axis countThreeSparkFun
Selectable full-scale ranges±2 g, ±4 g, ±8 g and ±16 gSparkFun

Compatibility and practice

With a bare chip, use 3.3 V logic. Separate breakout designs may offer level shifting.

Sources and datasheets