Introduction: Accelerometer (Raspberry Pi)

Picture of Accelerometer (Raspberry Pi)

Basic tutorial of how to setup a ADXL345 Accelerometer with the Raspberry Pi.

Step 1: Parts

Picture of Parts

RPI 3 – https://goo.gl/CdVNoH

4 Amp Power Adapter – https://goo.gl/js4Uc7

16GB Micro SD – https://goo.gl/FDqZal

120 pcs jumper cable: https://goo.gl/FDqZal

ADXL345 Accelerometer: https://goo.gl/FDqZal

(ALT) ADXL345 Accelerometer: https://goo.gl/FDqZal

Step 2: Setup

Picture of Setup

3v3 -> 3.3v

GND -> GND

SDA -> GPIO2

SCL -> GPIO3

Step 3: Code

Picture of Code

Step 4: Additional Info

Picture of Additional Info

Comments

About This Instructable

123views

4favorites

License:

Bio: the Raspberry Pi is Awesome!
More by piddlerintheroot:AIY VISION KIT (Raspberry Pi)Tilt Sensor (Raspberry Pi)Accelerometer (Raspberry Pi)
Add instructable to: