Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
👉 Ready to explore and create with us? Click [here] and join today!
2. Calibrate the PiDog
Introduction
Calibrating your PiDog is an essential step to ensure its stable and efficient operation. This process helps correct any imbalances or inaccuracies that might have arisen during assembly or from structural issues. Follow these steps carefully to ensure your PiDog walks steadily and performs as expected.
But if the deviation angle is too big, you still have to go back to 7. Servo Adjust(Important) to set the servo angle to 0°, and then follow the instructions to reassemble the PiDog.
Calibrate Video
For a comprehensive guide, refer to the full calibration video. It provides a visual step-by-step process to accurately calibrate your PiDog.
Note
The Pidog kit may come with a 90° or 60° ruler. Our calibration video uses the 90° ruler, but the 60° version follows a similar process. You can also refer to the detailed steps below.
Steps
The specific steps are as follows:
Put the PiDog on the base.
Navigate to the PiDog examples directory and run the
0_calibration.py
script.cd ~/pidog/examples sudo python3 0_calibration.py
Upon running the script, a user interface will appear in your terminal. Here, you need to select your calibration ruler (60° or 90°).If your kit has a 90° calibration ruler, select the first option; if it is a 60° one, select the second option.
After selecting, you will enter the following interface:

90° Ruler
Position the Calibration Ruler (Acrylic C) as shown in the provided image. In the terminal, press
1
, followed byw
ands
keys to align the edges as indicated in the image.Reposition the Calibration Ruler (Acrylic C) as illustrated in the next image. Press
2
in the terminal, then usew
ands
to align the edges as shown.Repeat the calibration process for the remaining servos (3 to 8). Ensure all four legs of the PiDog are calibrated.
60° Ruler
Position the Calibration Ruler (Acrylic C) as shown in the provided image. Place its long side on a level surface. In the terminal, press
1
, followed byw
ands
keys to align the edges as indicated in the image.Reposition the Calibration Ruler (Acrylic C) as illustrated in the next image. Press
2
in the terminal, then usew
ands
to align the edges as shown.Repeat the calibration process for the remaining servos (3 to 8). Ensure all four legs of the PiDog are calibrated.