Lesson 22 Acceleration Sensor - ADXL345
Introduction
The ADXL345 is a small, thin, ultralow power, 3-axis accelerometer with high resolution
(13-bit) measurement at up to ±16g. Digital output data is formatted as 16-bit twos
complement and is accessible through either a SPI (3-wire or 4-wire) or I2C digital
interface. The ADXL345 is well suited for mobile device applications. It measures the
static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration
resulting from motion or shock. Its high resolution (3.9 mg/LSB) enables measurement of
inclination changes less than 1.0°.
Low power modes enable intelligent motion-based power management with threshold
sensing and active acceleration measurement at extremely low power dissipation.
Components
- 1 * Raspberry Pi
- 1 * GPIO Extension Board
- 1 * 40-Pin GPIO Cable
- 1 * Breadboard
- 1 * ADXL345 Accelerometer Module
- Several jumper wires
Experimental Principle
The Fritzing image:
The Physical picture:
In this lesson, we will learn how to use an acceleration sensor ADXL345 to get the
acceleration data.
Experimental Procedures
Step 1: Build the circuit