You are on page 1of 1

search

Buy Download Getting Started Learning Reference Hardware FAQ


Main Site Blog Playground Forum Store
Help
|
Sign in or Register
Learning Examples | Foundations | Hacking | Links
Examples > Sensors
ADXL3xx Accel erometer
This tutorial shos you ho to read an !nalog "e#ices !"$L%xx series &e'g' !"$L%()* !"$L%(+* !"$L%((*
!"$L%%), accelerometer and communicate the acceleration to the a personal computer'
This tutorial as -uilt using the -reakout -oards .rom Spark.un' The ada.ruit accelerometer -reakout -oard also orks*
though it must -e ired di..erently'
The !"$L%xx outputs the acceleration on each axis as an analog #oltage -eteen ) and / #olts' To read this* all you
need is the analogRead() .unction'
Hardware Requi red
!rduino Board
!"$L%xx !ccelerometer
i rcui t
The accelerometer uses #ery little amperage* so it can -e plugged into your !rduino and run directly o.. o. the output
.rom the !rduino0s digital output pins' To do this* you0ll use three o. the analog input pins as digital 123 pins* .or poer
and ground to the accelerometer* and .or the sel.4test pin' 5ou0ll use the other three analog inputs to read the
acclerometer0s analog outputs'
image de#eloped using Frit6ing' For more circuit examples* see the Frit6ing pro7ect page
Schematic:
Pgina 1 de 1 Arduino - ADXL3xx
06/06/2011 http://www.arduino.cc/en/Tutorial/ADXL3xx

You might also like