cameras not detected

StereoPi v2 hardware questions
Post Reply
kivlerton
Posts: 3
Joined: Tue Jun 14, 2022 12:03 pm

cameras not detected

Post by kivlerton »

Hello,

I'm setting up the StereoPi v2 Camera Kit using the Quick Start Guide and I'm having trouble getting a connection and stream from the cameras. I've only been able to detect 1 using get_camera

Code: Select all

root@stereopi:~# vcgencmd get_camera
supported=2 detected=1
using raspivid -cs the output is

Code: Select all

root@stereopi:~# raspivid -cs 0
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

root@stereopi:~# raspivid -cs 1
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: Could not select camera : error 3
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
viewing the gui at stereopi.local there is no video stream but the menu options are there


When using raspistill-v -o test.jpg I get this output

Code: Select all

root@stereopi:~# raspistill -v -o test.jpg

"raspistill" Camera App (commit 0093675e4aa6 Tainted)

Camera Name imx219
Width 3280, Height 2464, filename test.jpg
Using camera 0, sensor mode 0

GPS output Disabled

Quality 85, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 5000, Timelapse 0
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Flicker Avoid Mode 'off'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
When i plug each camera into my Pi0w I get the same mmal error when using raspistill. On the Pi0w, both cameras are detected but cannot take a photo like I can with my raspberry pi camera v2.

Connecting 2 x raspberry Pi camera V2 to the stereoPi gives, Cams detected 0, supported 2 in the camera settings of stereopi.local.

running the raspivid -cs 0 and raspivid -cs 1

Code: Select all

mmal: Cannot read camera info, keeping the defaults for OV5647
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

Any help would be appreciated, thank you

User avatar
Realizator
Site Admin
Posts: 900
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: cameras not detected

Post by Realizator »

Hi kivlerton,

According to your error messages I guess the issue is the ribbon cable connection. Please check that cameras are connected correctly.
(btw, it is better to use "raspistill" command but not "raspivid" for tests)

Could you please share a photo of the camera with the ribbon inserted?

As for the Pi0w tests - am I got you right that you can take images using your V2 camera, but can't do this using cameras from the kit? Could you please tell me the OS you are using?

p.s. 'ENOSPC' error usually means two things. It's either lack of GPU memory, or poor connection of one of the line in the ribbon cable.
Eugene a.k.a. Realizator

kivlerton
Posts: 3
Joined: Tue Jun 14, 2022 12:03 pm

Re: cameras not detected

Post by kivlerton »

Hi Realizator,

Thanks for your response. Excuse my delayed response, I was on a work trip. Here is a photo of connected cables in the camera
IMG20220628001138.jpg
IMG20220628001138.jpg (514.96 KiB) Viewed 8007 times

I'd tried 6 different ribbons and none had worked. The ethernet lights no longer light up and i cannot connect to the device using ethernet or wifi.

I think the os for the pi0 was bullseye

Update:
I unplugged the pi4 compute module and reset it in position, this brought back the wifi and ethernet, and 2 cameras are now being detected. My installing of the pi4 module was bad. I still have a black screen in stereopi.local but 2 cameras are being detected. I'll play around a bit more and see if i can get it going

User avatar
Realizator
Site Admin
Posts: 900
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: cameras not detected

Post by Realizator »

Uh, it was the CM4 installation. Yup, installing it up to the sensible "click" is crucial.

I'm glad it works for you now!
Eugene a.k.a. Realizator

kivlerton
Posts: 3
Joined: Tue Jun 14, 2022 12:03 pm

Re: cameras not detected

Post by kivlerton »

Yeah it certainly was my CM4 install. It was weird that the OS was loading and operating though. Thanks for your help

Post Reply