The Digital ADXL345 Triple-Axis Accelerometer from Adafruit features a digital I2C and SPI interface in addition to an on-board 3.3V regulator and logic-level shifting circuitry. This makes it the perfect choice for interfacing with any 3V or 5V microcontroller such as the Raspberry Pi and Arduino!
The sensor has three axes of measurements, X Y Z, and pins that can be used either as I2C or SPI digital interfacing. You can set the sensitivity level to either +-2g, +-4g, +-8g or +-16g. The lower range gives more resolution for slow movements, the higher range is good for high speed tracking. The ADXL345 is the latest and greatest from Analog Devices, known for their exceptional quality MEMS devices. The VCC takes up to 5V in and regulates it to 3.3V with an output pin.
Fully assembled and tested, the Adafruit Triple-Axis Accelerometer comes with 9 pin 0.1" standard header, in case you want to use it with a breadboard or perfboard, and two 2.5mm (0.1") mounting holes for easy attachment.
The Digital ADXL345 Triple-Axis Accelerometer Features:
ADXL345 Triple-Axis Accelerometer from Analog Devices
3.3V Regulator and Logic-Level Shifting Circuitry making it fully compatible with any 3V or 5V Microcontroller e.g. Raspberry Pi & Arduino
Sensitivity level can be set to either +-2g, +-4g, +-8g or +-16g.
VCC takes up to 5V input and regulates to 3.3V with an output pin
Comes complete with a 9 pin 0.1" Header
Get started in a jiffy with the Adafruit Arduino library for the ADXL345! Simply connect the VIN pin to 3-5V power, GND to ground, SCL to I2C clock (also known as A5 on an UNO), SDA to I2C data (aka A4 on UNO). Then download the library and uncompress it. Rename the folder inside Adafruit_ADXL345 and check it contains a .cpp and .h file. Place the folder into your Arduino libraries folder. Check out our tutorial about libraries if its your first library installation