Quantcast
Viewing all articles
Browse latest Browse all 4816

Camera board • Re: New Pi 4 cant detect camera

The camera is an Arducam OV5647 Rev 2.0 (https://www.amazon.co.uk/dp/B012ETE75I? ... ct_details)

It's connected by Ribbon Cable into the camera port.

I've re-read the camera documentation and it doesn't mention Pi 4 support on there so i've also tried it on my Raspberry Pi 3 using your suggested changes to /boot/firmware.config.txt
The file now looks like this:

**************************************************************************************
pi@wazpi1:~ $ cat /boot/firmware/config.txt
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=0
dtoverlay=ov5647

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[cm5]
dtoverlay=dwc2,dr_mode=host

[all]
enable_uart=1
*************************************************************************************
pi@wazpi1:~ $ vcgencmd get_camera
supported=0 detected=0, libcamera interfaces=0

pi@wazpi1:~ $ sudo rpicam-still -o ~/Desktop/cameratest.jpg
[0:07:54.396676209] [1730] INFO Camera camera_manager.cpp:313 libcamera v0.3.0+65-6ddd79b5
[0:07:54.478252967] [1733] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:07:54.483617914] [1733] INFO RPI vc4.cpp:446 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:07:54.483783175] [1733] INFO RPI pipeline_base.cpp:1104 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 1296:972:12:P
SGBRG10_CSI2P,640x480/0 - Score: 3296
SGBRG10_CSI2P,1296x972/0 - Score: 1000
SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:07:54.486144216] [1730] INFO Camera camera.cpp:1183 configuring streams: (0) 1296x972-YUV420 (1) 1296x972-SGBRG10_CSI2P
[0:07:54.486701664] [1733] INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:07:55.670162587] [1733] WARN V4L2 v4l2_videodevice.cpp:2007 /dev/video0[13:cap]: Dequeue timer of 1000000.00us has expired!
[0:07:55.670362639] [1733] ERROR RPI pipeline_base.cpp:1336 Camera frontend has timed out!
[0:07:55.670432066] [1733] ERROR RPI pipeline_base.cpp:1337 Please check that your camera sensor connector is attached securely.
[0:07:55.670499775] [1733] ERROR RPI pipeline_base.cpp:1338 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!


pi@wazpi1:~ $ libcamera-still --list-cameras
Available cameras
-----------------
0 : ov5647 [2592x1944 10-bit GBRG] (/base/soc/i2c0mux/i2c@1/ov5647@36)
Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]

Statistics: Posted by wazzag — Wed Jul 17, 2024 7:35 am



Viewing all articles
Browse latest Browse all 4816

Trending Articles