# Help for a new build pidog2

**URL:** https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851
**Category:** Robotic kit for Raspberry Pi
**Created:** [September 29, 2025, 6:25pm UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851 "2025-09-29T18:25:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![craigos](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@craigos](https://forum.sunfounder.com/u/craigos)
#### Post date: [September 29, 2025, 6:25pm UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/1 "2025-09-29T18:25:19Z")

</div>

I have just put together pidog v2. I have very little experience of electronics, but am fairly familiar with Python.

Can I get a bit of advice. When I did the calibration, two of the servos where apparently not set properly. One was a leg, that was easy to remove and adjust to bring it into the range of the calibration settings.

The other is the head leaning to one side. Is there any way of correcting this without taking it all apart?

Cheers

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [September 30, 2025, 8:17am UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/2 "2025-09-30T08:17:29Z")

</div>

If the head servo does not return to zero correctly, and you assemble and secure it,  
we still recommend that you remove the servo, readjust it to return to zero, and then reassemble and secure it.

---

<div class="post-metadata">

### Author: ![craigos](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@craigos](https://forum.sunfounder.com/u/craigos)
#### Post date: [September 30, 2025, 12:23pm UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/3 "2025-09-30T12:23:51Z")

</div>

Is the return to zero accomplished by the zero button on the pi hat? Am I right if I disassemble hit the zero button and then reconnect the server with the head straight. Or should I adjust it manually by moving the head so it sits straight?

Thanks for your help.

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [October 3, 2025, 9:04am UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/4 "2025-10-03T09:04:28Z")

</div>

To resolve the servo alignment issue, we recommend removing the head servos and reassembling them by following the step-by-step zeroing procedure below:

Power on the Robot HAT.

Briefly press the ZERO button twice.

Connect the servo cable to the PWM pin. The servo will now move to and hold its zero position.

Important: With the servo still connected and powered, assemble and secure it to the structure according to the manual.

Only after the servo is firmly in place should you disconnect its cable.

Repeat steps 3 to 5 for the remaining servos.

These steps are also outlined in the paper assembly manual included with your kit.

If you continue to experience issues, please feel free to contact us.

---

<div class="post-metadata">

### Author: ![craigos](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@craigos](https://forum.sunfounder.com/u/craigos)
#### Post date: [October 9, 2025, 1:07pm UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/5 "2025-10-09T13:07:32Z")

</div>

Servo now sorted, but I now have an issue with trying to set up the control app.

I get a similar issue if I try to look at the camera. 7\_facetrack.py also says list index out of range.

picamera2 0.3.31  
Traceback (most recent call last):  
File “/home/craigos/pidog/examples/12\_app\_control.py”, line 5, in  
from vilib import Vilib  
File “/usr/local/lib/python3.11/dist-packages/vilib/ **init**.py”, line 2, in  
from .vilib import Vilib  
File “/usr/local/lib/python3.11/dist-packages/vilib/vilib.py”, line 182, in  
class Vilib(object):  
File “/usr/local/lib/python3.11/dist-packages/vilib/vilib.py”, line 184, in Vilib  
picam2 = Picamera2()  
^^^^^^^^^^^  
File “/usr/lib/python3/dist-packages/picamera2/picamera2.py”, line 341, in **init**  
camera\_num = self.global\_camera\_info()[camera\_num][‘Num’]  
~~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^  
IndexError: list index out of range

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [October 10, 2025, 3:09am UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/6 "2025-10-10T03:09:58Z")

</div>

From the logs you provided, it seems likely that the camera is not connected properly, which is causing it to be unrecognized.

I recommend checking the camera connections against the images we provided to ensure they are correct.  
After confirming the connections are correct, please run the rpicam-hello test to see if the camera is recognized properly.

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [October 10, 2025, 3:21am UTC](https://forum.sunfounder.com/t/help-for-a-new-build-pidog2/3851/7 "2025-10-10T03:21:11Z")

</div>

![IMG_20230213_162906_edit_252182489988082](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/18ef930a8ae7576ed6131050571b2eb575ca5f1e.jpeg)

 ![9](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/5/51b65f22a09bc9bcd58acbe26410facb70023b52.jpeg)

 ![7](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/4/442d3f2bd5c53aae41331524adc38d9b4103f4d3.jpeg)

 ![8](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/3/37ed3009050d5be7dcd1194c383976d10a4e5cbc.jpeg)

 ![f51d4ac2fa829f24719fc3827ae6456a (2)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/a/aada3702065a6f5315fc18d331d3fcdc8295c43f.jpeg)

 ![6](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/7/7290837abc28304f6661800ad9067633da492ccd.jpeg)
