dobot1_control.calibrate_accelerometers¶
open-dobot accelerometer calibration tool.
This tool continuously reports accelerometer readings and the angles calculated from them.
Use this tool to find offsets for your accelerometers.
To enable accelerometer reporting mode on FPGA, follow this procedure. No action is required on RAMPS, because GY-521 accelerometers can be read at any time there.
Turn off power on the arm and disconnect the USB cable.
Remove the accelerometers from the arm and put them on a flat surface that has no inclination.
Connect the USB cable.
Enable accelerometer reporting mode:
Press and hold the “Sensor Calibration” button on the FPGA version, or ground pin D23 on AUX-4 on the RAMPS version.
Press and release the “Reset” button.
Start this tool while still holding the “Sensor Calibration” button on the FPGA version, or while keeping pin D23 grounded on the RAMPS version.
Wait for accelerometer data to start flowing in your console.
Release the “Sensor Calibration” button.
Gently push down the accelerometers so that they lie evenly on the surface. Do not touch any contacts or leads. You can push them one by one; it is not necessary to push both at the same time.
Note the “Raw” data reported for the accelerometers. These values are your accelerometer offsets.
Turn off power on the arm, disconnect the USB cable, and mount the accelerometers back onto the arm.
- author:
maxosprojects, March 18, 2016
- author:
Ingo Breßler, April 11, 2026
- license:
MIT
Functions
|
|
|
|
|
|
|
Calculates sensor offsets and conversion factors for the accelerometers based on measurements at specified cartesian positions. |
|