B0353 external trigger not working on Raspberry Pi CM4: camera keeps capturing without trigger

Hi all, I’m having trouble with the external trigger on my Arducam B0353 global shutter camera. When I run the sample code from the external trigger example, the camera just keeps capturing images on its own — it doesn’t wait for my trigger signal at all. Is there a way to keep the camera listening for the trigger continuously, without any timeout? I’d really like it to sit idle until a trigger comes in.

Hey, welcome to the forum. Let’s figure this out. Can you share a bit more about your setup — what platform are you running on, OS/kernel version, and which example are you following? Also, what exactly happens when you run the code — does it start saving frames immediately?

Sure. I’m running it on a Raspberry Pi CM4, 64-bit, kernel 6.6, Debian 12 (bookworm). I followed the external trigger example here: External Trigger Mode - Arducam Wiki. Honestly I’ve never gotten it to work. Just to make sure I understand the logic: when the GPIO is HIGH (1.8 V), the camera is not in the ‘FLOAT status’ and won’t capture, and to capture an image I need to pull GPIO LOW for about 1 ms — is that right? Also, does the trigger have to be 1.8 V, or can I feed it a 3.3 V signal? And what’s the maximum timeout I can set?

Right, the reason it keeps capturing when you run the sample with nothing connected is that the camera is sitting in FLOAT status — in that state it just saves pictures continuously. Before running the sample code, wire the XVS pin to GND so it’s not floating. That should stop the constant captures and let it wait for a proper trigger edge.

Thanks, I wired XVS to GND and the continuous saving stopped. Now I can see it waiting for the trigger. But I still need to sort out the signal side — can I drive it with a 3.3 V GPIO from another board, or do I need exactly 1.8 V? And I still haven’t found a clear answer on the maximum timeout value for the trigger wait.

For the trigger signal: the spec requires 1.8 V. A 3.3 V or 5 V signal should be converted down to 1.8 V — though in practice a 3.3 V signal is acceptable to some extent. Also make sure the trigger pulse width (TTPW) is not less than 2 µs, and the trigger frequency must not exceed the highest external trigger frame rate supported at your current frame rate setting.

Got it on the voltage and pulse width. So about the timeout — is there a maximum value I can set, or can I make it wait indefinitely for a trigger? That’s the part I’m still stuck on.

To answer that directly: no, you can’t keep the camera listening for a trigger without a timeout. There’s no documented maximum timeout value you can set, but if you want to deploy the external trigger function, a timeout is inevitable — the wait isn’t unlimited. So the practical setup is: convert your 3.3 V/5 V signal to 1.8 V (3.3 V is borderline okay), keep the pulse width >= 2 µs, keep the trigger frequency within the supported external trigger frame rate for your current frame rate, and wire XVS to GND so the line isn’t floating while you wait.