My new Picar-X is working all fine except the camera. I checked the FCC cable, checked the camera wiring diagram was followed, tried with another cable,… the issue remains.
Here are my console logs:
$ rpicam-hello --list-cameras
No cameras available!
$ rpicam-hello
[0:01:50.387958917] [837] INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
ERROR: *** no cameras available ***
$ cd ~/picar-x/example
sudo python3 7.computer_vision.py
vilib 0.3.18 launching …
picamera2 0.3.31
Traceback (most recent call last):
File “/home/gaby/picar-x/example/7.computer_vision.py”, line 2, 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
Thanks for any advice on how I could fix this issue.
Please confirm whether your camera cable is connected in the correct orientation.
Kindly verify the camera connection according to the pictures we provided.
After confirming that the camera is properly connected, please execute the command rpicam-hello to test whether the camera module can be recognized and works normally.
Thanks for the recommandation. I did check the camera connection on both sides and I confirm it is properly connected. The module is not recognized with the rpicam-hello command.
Thanks again for your prompt answer. I did all of that several time, upgraded the firmware, reinstalled the OS. I still have the following error message:
[0:00:48.684243117] [760] INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
ERROR: *** no cameras available ***
We sincerely apologize for the trouble you’ve experienced and appreciate your patience throughout the troubleshooting process.
We have found a potential solution from another user in our forum who encountered a similar issue with the camera not being detected on Raspberry Pi 5. After modifying a configuration file, the camera started working normally.
You can try the following steps to see if this resolves the issue:
Open the terminal and enter the command:
sudo nano /boot/firmware/config.txt
Add the following line at the end of the file:
camera_auto_detect=1
Save the file by pressing Ctrl+O, then press Enter. Exit the editor by pressing Ctrl+X.
After successfully updating the configuration, restart your system.
Once the system reboots, please test the camera again to see if it is now functioning.
If the camera still does not work after this procedure, please contact us at service@sunfounder.com, and we will immediately arrange to send you a replacement camera module.
Thanks for seeking all potential solutions. Unfortunately, I spent time on the forum before publishing my post on this issue. I already tried this fix and it didn’t solve the problem.