Datasheet
Table Of Contents

(Hint:)
For the sides obstructed by the breakout
board and/or wires, press the block up
against the bottom of the table while taking
the reading.
Calibration Results:
Once all six sides have been sampled, the values printed in the Serial Monitor will represent
actual measurements for +/- 1G forces on each axis. These values can be used to re-scale
readings for better accuracy.
Calibration Sketch:
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>
/* Assign a unique ID to this sensor at the same time */
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);
float AccelMinX = 0;
float AccelMaxX = 0;
float AccelMinY = 0;
float AccelMaxY = 0;
float AccelMinZ = 0;
float AccelMaxZ = 0;
void setup(void)
{
Serial.begin(9600);
Serial.println("ADXL345 Accelerometer Calibration");
Serial.println("");
© Adafruit Industries https://learn.adafruit.com/adxl345-digital-accelerometer Page 13 of 17