foobar2016
Posts: 3
Joined: Sat Jul 16, 2016 7:12 pm

RasPi Multi Camera Adapter Module

Sat Jul 16, 2016 7:42 pm

Hi Folks

I got a new Arducam Multi Camera Adapter Module (http://www.arducam.com/multi-camera-ada ... pberry-pi/) and 2 RaspiCams v.2.

But I have Problems to get the system running:
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
I'm getting this error in any attempt to take a picture by the script from the developer.

Code: Select all

import RPi.GPIO as gp
import os

gp.setwarnings(False)
gp.setmode(gp.BOARD)

gp.setup(7, gp.OUT)
gp.setup(11, gp.OUT)
gp.setup(12, gp.OUT)

gp.setup(15, gp.OUT)
gp.setup(16, gp.OUT)
gp.setup(21, gp.OUT)
gp.setup(22, gp.OUT)

gp.output(11, True)
gp.output(12, True)
gp.output(15, True)
gp.output(16, True)
gp.output(21, True)
gp.output(22, True)

def main():
    gp.output(7, False)
    gp.output(11, False)
    gp.output(12, True)
    capture(1)

    gp.output(7, True)
    gp.output(11, False)
    gp.output(12, True)
    capture(2)

    gp.output(7, False)
    gp.output(11, True)
    gp.output(12, False)
    capture(3)

    gp.output(7, True)
    gp.output(11, True)
    gp.output(12, False)
    capture(4)

def capture(cam):
    cmd = "raspistill -o capture_%d.jpg" % cam
    os.system(cmd)

if __name__ == "__main__":
    main()

    gp.output(7, False)
    gp.output(11, False)
    gp.output(12, True)
I tried different ways:
1. camera1 directly on the CSI port -> raspistill -> got a picture
2. camera2 directly on the CSI port -> raspistill -> got a picture
3. camera module on the CSI port, both cameras connected -> error
4.1 changed the connectors (flexible flat cable), so only 1 camera connected -> got a picture
4.2 put the camera on different slots -> no problem, got a picture
(-> Yeah, found the malfunction, but:)
5. put the second camera in (with "malfunctioned" cable) -> error
6. camera2 (with "malfunctioned" cable) directly on the CSI port -> raspistill -> got a picture

Next thing I tried:
connect 1 camera and run the script (from the developer), changed to use only camera slot 1 -> got a picture
then run the script with all 4 slots -> one picture, 3 errors
then run for 1 camera again: error

So: all cables are okay and all cameras are okay. The Module is sending a signal if one camera is connected. But connecting 2 or more cameras is crashing the camera system.

Is there a malfunction in the module? Where is my error?

Thank you for your help
(P.S.: I'm not a native english speaker, so I'm sorry for every mistake ;-)

foobar2016
Posts: 3
Joined: Sat Jul 16, 2016 7:12 pm

Re: RasPi Multi Camera Adapter Module

Sat Jul 16, 2016 8:42 pm

Ah sorry:
It's a Raspberry3 B
Raspbian GNU/Linux 8 (jessie)

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 13261
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RasPi Multi Camera Adapter Module

Sat Jul 16, 2016 8:44 pm

Based on the fact that the alternative version of that board has only recently sorted compatibility for the V2 camera having declared their original board incompatible, I'd guess the Arducam board has the same issue.
Check with your supplier, but I suspect you've been sold a pup.

If my guess is right they've just wired the I2C connections all together, which works fairly reliably until you want to read back any data which may differ between sensors. Two guesses what happens on the V2 sensors.
If you want to confirm this then I'd expect "vcgencmd get_camera" to return "supported=1 detected=1", but if you add "start_debug=1" to /boot/config.txt and run "sudo vcdbg log assert" after trying the camera, then I'd expect the assert

Code: Select all

assert( open_camera_driver: camera open failed ) failed; ../../../../../middleware/camplus/cdi/cdi_camera.c::open_camera_driver line 716
to show up, as discussed in viewtopic.php?f=43&t=147744. The basic detection is OK, but the more involved exchange when actually opening the camera fails.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

foobar2016
Posts: 3
Joined: Sat Jul 16, 2016 7:12 pm

Re: RasPi Multi Camera Adapter Module

Sun Jul 17, 2016 3:01 pm

Thanks for your help. I will try to send the module back :-(

NCRbasketcase
Posts: 2
Joined: Wed Sep 20, 2017 3:22 pm

Re: RasPi Multi Camera Adapter Module

Wed Sep 20, 2017 3:27 pm

Can someone clever suggest a hardware fix for this. Maybe a link or some simple mod to allow V2 cameras to work on this adapter board?

Thanks

Return to “Camera board”