Hey everyone, I’m using the Arducam 1MP2 Stereoscopic Camera Bundle Kit with two OV9281 global shutter monochrome modules and the Camarray stereo HAT. My scene can get pretty dark, so I need to increase the exposure time and/or gain on the cameras. Does this kit actually let you adjust exposure and gain? I went through the quick start guide but I only found how to change resolution@fps, nothing about exposure or gain.
Hi, which host platform are you running this on — Raspberry Pi, Jetson Nano, or Xavier NX? The OV9281 is a V4L2 device, so which controls are available depends on what the driver exposes. We can check that quickly with v4l2-ctl.
I’m running it on a Jetson Nano, and I’ve also tried it on a Xavier NX. Same Camarray HAT setup with the two OV9281s. I reviewed the quick start guide again and I only see resolution and fps being adjusted, so I wasn’t sure exposure and gain were even supported on this kit.
Got it. The quick start guide focuses on resolution/fps, but that doesn’t mean exposure/gain aren’t exposed. The way to confirm is to list all the controls the driver provides. Run this and check the output for exposure and gain entries:
v4l2-ctl -l
Okay, I ran v4l2-ctl -l and I can actually see exposure and gain in the list. So they do show up. How do I change the values from the command line?
You can set a control with the -c option, using the exact control name from the -l output:
v4l2-ctl -c [control_name] [value]
So if the list shows a control named exposure, you’d set it with something like v4l2-ctl -c exposure=xxx. Use the exact names shown in your output — if you paste them here I can help with the syntax.
That worked for a quick test. I was able to bump the exposure value up and the image got noticeably brighter in my dark scene, so it looks like the controls are adjustable on this kit.
Good to hear. To summarize: v4l2-ctl -l is the quick way to confirm which controls the OV9281 stereo kit actually exposes — that includes exposure and gain — and v4l2-ctl -c [control_name] [value] sets them. If a control doesn’t appear in the -l output, the driver isn’t exposing it, so that listing is always the first thing to check on a new setup.