Cannot set exposure for Arducam B0266 cameras on Jetson Nano via Python/V4L2

I’m running an Arducam B0266 on a Jetson Nano dev kit (Linux) and I can’t get exposure control working from Python. I followed the Jetvariety multi-camera quick-start guide and I’m capturing/timestamping frames with OpenCV. The cameras will be on a moving vehicle, so they need to adapt to changing light — auto-exposure would be ideal, or at least manual exposure control. The only place I’ve actually been able to change exposure/gain is inside VLC by following the tutorial. I tried the V4L2 library in Python but it has zero effect on the exposure. I mainly want to lower the exposure so the frames aren’t so bright/washed out. Honestly I’ve never gotten this to work properly.

Since the V4L2 library calls aren’t taking effect, try driving v4l2-ctl from Python using subprocess. Example:

import subprocess

Set the exposure value

exposure_value = 500 # microseconds

Set the gain value

gain_value = 1.5

Set the path to the video device

video_device = ‘/dev/video0’

Set exposure

exposure_command = f’v4l2-ctl -d {video_device} -c exposure_absolute={exposure_value}’
subprocess.run(exposure_command, shell=True)

Set gain

gain_command = f’v4l2-ctl -d {video_device} -c gain={gain_value}’
subprocess.run(gain_command, shell=True)

Before running it, check which controls actually exist with:
v4l2-ctl -d /dev/video0 --list-ctrls

If exposure_absolute or gain aren’t in that list, or the values don’t stick, that tells us the driver isn’t exposing those controls.

Thanks, I’ll test that. For context, I’m saving timestamped image sequences that get post-processed with visual odometry algorithms later — that’s why consistent exposure matters a lot. I also tried going through the Jetson ISP using nvcamerasrc in a GStreamer pipeline with OpenCV, but it reports ‘no cameras are available’. If I switch the same pipeline to v4l2src it works fine. Any idea why nvcamerasrc can’t see the camera?

That nvcamerasrc error is expected — the Jetvariety camera doesn’t support being accessed through GStreamer/nvcamerasrc, which is why v4l2src works but nvcamerasrc doesn’t. For auto exposure, first check what the driver actually exposes:

v4l2-ctl -d /dev/video0 --list-ctrls

If there’s an auto exposure control in that list, we can configure it. If it’s not listed, then auto exposure can’t be controlled on this module.

I ran v4l2-ctl -d /dev/video0 --list-ctrls and went through the user controls. I can see exposure and gain type entries, but there’s no auto exposure anywhere in the list. Is that expected for this camera?

Yes, that’s expected unfortunately. The Jetvariety modules don’t have a built-in ISP, and the product pages don’t list ISP features like auto exposure. So auto exposure just isn’t available on this line. Given that you need a stereo pair of global shutter cameras with auto exposure outdoors on a moving vehicle, this setup won’t meet the requirement — you’d be looking at different hardware.

That’s a problem, because I can’t rely on a camera without auto-exposure for visual odometry on a public road. Do you have an all-in-one set that fits? The Jetvariety series was advertised as working with Nvidia drivers, but it clearly doesn’t work with Nvidia GStreamer. I need to use the Jetson ISP, and I also need hardware-level synchronization between a stereo pair of global shutter cameras. Is there a specific kernel or driver that would make Nvidia GStreamer work with these, or is that a dead end?

For global shutter, I’d look at UVC global shutter modules instead. Two options that come to mind: the Arducam 120fps Global Shutter USB Camera Board 1MP 720P OV9281 UVC module with low distortion M12 lens, and the Arducam 2.3MP AR0234 Color Global Shutter USB 3.0 module. I’ve sent you the product links in a private message so you can check the specs.

Thanks. Can two of those UVC global shutter cameras actually be run as a hardware-synchronized stereo pair with ISP functionality enabled? And is there any CSI camera that meets the same requirements — hardware sync plus ISP/auto exposure?

Two of those UVC modules as a synchronized stereo setup would require customization — it’s not available off the shelf. And the Jetvariety CSI modules don’t have ISP functionality enabled, so there’s no CSI option in that line that gives you auto exposure. If you want to pursue the stereo UVC route, I’ve sent you the sales contact details privately — they can walk you through the customization options.

I need a concrete recommendation. Let me drop the hardware synchronization requirement and drop the Jetvariety series entirely. Remaining requirements: Jetson Nano 8GB official dev kit, CSI connection preferred (USB okay if necessary), global shutter, ISP functionality — especially auto-exposure, either built into the camera or using the Jetson ISP — software-level synchronization, and minimum 30fps capture. Would the same set also work on a Jetson Orin Nano 8GB with the DSBOARD-ORNX carrier board and JetPack 5.1.1? Side question: can the Jetvariety cameras be used without the Camarray HAT, connected directly to the Jetson board?

To summarize where we’ve landed: the B0266/Jetvariety modules won’t meet this because they have no built-in ISP and no auto-exposure control, and GStreamer/nvcamerasrc access isn’t supported (v4l2src only). The most you can do on the current module is manual exposure_absolute/gain through v4l2-ctl. For global shutter with ISP/auto-exposure, the UVC modules are the direction we discussed, but a hardware-synchronized stereo pair needs customization rather than an off-the-shelf setup. I’ve sent you the details privately to follow up on a specific pair that matches the Jetson Nano and Orin Nano requirements, and I’ll also get the Camarray HAT question confirmed for you.