Arducam 16MP with Raspberry Zero 2W

484 views
Skip to first unread message

Pol Isidor

unread,
Feb 6, 2022, 3:06:33 PM2/6/22
to motioneye
I am the owner of Raspberry 2W and ArduCam 16MP with sensor: Sony IMX519.
[https://www.arducam.com/16mp-autofocus-camera-for-raspberry-pi/](URL)
I installed MotionEyeOS from Jasper's latest version 20220119. But I was faced with the problem that MotionEyeOS can not find an MMAL camera :
![No camera](https://user-images.githubusercontent.com/24247397/152697654-1148d2d6-82e0-4d65-885c-c3e6f96fab56.jpg)
![ArduCam](https://user-images.githubusercontent.com/24247397/152698178-80d4492c-aff7-49b5-93fb-5b544ad2c7af.jpg)


Then I decided to download the latest image with Raspberry PI Imager and install manually the drivers from their web page:
[https://www.arducam.com/docs/cameras-for-raspberry-pi/raspberry-pi-libcamera-guide/](url)

After driver installation I was able to make a still picture with the command:
`libcamera-still -t 5000 -o test.jpg --autofocus`

I installed MotionEye with help of a tutorial:
[https://github.com/ccrisan/motioneye/wiki/Install-On-Raspbian](url)
with some additional help on how to install python2 on Bullseye.

But I run in the same problem even with installed drivers for ArduCam 16MP. I still get a message "No camera" under MMAL camera type.
Under /boot/config.txt I have a line:
`[all]
dtoverlay=imx519`

Commands of interest:
`root@raspberrypi:~# lsb_release -a                
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye`

`root@raspberrypi:~# v4l2-ctl --list-devices
unicam (platform:3f801000.csi):
        /dev/video0
        /dev/video1
        /dev/media3

bcm2835-codec-decode (platform:bcm2835-codec):
        /dev/video10
        /dev/video11
        /dev/video12
        /dev/video18
        /dev/media2

bcm2835-isp (platform:bcm2835-isp):
        /dev/video13
        /dev/video14
        /dev/video15
        /dev/video16
        /dev/video20
        /dev/video21
        /dev/video22
        /dev/video23
        /dev/media0
        /dev/media1
`

`root@raspberrypi:~# v4l2-ctl -d /dev/video0 --all
Driver Info:
        Driver name      : unicam
        Card type        : unicam
        Bus info         : platform:3f801000.csi
        Driver version   : 5.10.92
        Capabilities     : 0x85a00001
                Video Capture
                Metadata Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : unicam
        Model            : unicam
        Serial           :
        Bus info         : platform:3f801000.csi
        Media version    : 5.10.92
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.10.92
Interface Info:
        ID               : 0x03000007
        Type             : V4L Video
Entity Info:
        ID               : 0x00000005 (5)
        Name             : unicam-image
        Function         : V4L2 I/O
        Flags         : default
        Pad 0x01000006   : 0: Sink
          Link 0x02000009: from remote pad 0x1000002 of entity 'imx519 10-001a': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
        Width/Height      : 4656/3496
        Pixel Format      : 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
        Field             : None
        Bytes per Line    : 5824
        Size Image        : 20360704
        Colorspace        : sRGB
        Transfer Function : sRGB
        YCbCr/HSV Encoding: ITU-R 601
        Quantization      : Full Range
        Flags             :
Crop Capability Video Capture:
        Bounds      : Left 8, Top 48, Width 4656, Height 3496
        Default     : Left 8, Top 48, Width 4656, Height 3496
        Pixel Aspect: 1/1
Selection Video Capture: crop, Left 8, Top 48, Width 4656, Height 3496, Flags:
Selection Video Capture: crop_default, Left 8, Top 48, Width 4656, Height 3496, Flags:
Selection Video Capture: crop_bounds, Left 8, Top 48, Width 4656, Height 3496, Flags:
Selection Video Capture: native_size, Left 0, Top 0, Width 4672, Height 3648, Flags:

User Controls

                       exposure 0x00980911 (int)    : min=20 max=4028 step=1 default=1000 value=1000
                horizontal_flip 0x00980914 (bool)   : default=0 value=0 flags=modify-layout
                  vertical_flip 0x00980915 (bool)   : default=0 value=0 flags=modify-layout

Camera Controls

             camera_orientation 0x009a0922 (menu)   : min=0 max=2 default=2 value=2 flags=read-only
                                0: Front
                                1: Back
                                2: External
         camera_sensor_rotation 0x009a0923 (int)    : min=0 max=0 step=1 default=0 value=0 flags=read-only

Image Source Controls

              vertical_blanking 0x009e0901 (int)    : min=564 max=8380504 step=1 default=564 value=564
            horizontal_blanking 0x009e0902 (int)    : min=12240 max=12240 step=1 default=12240 value=12240 flags=read-only
                  analogue_gain 0x009e0903 (int)    : min=0 max=960 step=1 default=0 value=0
                red_pixel_value 0x009e0904 (int)    : min=0 max=4095 step=1 default=4095 value=4095
          green_red_pixel_value 0x009e0905 (int)    : min=0 max=4095 step=1 default=4095 value=4095
               blue_pixel_value 0x009e0906 (int)    : min=0 max=4095 step=1 default=4095 value=4095
         green_blue_pixel_value 0x009e0907 (int)    : min=0 max=4095 step=1 default=4095 value=4095

Image Processing Controls

                     pixel_rate 0x009f0902 (int64)  : min=686000000 max=686000000 step=1 default=686000000 value=686000000 flags=read-only
                   test_pattern 0x009f0903 (menu)   : min=0 max=4 default=0 value=0
                                0: Disabled
                                1: Color Bars
                                2: Solid Color
                                3: Grey Color Bars
                                4: PN9
                   digital_gain 0x009f0905 (int)    : min=256 max=65535 step=1 default=256 value=256`

Is it possible to run the MotionEye project with this camera?
Any help will be appreciated.

StarbaseSSD

unread,
Feb 6, 2022, 3:09:08 PM2/6/22
to motioneye

Be sure you are using the correct Installation directions:
not the Buster instructions.
Reply all
Reply to author
Forward
0 new messages