Datasheet
Download Adafruit_MMA8451
To begin reading sensor data, you will need to download the Adafruit_MMA8451_Library from
our github repository (http://adafru.it/dLJ). You can do that by visiting the github repo and
manually downloading or, easier, just click this button to download the zip
Download the Adafruit MMA8451
Library
http://adafru.it/dLK
Rename the uncompressed folder Adafruit_MMA8451 and check that the
Adafruit_MMA8451 folder contains Adafruit_MMA8451.cpp and
Adafruit_MMA8451.h
Place the Adafruit_MMA8451 library folder your arduino sketchfolder/libraries/
folder.
You may need to create the libraries subfolder if its your first library. Restart the IDE.
We also have a great tutorial on Arduino library installation at:
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use (http://adafru.it/aYM)
Download Adafruit_Sensor
The MMA8451 library uses the Adafruit_Sensor support backend so that readings can be
normalized between sensors. You can grab Adafruit_Sensor from the github
repo (http://adafru.it/aZm) or just click the button below.
Download Adafruit_Sensor
Library
http://adafru.it/cMO
Install like you did with Adafruit_MMA8451
Load Demo
Open up File->Examples->Adafruit_MMA8451->MMA8451demo and upload to your
Arduino wired up to the sensor
© Adafruit Industries https://learn.adafruit.com/adafruit-mma8451-accelerometer-breakout Page 13 of 20