Arducam OV9782 USB UVC camera on Linux uvcvideo: external trigger mode not working, sync pin always low

I’m trying to get my Arducam OV9782 USB UVC camera (model B0385, USB VID:PID 0c45:6366) working in external trigger mode and I’m hitting a wall. Hoping someone here has been through this.

Hardware setup:

  • Arducam OV9782 USB Camera, model B0385
  • USB VID:PID: 0c45:6366 (shows up as Microdia Arducam OV9782 USB Camera)
  • Ubuntu 20.04, kernel 5.15.168, using the uvcvideo driver
  • External pulse generator feeding the F pin (trigger in) — I’ve confirmed the pulses are reaching the pin with both an oscilloscope and logic analyzer
  • S pin (sync out) shows absolutely nothing — flatline

The camera seems to just free-run regardless of what I do. Frame timestamps from v4l2-ctl don’t align with the trigger frequency at all, and frames keep coming even when I turn the pulse generator completely off.

Here’s what I’ve tried so far:

  1. Basic v4l2-ctl configuration:

v4l2-ctl -d /dev/video0
–set-fmt-video=width=1280,height=800,pixelformat=MJPG
–set-parm=30
-c auto_exposure=1
-c exposure_time_absolute=100/150/250/500
-c exposure_dynamic_framerate=0/1

v4l2-ctl -l only shows standard UVC controls: auto_exposure, exposure_time_absolute, exposure_dynamic_framerate. Nothing about trigger mode. No exposure_auto_priority control anywhere. uvcdynctrl --clist doesn’t reveal any vendor-specific XU controls either.

  1. Tried the ArduCAM_Ext_Trigger_Demo from the ArduCAM_USB_Camera_Shield repo. Compiled it (had to fix some OpenCV 4 cvWaitKey issues). When I run it with “trigger_mode”: 1 in the YAML config, it just crashes:

device num: 0
Found 0 devices.
free(): invalid pointer
Aborted (core dumped)

So the SDK doesn’t seem to recognize this UVC camera at all.

  1. Detailed timing observations:
  • With 30 Hz pulses: frame deltas are ~32–60 ms, drifting around 30 FPS — looks like normal free-run, definitely not 1 pulse = 1 frame
  • With 10 Hz pulses and exposure_time_absolute=250/500: frame deltas ~100 ms (~10 FPS), which sort of looks like internal pacing but it’s not locked to the trigger
  • Frames still arrive when the pulse generator is off
  • S pin never toggles, regardless of what’s happening on F
  • Oddly, with exposure_time_absolute set to 250–500 ms, I still get ~8–10 FPS — that shouldn’t be possible if exposure is really 500 ms (max would be 2 FPS)

Has anyone successfully gotten external trigger working on this camera? Am I missing some hidden control, or is there a firmware issue?

Thanks for the detailed report. I can confirm a few things from our side:

  • The Arducam OV9782 UVC camera module (B0385, 0c45:6366) does support external trigger mode.
  • Pin F is the trigger input, Pin S is the strobe/sync out.
  • The SDK external trigger demo from the ArduCAM_USB_Camera_Shield repo is not compatible with this UVC device, so that crash is expected unfortunately.

For this camera, the trigger mode is controlled entirely through UVC controls via v4l2-ctl — no SDK needed.

First, make sure your hardware connection is correct. You need both Pin F and Pin G connected to your signal generator. The connection diagram is here:
https://docs.arducam.com/UVC-Camera/Appilcation-Note/External-Trigger-Mode/OV9782-Global-Shutter/#step2-hardware-connection

Then try this sequence:

Step 1: Open camera preview (VLC or qv4l2) so you can see the feed

Step 2: List devices

v4l2-ctl --list-devices

Step 3: Check current controls

v4l2-ctl -l

Step 4: Disable auto exposure

v4l2-ctl -c exposure_auto=1

Step 5: Set exposure value

v4l2-ctl -c exposure_absolute=500

Step 6: Enable external trigger snapshot mode

v4l2-ctl -c exposure_auto_priority=1

After those steps, the preview framerate should correspond to your trigger signal frequency — one frame per trigger pulse.

A heads-up: the control names I’ve listed above (exposure_auto, exposure_absolute, exposure_auto_priority) are from our documentation and may differ from what your device actually exposes depending on the firmware version. Our docs are a bit out of date on this and we’re working on updating them. Let me know what v4l2-ctl -l actually shows on your system.

Thanks for the response. I followed the hardware connection guide — F and G are connected to the pulse generator, that part is fine.

But the control names in your procedure don’t match what my camera actually exposes. Here’s the full output of v4l2-ctl -l on my device:

User Controls:
brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=0
contrast 0x00980901 (int) : min=0 max=64 step=1 default=32 value=32
saturation 0x00980902 (int) : min=0 max=128 step=1 default=90 value=90
hue 0x00980903 (int) : min=-40 max=40 step=1 default=0 value=0
white_balance_automatic 0x0098090c (bool) : default=1 value=1
gamma 0x00980910 (int) : min=72 max=500 step=1 default=100 value=100
gain 0x00980913 (int) : min=0 max=100 step=1 default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=2
0: Disabled / 1: 50 Hz / 2: 60 Hz
white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600 flags=inactive
sharpness 0x0098091b (int) : min=0 max=6 step=1 default=3 value=3
backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=1 value=1

Camera Controls:
auto_exposure 0x009a0901 (menu) : min=0 max=3 default=3 value=1
1: Manual Mode / 3: Aperture Priority Mode
exposure_time_absolute 0x009a0902 (int) : min=1 max=5000 step=1 default=157 value=250
exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=1

There is no exposure_auto, no exposure_absolute, and no exposure_auto_priority anywhere. I’m guessing:

  • auto_exposure=1 (Manual Mode, I changed it from the default of 3) maps to exposure_auto?
  • exposure_time_absolute maps to exposure_absolute?
  • exposure_dynamic_framerate=1 maps to exposure_auto_priority?

I went ahead and applied what I think are the equivalents:

auto_exposure=1
exposure_time_absolute=250
exposure_dynamic_framerate=1

With a 10 Hz pulse on the F pin, I’m getting ~9.x fps which is close to 10 Hz. But here’s the thing — the S pin still generates absolutely no signal. Flatline. Without the S pin toggling, I can’t really confirm the trigger mode is actually engaged (as opposed to just the framerate coincidentally matching).

Is my mapping of the control names correct? And any idea why the S pin remains dead?

I checked with our engineering team on this and they’ve confirmed: your deductions about the control name mappings are exactly right. A recent firmware update renamed these controls and our documentation hadn’t caught up yet (they’re fixing it now thanks to your report).

Here’s the confirmed mapping:

  • auto_exposure=1 (Manual Mode) → was exposure_auto
  • exposure_time_absolute → was exposure_absolute
  • exposure_dynamic_framerate=1 → was exposure_auto_priority ← THIS IS THE KEY ONE for enabling external trigger

So the procedure with the new control names should be:

v4l2-ctl -c auto_exposure=1
v4l2-ctl -c exposure_time_absolute=500
v4l2-ctl -c exposure_dynamic_framerate=1

It sounds like you were already applying the right settings. The ~9.x fps you’re seeing at 10 Hz trigger is actually a good sign — it suggests the camera is trying to sync to the trigger pulses. But the S pin not toggling is definitely not expected.

Can you test at a few different frequencies (say 1 Hz, 10 Hz, 30 Hz) and confirm whether the S pin stays dead across all of them? That’ll help narrow things down.

Just ran through all three frequencies — 1 Hz, 10 Hz, and 30 Hz — with the confirmed settings applied:

v4l2-ctl -c auto_exposure=1
v4l2-ctl -c exposure_time_absolute=500
v4l2-ctl -c exposure_dynamic_framerate=1

Format is MJPEG at 1280x800.

The S pin is completely inactive at all three frequencies. Not a blip. Meanwhile the F pin is getting clean pulses (verified on the scope).

So the trigger input is definitely receiving signal, the controls are confirmed correct by your engineering team, but the strobe output is just dead. Starting to wonder if there’s something electrical going on — is the S pin perhaps open-drain? If it’s an open-drain output with no internal pull-up, I wouldn’t see any voltage change on my scope even if the pin is internally toggling. I’d need an external pull-up resistor to 3.3V to see anything.

Is that the case here? And is there any documentation available on the S pin’s electrical characteristics — drive strength, open-drain vs push-pull, recommended pull-up value, anything like that?

That’s a really good line of thinking and honestly it might explain what you’re seeing. I don’t have the electrical spec for the S pin immediately in front of me, but an open-drain configuration would be consistent with what you’re describing — the pin toggles internally but without a pull-up there’s nothing for your scope to measure.

Let me dig into this with the hardware team. In the meantime, if you have a resistor handy, it’s worth trying a pull-up to 3.3V. Something in the 4.7k–10k range would be a reasonable starting point — connect between the S pin and 3.3V, then scope the S pin again while triggering. If the S pin is open-drain, you should start seeing clean toggling edges at your trigger frequency.

I’ll get back to you as soon as I have the official electrical characteristics for that pin. The documentation for the strobe output behavior (open-drain vs push-pull, voltage levels, max current) isn’t in the current public docs, so I’m chasing that down internally.