How do I wire the PiSloth servos to the Robot Hat?

How do I wire the PiSloth servos to the Robot Hat?
I have checked every video and tutorial without any success.
Thanks in advance.

You are using ezblock app control, you need to install and download our specified ezblock OS image, burn it to SD card and plug it to Raspberry Pi. EzblockStudio/download

  1. First, start the robot and wait for it to turn on, if you hear a loud sound, it means the robot has been successfully turned on.

  2. will upset the angle of the servo, connected to the p11 pin 3, and then hold down the USR key do not let go, and then press the zero RST key, you can wait for the servo back to zero. (Hint: before the servo is not zeroed, press and hold the USR key and don’t let go) If you use python control, you need to install and download the Raspberry Pi operating system, download and install the source code on the terminal, and execute the script for servo zeroing, and before executing the script, you need to disrupt the angle of the servo to connect to the P11, and execute the script: cd ~/pisloth/examplesudo python3 servo_zeroing.py At this point you will see the servo in the return to zero

Thank you for sharing the information about zeroing the servos, but I’m actually looking for where to connect the servos to the Robot Hat.
Do I connect PWM0 - left leg, PWM1 - left ankle, PWM2 - right leg, PWM3 - right ankle?
I can’t find any documentation showing this.

You can check out our assembly foldout, we have instructions on where to attach each servo!
https://github.com/sunfounder/sf-pdf/raw/master/assembly_file/a0000691-pisloth.pdf
If the PiSloth is facing us:
PWM2 - left leg
PWM3 - left ankle
PWM0 - right leg
PWM1 - right ankle

The opposite is true:
PWM0 - left leg
PWM1 - left ankle
PWM2 - right leg
PWM3 - right ankle

Thank you for the info! This makes sense, now.

Now that I have everything connected, I am unable to zero the servos. This is the error that I get:

sudo python3 servo_zeroing.py
bash: cd: /home/pi/piarm/examples: No such file or directory
python3: can’t open file ‘/home/jennifer/pisloth/servo_zeroing.py’: [Errno 2] No such file or directory

I’m very sorry, but there is a problem with the command path of our tutorial, which is causing the error. You can run the examples by following the commands below:
cd ~/pisloth/examples
sudo python3 servo_zeroing.py

There is no “servo_zeroing.py” in the source files…

The code we are using is not the master branch, but the V2.0 branch.