User Manual

68
Lesson 14
ADXL345
Introduction
In this lesson, we will learn how to use the acceleration sensor ADXL345.
Components
- 1 * Raspberry Pi
- 1 * Breadboard
- 1 * ADXL345 module
- Jumper wires
Principle
ADXL345
The ADXL345 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit)
measurement at up to ±16 g. Digital output data is formatted as 16-bit two’s complement
and is accessible through either an SPI (3- or 4-wire) or I2C digital interface.
The ADXL345 is well suited to measure the static acceleration of gravity in tilt-sensing
applications, as well as dynamic acceleration resulting from motion or shock. Its high
resolution (4 mg/LSB) enables the inclination change measurement by less than 1.0°. And
the excellent sensitivity (3.9mg/LSB @2g) provides a high-precision output of up to ±16g.
In this experiment, I2C digital interface is used.
Experimental Procedures
Step 1: Build the circuit
ADXL345 Module Raspberry Pi
GND -------------------------- GND
3.3V -------------------------- 3.3V
SCL0 --------------------------- SCL
SDA0 -------------------------- SDA
CS ---------------------------- 3.3V
SDO -------------------------- GND