
Programming and Calibration
Install the Library:
Download the
ADXL345 library
(https://adafru.it/aZn)
and install it. You will also need the
Adafruit Sensor
Library
(https://adafru.it/aZm)
if you do not already have it installed.
This guide
(https://adafru.it/aYM)
will help you with the install process.
Test:
Click "File->Examples->Adafruit_ADXL345->sensortest" to load the example sketch from the library.
Then click on the compile/upload button to compile and upload the sketch to the Arduino. You should see output
similar to below. Watch the values change as you move the board around.
Calibrate:
The ADXL chips are calibrated at the factory to a level of precision sufficient for most purposes. For critical applications
where a higher degree of accuracy is required, you may wish to re-calibrate the sensor yourself.
Calibration does not change the sensor outputs. But it tells you what the sensor output is for a known stable reference
force in both directions on each axis. Knowing that, you can calculate the corrected output from a sensor reading.
© Adafruit Industries
https://learn.adafruit.com/adxl345-digital-accelerometer
Page 8 of 17
Содержание ADXL345
Страница 1: ...ADXL345 Digital Accelerometer Created by Bill Earl Last updated on 2018 12 07 07 32 33 PM UTC ...
Страница 4: ... Adafruit Industries https learn adafruit com adxl345 digital accelerometer Page 4 of 17 ...
Страница 7: ... Adafruit Industries https learn adafruit com adxl345 digital accelerometer Page 7 of 17 ...
Страница 17: ... Adafruit Industries Last Updated 2018 12 07 07 32 32 PM UTC Page 17 of 17 ...