Manual

45
4. Calibrating
During the installation, errors may happen to mechanical connection. So you need to
calibrate the robot to make sure the accuracy.
Uploading Code for Calibration
Open Crawler.ino under Quadruped Crawling Robot Kit V2.0 for
Arduino\code\3.Crawl\Crawler directory
Modify Lines 32-34 as follows (uncomment the Line 33 #define ADJUST), compile the code,
upload it to the SunFounder Servo Control Board, and then remove the USB cable.
Switch on SunFounder Servo Control Board. At this point, the crawling robot will keep the
calibration poses.
Calibration
Measure the 3D (x, y, z) coordinates of the toe tip of the four legs, put them in the array
real_site[4][3] at Line 36 to calibrate the error during the installation.
SunFounder