# PiDog V2 with RPI4 Camera errors - Not connectors

**URL:** <https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [March 12, 2026, 2:00pm UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459 "2026-03-12T14:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![momminator](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/momminator/32/2250_2.png) [@momminator](https://forum.sunfounder.com/u/momminator)\
**Post date:** [March 12, 2026, 2:00pm UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459/1 "2026-03-12T14:00:50Z")

</div>

I have a PiDog I am trying to program for a coworker (he builds, I code). Here is the most recent error from trying to run the 12\_App\_Control in /pidog/examples below:

momminator@PiDog513:~/pidog/examples $ sudo python3 12\_app\_control.py

vilib 0.3.18 launching …

picamera2 0.3.34

Traceback (most recent call last):

File “/home/momminator/pidog/examples/12\_app\_control.py”, line 5, in

```
from vilib import Vilib

```

File “/usr/local/lib/python3.13/dist-packages/vilib/\__init_\_.py”, line 2, in

```
from .vilib import Vilib

```

File “/usr/local/lib/python3.13/dist-packages/vilib/vilib.py”, line 182, in

```
class Vilib(object):

...<635 lines>...

        return img

```

File “/usr/local/lib/python3.13/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

It’s a new camera because the other one apparently was not installed properly (or fell off). I’ve reinstalled the software on new SD cards multiple times and it’s just not working. PiDog can do everything else except anything that requires the camera. Any other suggestions?

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 12, 2026, 8:28pm UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459/2 "2026-03-12T20:28:01Z")

</div>

Its a hardware not software issue. Often the camera cable is misconnected or rotated on one side or the other, or sometimes connected to the dsi not csi port. Ive already asked sunfounder to add a camera trial build into their instructions, which they agreed to do, as it happens so often. Its such a tricky cable to get right.

---

<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:** [March 13, 2026, 6:16am UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459/3 "2026-03-13T06:16:14Z")

</div>

Yes, @SPF650 is absolutely right. I suggest checking the connection of the camera cable.

If you’re unsure, you can take photos of both ends of the cable and show them to us.

After confirming the connection, use the following command to check if the Raspberry Pi detects the camera:  
rpicam-hello --list-cameras

 ![image (1) (1)](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/5/54657467c288fa74b357a8cc9772eebdb4529491.jpeg)

 ![image - 2026-02-24T163213.748](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/3/3a860c447cf662f11d081a78b72b5a088e78558b.jpeg)

---

<div class="post-metadata">

**Author:** ![momminator](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/momminator/32/2250_2.png) [@momminator](https://forum.sunfounder.com/u/momminator)\
**Post date:** [March 13, 2026, 1:24pm UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459/4 "2026-03-13T13:24:46Z")

</div>

> [@SunFounder\_Moderator](#):
>
> rpicam-hello --list-camera

I tried this with changing the strip all ways and no camera is available

 ![IMG_5356](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/b/b4617eefbdd3492aa8a517f3ffa817af40d76071.jpeg)

 ![IMG_5355](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/e/e9a29b3b413d554893cc0600a64e8bd51122e448.jpeg)

---

<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:** [March 16, 2026, 6:01am UTC](https://forum.sunfounder.com/t/pidog-v2-with-rpi4-camera-errors-not-connectors/4459/5 "2026-03-16T06:01:35Z")

</div>

The wiring does seem to be correct. Please try connecting it with another FPC cable to see if it works.
