Hi, I can’t get my AR1335 camera working on my Raspberry Pi at all. The driver doesn’t seem to work — the camera shows up but I can’t get it to capture anything. The OS was already set up for me, and I followed the Arducam instructions to install the driver, but no luck. Any idea what I’m doing wrong?
Sure, happy to help. A couple of things so I can narrow it down:
- Which OS image is the Pi running?
- What exact instructions did you follow to install the Arducam driver?
- Can you share your system log (the dmesg output) so I can see what’s happening when the driver loads?
Thanks. Here’s what I’ve got:
- OS: it’s a Raspberry Pi OS image that was set up for me before.
- Instructions I followed: https://www.arducam.com/emergent-v4l2-driver-for-the-lastest-rpi-update/
- System log: I’ve pasted the relevant part below:
[ 6.041233] arducam: module loaded
[ 6.042118] ar1335 10-0036: sensor detected, id 0x1335
[ 6.043902] arducam: sensor registered, waiting for stream
As for what I’ve tried: I ran arducamstill -t 0 with a few different image formats. UVYV seems fine, but when I try RGB3 it just tells me that format is not supported by the camera. Not sure if that’s expected.
Thanks, that log actually helps. I went ahead and tested an AR1335 on a Raspberry Pi 4 running Bullseye on my side, and I’m seeing something similar — I think the pixel format argument for arducamstill may have changed on the newer system.
Can you try running it with RGB888 instead of RGB3? Something like:
arducamstill -t 0 -pixfmt RGB888 -w 480 -h 640
Let me know what you get.
That did it! RGB888 works — I can capture now. So RGB3 was just the wrong format name for this system?
Exactly. On the Bullseye build (Pi 4), the naming for the pixel format argument changed. RGB3 was the value used on the older systems, but it’s no longer valid on Bullseye, which is why the camera reported “format not supported.” The fix is simply to swap RGB3 for RGB888:
arducamstill -t 0 -pixfmt RGB888 -w 480 -h 640
So to summarize: the command’s pixel format argument changed on Bullseye — replace RGB3 with RGB888 and you should be good.
Great, that clears up the capture issue. Could you also point me to the link for the OS image installed on the Raspberry Pi, and the exact driver installation instructions for the Arducam driver? I want to make sure I’m on the supported setup going forward.
No problem. Here are the references for the OBISP driver setup and the OS images:
- Driver installation and user guide for the OBISP:
https://www.arducam.com/docs/arducam-obisp-mipi-camera-module/3-use-on-raspberry-pi/3-0-emergent-temporary-driver-for-the-lastest-rpi-2020-12-02-update/ - Raspberry Pi OS Full (Bullseye, 2022-04-07):
Index of /raspios_full_armhf/images/raspios_full_armhf-2022-04-07 - Raspberry Pi OS Full (Buster, 2021-05-28):
Index of /raspios_full_armhf/images/raspios_full_armhf-2021-05-28
Use the Bullseye image for the current supported setup, and the Buster image if you’re on an older system. The driver guide above covers the install/build steps. Just remember the main gotcha you hit: on Bullseye use RGB888, not RGB3.