I am using Raspberry Pi zero W together with Adafruit Zero spy camera for Pi (product link: https://www.adafruit.com/product/3508 ) for a project.
As per the project requirement, the above camera module is mounted on a brass block, which in turn is screwed into a Aluminum cylindrical enclosure. I cannot change this requirement.
During assembly, the camera module rotates along with the brass block as it attaches to the Aluminum cylindrical enclosure. During this process, the flex cable of the camera module and the components on it may touch the Aluminum cylindrical enclosure (not connected to the Pi zero ground)
After setting up, I took some photos with the above camera module and it was working fine for the past few days.
Then, I disassembled the camera to adjust the focus. Ever since I assembled the camera on the brass block and attached it to the Aluminum cylindrical enclosure and connected the camera to the Pi-zero, the camera is not getting detected.
Whenever I run a raspistill command, the error message displayed is :
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1) mmal: Failed to create camera component mmal: main: Failed to create camera component mmal: Camera is not detected. Please check carefully the camera module is installed correctly
When I ran
vcgencmd get_camera it returned
The camera interface is enabled on my Pi-zero. I checked the camera connector and it is perfectly connected to the camera module. There is no problem in physical connection. Also, I rebooted my Pi-zero a number of times, but still the camera is not detected.
The photos of the camera module fixing on the brass block, aluminum cylindrical enclosure with the Pi zero are enclosed.
Pl. help me debug/resolve the issue and also kindly let me know if any precautions are to be followed in order to prevent the same issue from repeating in the future.