ADXL345 Accelerometer
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 twos complement and is accessible through either a SPI (3- or 4-wire) or I2C digital interfa
Hello World
Import programADXL345_HelloWorld
ADXL345 triple axis, digital accelerometer example.
Library
Import libraryADXL345
ADXL345 triple axis, digital accelerometer library.
Datasheet
http://www.analog.com/static/imported-files/data_sheets/ADXL345.pdfNotes
Please note that there are two libraries for this part, the SPI library is listed above. There is also an I2C library that can be found here.
Import programADXL345_I2C
This library enables users to communicate with the ADXL345 accelerometer through the I2C bus on the mbed. The API names are similar and work nearly the same way as those made in the SPI libraries for the ADXL345.
You need to log in to post a discussion
Discussion topics
Topic | Replies | Last post |
---|---|---|
interrupts ADXL345 activity/inactivity interrupts | 1 |
26 Mar 2018
by
|
ADXL345 in SPI is not working. | 1 |
02 Nov 2015
by
|