PiDog Camera - Can't get started

I checked the wiring and re-seated the cable, see Attachment A, B and C. The male ends seem to fit securely in the female sockets and both ends of the cable are locked in the sockets. I ran the following prompt with the results shown:

pi@raspberrypi:~ $ libcamera-hello
bash: libcamera-hello: command not found

After going crazy checking to find what is missing I found that that command has been replaced, I think, with rpicam-hello. While that did not solve my problem, maybe the results (see Appendix D) can shed some light on the situation. I am not sure what conclusions I can draw from the output except that there may be a problem with the cable or sensor. I can’t see how there could be a problem with the cable, I did not kink it and the contacts seem to be OK. Where is the sensor? How can I diagnose the problem?

pi@raspberrypi:~ $
pi@raspberrypi:~ $
pi@raspberrypi:~ $ rpicam-hello
[0:16:48.367172199] [2543] INFO Camera camera_manager.cpp:340 libcamera
v0.6.0+rpt20251202
[0:16:48.421546537] [2546] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file
/usr/share/libcamera/ipa/rpi/vc4/ov5647.json
[0:16:48.435754502] [2546] INFO Camera camera_manager.cpp:223 Adding camera
‘/base/soc/i2c0mux/i2c@1/ov5647@36’ for pipeline handler rpi/vc4
[0:16:48.435942104] [2546] INFO RPI vc4.cpp:445 Registered camera
/base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device
/dev/media0
[0:16:48.436089134] [2546] INFO RPI pipeline_base.cpp:1111 Using configuration file
‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
Made X/EGL preview window
Mode selection for 1296:972:12:P
SGBRG10_CSI2P,640x480/0 - Score: 3296
SGBRG10_CSI2P,1296x972/0 - Score: 1000
SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:16:48.779563092] [2543] INFO Camera camera.cpp:1215 configuring streams: (0)
1296x972-YUV420/sYCC (1) 1296x972-SGBRG10_CSI2P/RAW
[0:16:48.783464246] [2546] INFO RPI vc4.cpp:620 Sensor:
/base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-
SGBRG10_1X10/RAW - Selected unicam format: 1296x972-pGAA/RAW
[0:16:49.929966101] [2546] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]:
Dequeue timer of 1000000.00us has expired!
[0:16:49.930093183] [2546] ERROR RPI pipeline_base.cpp:1350 Camera frontend has
timed out!
[0:16:49.930114849] [2546] ERROR RPI pipeline_base.cpp:1351 Please check that your
camera sensor connector is attached securely.
[0:16:49.930134120] [2546] ERROR RPI pipeline_base.cpp:1352 Alternatively, try another
cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:16:51.038832622] [2546] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]:
Dequeue timer of 1000000.00us has expired!
[0:16:51.038956319] [2546] ERROR RPI pipeline_base.cpp:1350 Camera frontend has
timed out!
[0:16:51.038977360] [2546] ERROR RPI pipeline_base.cpp:1351 Please check that your
camera sensor connector is attached securely.
[0:16:51.038997464] [2546] ERROR RPI pipeline_base.cpp:1352 Alternatively, try another
cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:16:52.148154061] [2546] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]:
Dequeue timer of 1000000.00us has expired!
[0:16:52.148301246] [2546] ERROR RPI pipeline_base.cpp:1350 Camera frontend has
timed out!
[0:16:52.148323486] [2546] ERROR RPI pipeline_base.cpp:1351 Please check that your
camera sensor connector is attached securely.
[0:16:52.148342913] [2546] ERROR RPI pipeline_base.cpp:1352 Alternatively, try another
cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:16:53.267438070] [2546] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]:
Dequeue timer of 1000000.00us has expired!
[0:16:53.272268536] [2546] ERROR RPI pipeline_base.cpp:1350 Camera frontend has
timed out!

Your wiring seems to be correct. Please try connecting the camera module with another FPC cable to see if it can work properly.

I replaced the FPC cable and checked that it was installed and seated correctly and then ran pi@raspberrypi:~ $ rpicam-hello with the following results:

[0:07:33.786412140] [1960] INFO Camera camera_manager.cpp:340 libcamera v0.6.0+rpt20251202
[0:07:33.848726825] [1963] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/ov5647.json
[0:07:33.862901992] [1963] INFO Camera camera_manager.cpp:223 Adding camera ‘/base/soc/i2c0mux/i2c@1/ov5647@36’ for pipeline handler rpi/vc4
[0:07:33.863085690] [1963] INFO RPI vc4.cpp:445 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media2 and ISP device /dev/media0
[0:07:33.863181315] [1963] INFO RPI pipeline_base.cpp:1111 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
Made X/EGL preview window
Mode selection for 1296:972:12:P
SGBRG10_CSI2P,640x480/0 - Score: 3296
SGBRG10_CSI2P,1296x972/0 - Score: 1000
SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:07:34.813987695] [1960] INFO Camera camera.cpp:1215 configuring streams: (0) 1296x972-YUV420/sYCC (1) 1296x972-SGBRG10_CSI2P/RAW
[0:07:34.814753477] [1963] INFO RPI vc4.cpp:620 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10/RAW - Selected unicam format: 1296x972-pGAA/RAW
[0:07:35.961699491] [1963] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]: Dequeue timer of 1000000.00us has expired!
[0:07:35.961862980] [1963] ERROR RPI pipeline_base.cpp:1350 Camera frontend has timed out!
[0:07:35.961884387] [1963] ERROR RPI pipeline_base.cpp:1351 Please check that your camera sensor connector is attached securely.

Some of the above repeats.

Is this the correct software for a Raspberry 3+?

If it is how can I check the camera sensor? Where is the camera sensor?

Based on the logs, the system has successfully detected the OV5647 camera sensor, and rpicam-hello is the correct test program for using the camera on the Raspberry Pi 3B+. Therefore, this issue is not likely related to software or system version.

The error shown in the logs typically indicates that the Raspberry Pi can recognize the camera chip, but does not receive image data when starting the video stream. This is generally a hardware connection issue. Common causes include:

The camera ribbon cable is not fully inserted into the connector

The ribbon cable is inserted in the wrong orientation

The ribbon cable is damaged

The camera module itself is faulty

If you have confirmed that all connections are correct, then the camera module may be defective.

Its not easy to be sure but judging by the angle of the black cable clamp in photo 2, the cable is not fully secured at the left hand side of the csi connector at the rpi end

I know from previous posts this rpi has had several rewires done. So, i would strongly suggest checking for bent pins in the csi connector before forcing it home

Installed a new camera cable and checked that it was reseated properly, I believe it is. I made sure that it was squarely inserted as far as it would go and that the black holder was firmly seated. The camera still doesn’t work but the error refers to the camera sensor, not the camera - see the following. Where is the camera sensor located and how is it cabled? I can’t find anything on the web.

pi@raspberrypi:~ $ rpicam-hello

[0:17:46.988220360] [1514] INFO Camera camera_manager.cpp:340 libcamera v0.6.0+rpt20251202
[0:17:47.040219092] [1517] INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/ov5647.json
[0:17:47.052529257] [1517] INFO Camera camera_manager.cpp:223 Adding camera /soc/i2c0mux/i2c@1/ov5647@36’ for pipeline handler rpi/vc4
[0:17:47.052677642] [1517] INFO RPI vc4.cpp:445 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:17:47.052771236] [1517] INFO RPI pipeline_base.cpp:1111 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
Made X/EGL preview window
Mode selection for 1296:972:12:P
SGBRG10_CSI2P,640x480/0 - Score: 3296
SGBRG10_CSI2P,1296x972/0 - Score: 1000
SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:17:48.837544396] [1514] INFO Camera camera.cpp:1215 configuring streams: (0) 1296x972-YUV420/sYCC (1) 1296x972-SGBRG10_CSI2P/RAW
[0:17:48.840452211] [1517] INFO RPI vc4.cpp:620 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10/RAW - Selected unicam format: 1296x972-pGAA/RAW
[0:17:49.976043014] [1517] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]: Dequeue timer of 1000000.00us has expired!
[0:17:49.976455983] [1517] ERROR RPI pipeline_base.cpp:1350 Camera frontend has timed out!
[0:17:49.976518015] [1517] ERROR RPI pipeline_base.cpp:1351 Please check that your camera sensor connector is attached securely.
[0:17:49.976564421] [1517] ERROR RPI pipeline_base.cpp:1352 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:17:51.077016451] [1517] WARN V4L2 v4l2_videodevice.cpp:2100 /dev/video0[10:cap]: Dequeue timer of 1000000.00us has expired!
[0:17:51.077137962] [1517] ERROR RPI pipeline_base.cpp:1350 Camera frontend has timed out!
[0:17:51.077159889] [1517] ERROR RPI pipeline_base.cpp:1351 Please check that your camera sensor connector is attached securely.
[0:17:51.077179993] [1517] ERROR RPI pipeline_base.cpp:1352 Alternatively, try another cable and/or sensor.

Is there a way to diagnose the specifics, I don’t want to spend another $20 if I don’t need to? The error refers to the camera sensor connector. Where is that? How is it connected?

The sensor is inside the camera head assembly, the black part you can see with the lens at the front of pidogs nose.

The “camera sensor connector’“ is the gold fpc cable, also visible on the dogs nose, which connects this camera head assembly (lens assembly) to the green main camera circuit board, carrying data, power, and ground. This is the cable being referred to in this instance.

The white ffc cable then carries these data and power to the rpi3.

Did you also check for any bent pins in the csi connector as i suggested before replacing the white ffc cable? They are very delicate.

I did check the connections on the ffc cable and they look fine to me. I can’t imagine how the cable on the camera chip got damaged. I just plugged the white cable into the slot making sure that it went way in and was secure. Then I seated it and clamped in .

Please contact service@sunfounder.com and provide your original order number and address information, and we will send you a replacement camera module.