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 ...

Get ESP8266 Home Automation Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.