ERROR: *** no cameras available ***

Camera model

Arducam 12.3MP IMX477 HQ Camera Module

What is the problem?

Can't seem to get OctoPi to see this camera. USB webcam's work fine. I've tried multiple versions of the "New Stack" and same result.

pi@octopi:~ $ libcamera-hello
Preview window unavailable
[65:31:43.853088057] [18220] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f
ERROR: *** no cameras available ***

What did you already try to solve it?

Did the New Stack standard 1.9.* then went to Bookworm Versions and then found the most recent. 1.10.0rc4 and same result

Have you tried running in safe mode?

No

Did running in safe mode solve the problem?

N/A

Systeminfo Bundle

octoprint-systeminfo-20240415144058.zip (363.1 KB)

Additional information about your setup

OctoPrint version : 1.10.0rc4
OctoPi version : 1.0.0
Model: Raspberry Pi 3 Model B Rev 1.2
Ender 3v2
Arducam 12.3MP IMX477 HQ Camera Module

The OS probably needs a driver loaded. Arducams are third-party products so OctoPi (i.e. Raspberry Pi OS) probably doesn't have drivers by default (and OctoPrint doesn't have any camera drivers).

Try asking Arducam Support or the Arducam Forums.

Thank for your reply B-Morgan! I was under the impression they were already there with the libcamera library. When trouble shooting with the Bookwork versions this link was part of the setup.

https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/

I have a print running now. I'll install the drivers and see if that works. ::fingers cross::

Can we see a pic of it in action? I would like to see how you mounted to IMX477

1 Like

This is the file I used. Worked Great once the printer was dialed in.

ENDER 3 ARDUCAM PI CAM HQ IMX477 MOUNT AND X-AXIS LIMIT SWITCH COVER FOR KLIPPER CROWSNEST CAMERA

Probably should of got the camera working before setting it up :man_facepalming:



1 Like

Where did you find that mount? It looks so cool!

Click the link above.

This is my Current Config File. Things I've seen talk about adding: "dtoverlay=imx519" Is there a seperate ones for the IMX477?

arm_64bit=0
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

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

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

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

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

1 Like

PLEASE! When you upload code snippets, use the Preformatted Text feature of the forum editor:

Format

1 Like

The answer appears to be yes, there is dtoverlay=imx477. See https://www.raspberrypi.com/documentation/computers/camera_software.html#introducing-the-raspberry-pi-cameras.

Also, https://datasheets.raspberrypi.com/camera/picamera2-manual.pdf

This definitly did something! Feel Like I'm so close.

pi@octopi:~ $ libcamera-hello
Preview window unavailable
[0:02:30.857909816] [964]  INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4
[0:02:31.049138022] [966]  WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage!
[0:02:31.051561065] [966]  INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:02:31.051797103] [966]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:02:31.062762800] [964]  INFO Camera camera.cpp:1033 configuring streams: (0) 2028x1520-YUV420
[0:02:31.064051586] [966]  INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 32987.00 ag 8.00 dg 1.00
#1 (30.00 fps) exp 32987.00 ag 8.00 dg 1.00
#2 (30.02 fps) exp 32987.00 ag 8.00 dg 1.00
#3 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00
#4 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00
#5 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00

i@octopi:~ $ libcamera-still -t 5000
Preview window unavailable
[0:07:31.646042768] [1056]  INFO Camera camera_manager.cpp:297 libcamera v0.0.0+4367-ad9428b4
[0:07:31.812439462] [1058]  WARN RPI vc4.cpp:390 Mismatch between Unicam and CamHelper for embedded data usage!
[0:07:31.815094558] [1058]  INFO RPI vc4.cpp:444 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:07:31.815632733] [1058]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:07:31.821697818] [1056]  INFO Camera camera.cpp:1033 configuring streams: (0) 2028x1520-YUV420
[0:07:31.823272344] [1058]  INFO RPI vc4.cpp:572 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
#0 (0.00 fps) exp 32987.00 ag 8.00 dg 1.00
#1 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00
#2 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00
#3 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00
#4 (30.01 fps) exp 32987.00 ag 8.00 dg 1.00

Went to https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/OctoPrint/

Did steps 5.1, 5.2. On 5.3 I just uncommented what was there. Then did step 6 of replacing the "Webcamd file" Then Rebooted. Below is the end result with no success.

### Configuration of camera HTTP output
#
# Usually you should NOT need to change this at all! Only touch if you
# know what you are doing and what the parameters mean.
#
# Below settings are used in the mjpg-streamer call like this:
#
#   -o "output_http.so -w $camera_http_webroot $camera_http_options"
#
# Current working directory is the mjpg-streamer base directory.
#
camera_http_webroot="./www-octopi"
camera_http_options="-n"

# Configuration of network monitoring
#
# This enables network monitoring for wifi connections with a simple ping test.
# If connection terminates by variable reasons system tries to restart the wifi connection to reestablish a connection.
# The connection test is done every minute.
# By default it is disabled (0 = off / 1 = on)
# destination_host can be an ip address or a hostname (for hostname ensure dns resosultion is working correctly)
enable_network_monitor=0
destination_host=192.168.1.1

### EXPERIMENTAL
# Support for different streamer types.
#
# Available options:
#   mjpeg [default] - stable MJPG-streamer
#   hls - experimental FFMPEG HLS streamer
#camera_streamer=mjpeg
camera="libcamera"
camera_libcamera_options="-r 4056x3040"

Please advise, thank you!