1 Introduction

This module measures the static acceleration of gravity in three axis x, y and z resulting from motion or shock.

Its digital interface is IIC or SPI.

It is integrated with an ADXL345 chip with high resolution (13-bit) measurement at ±2g, ±4g, ±8g and ±16g.

The module is powered by 5V and converts 5V to 3.3V to ADXL345.

2 Features

I2C, 3.3V

13-bit, up to +-16g

2.54mm spacing pin interface

PCB dimension(mm): 16 x 32

Pin Description:

Pin

Description

INT2

Interrupt

INT1

Interrupt

CS

Enable

SCL

I2C SCL

SDA

I2C SDA

SDO

Set Slave Address

5V

Supply Voltage 5V

GND

Ground

3 Basic Device Operation

The ADXL345 is a small, thin, ultralow power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16 g. Digital output data is formatted as 16-bit twos complement and is acces-sible through either a SPI (3- 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 appli-cations, 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°.

The ADXL345 conforms to the UM1024 I2C Specification. It supports standard (100 kHz) and fast (400 kHz) data transfer modes. If the CS is tied high it will be in the I2C mode. If the CS or ALT ADDRESS pin is floating or unconnected the state will be unknown.

The module's I2C connection diagram is as follows:

4 Applications

4.1 Connect to NanoPi M1

Refer to the following connection diagram to connect the module to the NanoPi M1:

Connection Details:

Matrix-3_Axis_Digital_Accelerometer

NanoPi M1

INT2

NC

INT1

NC

CS

Pin2

SCL

Pin5

SDA

Pin3

SDO

High, it is connected to the GPIO pin-header's 3.3V

5V

Pin4

GND

Pin6

4.2 Connect to NanoPi 2

Refer to the following connection diagram to connect the module to the NanoPi 2:

Connection Details:

Matrix-3_Axis_Digital_Accelerometer

NanoPi 2

INT2

NC

INT1

NC

CS

Pin2

SCL

Pin5

SDA

Pin3

SDO

High, it is connected to the GPIO pin-header's 3.3V

5V

Pin4

GND

Pin6

4.3 Connect to NanoPi M2 / NanoPi 2 Fire

Refer to the following connection diagram to connect the module to the NanoPi M2/ NanoPi 2 Fire: