ADXL345 accelerometer

Produced by the Analog Devices (AD), it is an ultra-low power 3 axis-accelerometer being capable of high-resolution measurements up to ± 16g. If you plan to measure just the Earth’s gravity then ± 2g can be enough for you. For a car movement, ± 4g will be fine but if you want to track an object that suddenly stops you will need ± 16g:

The ADXL345 can be connected to the ESP8266 over SPI or I2C lines. In our case, we will use the I2C connection. The bus address on which the accelerometer will respond is 0x53.

Pin

Description

GND

Connect to the ground

VCC

VCC 3V3. Some modules accept 5V since they have a voltage drop to 3V3

CS

Chip select. High for I2C and LOW for SPI connection to ESP8266

INT1

Programmable interrupt

INT2

Programmable interrupt

SDO

Serial data out for SPI. For I2C select the bus address

SDA

Serial data for I2C

SCL

Serial clock signal

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.174.57