# C203 Lesson 2: Sync on One Rig

> The second lesson of the C203 time sync course: syncing sensors you can wire together, with hardware triggers, sensor frame-sync pins and genlock; why a trigger that only selects the next frame is not exposure sync; exposure midpoints; putting cameras and IMU on one clock; what USB cameras do and do not give you; and catching dropped frames.

Page: https://egocam.ai/university/c203/lesson-2-sync-on-one-rig/

Sensors you can wire together should be synced with a wire. Hardware synchronisation is the most accurate kind of sync, and the only kind that makes exposures truly simultaneous. This lesson covers what a wire can and cannot do on one rig, and what to check in a camera's documentation before relying on it. The full treatment is on [Hardware Synchronisation](https://egocam.ai/sync/hardware-sync/).

Current head rigs work this way. The field guide's [PTP page](https://egocam.ai/sync/ptp-and-network-time/) cites RoboCap, whose head cameras are exposed "from a single PWM frame-synchronization signal generated by the main controller" ([Ali et al., 2026](https://arxiv.org/abs/2610.07217)). If your head and wrist cameras are wired to one board, this lesson is the whole story for them; if they are separate devices, lessons 3 and 4 take over.

## Terms used in this lesson

See also the [glossary's synchronisation section](https://egocam.ai/reference/glossary/#synchronisation-and-timing).

| Term | Meaning |
|---|---|
| Hardware trigger | An electrical pulse on a camera's trigger input that tells it when to capture |
| Strobe output | A camera output line that changes state when the camera exposes |
| Primary and secondary | A camera whose strobe triggers others, and the cameras that follow it (older names: master and slave) |
| Frame-sync pins | Sensor-level timing pins, named XVS, XHS or FSIN depending on the vendor |
| Genlock | Locking frame timing to an external reference; in machine-vision documentation, a trigger that directly starts exposure |
| UVC | USB Video Class, the standard most USB webcams follow |
| Sequence number | A per-frame counter that lets software detect dropped frames |

## Triggers: one pulse, every camera

In trigger mode a camera does not free-run; it waits for a pulse and then captures. Feed the same pulse to several cameras and they capture together. Teledyne FLIR's application note defines the goal: "Synchronized capture is when two or more cameras are capturing images at the same time (within microseconds of each other)", and describes two sources for the pulse: the strobe output of one primary camera, or an external source, since "Any hardware trigger that provides a 3.3 V or 5 V square wave TTL signal can trigger the cameras" ([TAN2016008](https://www.teledynevisionsolutions.com/globalassets/support/iis/application-notes/tan2016008-configuring-synchronized-capture.pdf)).

The details that trip people up are electrical and modal ([Hardware trigger](https://egocam.ai/sync/hardware-sync/#hardware-trigger-primary-and-secondary-cameras)):

- **Output type.** Opto-isolated or open-drain strobe outputs need a pull-up resistor to drive another camera's input: they can pull the line low but not drive it high, so without the resistor the line floats.
- **Trigger overlap.** A secondary that cannot accept a trigger while still reading out skips every other pulse. FLIR lists the symptom: "Secondary camera captures images at half the frame rate of the primary camera".
- **Logic levels.** Inputs differ: the Raspberry Pi Global Shutter Camera's trigger is "a 1.8 V input, so you might need a level shifter or potential divider" ([Raspberry Pi](https://www.raspberrypi.com/documentation/accessories/camera.html#external-trigger)).

Below the camera module, many image sensors have frame-timing pins of their own (XVS, XHS, FSIN). What each pin does, and whether a module brings it out, is specific to the sensor and board, so the only safe guide is the vendor's documentation ([Sensor-level frame sync](https://egocam.ai/sync/hardware-sync/#sensor-level-frame-sync-xvs-xhs-and-fsin)). Raspberry Pi adds a rule that applies widely: "always specify a fixed shutter duration, to ensure the AGC doesn't try to adjust the camera's shutter speed" ([Raspberry Pi: wired synchronisation](https://www.raspberrypi.com/documentation/computers/camera_software.html#wired-synchronisation)).

## A trigger is not always exposure sync

Read what the trigger actually does. FRAMOS documents two modes on its D400e depth cameras ([Genlock](https://egocam.ai/sync/hardware-sync/#genlock)):

| Mode | What the trigger does | Timing error |
|---|---|---|
| External Event | The camera keeps running "in continuous mode at the requested frame rate" and on a pulse "sends the next frame generated to the host" | "will never exceed the 1 frame readout time": up to 33.33 ms at 30 Hz |
| Genlock | "the input trigger signal starts the exposure window on the image sensor" | a fixed pulse-to-exposure delay, about 790–880 µs depending on resolution |

A trigger that only selects the next free-running frame leaves up to a frame of jitter. Look for wording like "starts the exposure" in a camera's documentation ([FRAMOS](https://docs.framos.com/en/latest/D400e/ApplicationGuides/ExternalEventCameraSynchronization.html)).

## Same start, different midpoints

A common trigger makes exposures *start* together. They only *happen* together when every camera uses the same exposure time. There are three fixes ([Exposure time and shutter sync](https://egocam.ai/sync/hardware-sync/#exposure-time-and-shutter-sync)):

1. **Fix the exposure** to the same manual value on every camera.
2. **Timestamp the midpoint.** TUM-VIE's microcontroller "triggers the visual cameras, measures exposure start and stop timestamps and reads the IMU values", and the dataset defines "the timestamp of an image as mid-exposure point" ([Klenk et al., 2021](https://arxiv.org/abs/2108.07329)).
3. **Shift each trigger** so the midpoints align, as VersaVIS does: "The idea is to trigger the camera for a periodic mid-exposure timestamp by starting exposure half the exposure time earlier to its mid-exposure timestamp" ([Tschopp et al., 2020](https://arxiv.org/abs/1912.02469)).

> **Diagram:** Two cameras triggered at the same instant but exposing for 1 ms and 10 ms. Their exposure midpoints, the instants the frames best represent, are 4.5 ms apart (top). Starting the longer exposure half its length earlier, as exposure-compensated triggering does, puts both midpoints at the same instant (bottom).

## Cameras and IMU on one clock

The IMU needs the same treatment as a second camera. Kalibr's camera–IMU guide asks for "low jitter timestamps in same clock" ([Kalibr](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration)). The common patterns are one controller that triggers the cameras and samples the IMU, a controller that timestamps the IMU's data-ready interrupt, and a controller that timestamps each camera's strobe on the IMU's clock ([IMU–camera hardware sync](https://egocam.ai/sync/hardware-sync/#imucamera-hardware-sync)).

Hardware sync removes jitter, but constant delays inside the sensors remain. TUM-VIE found that "due to the IMU readout delay, there exits a constant offset of 4.77 milliseconds" even with everything on one clock ([Klenk et al., 2021](https://arxiv.org/abs/2108.07329)). Estimating that remaining offset is course C202 and the [Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/) page.

## USB cameras: timestamps, not exposure sync

Many small cameras are UVC devices. UVC defines an optional presentation timestamp, "the source clock time in native device clock units when the raw frame capture begins", and a source clock reference that lets the host relate the camera's clock to its own ([UVC 1.5](https://www.usb.org/document-library/video-class-v15-document-set)). Two points from the [USB section](https://egocam.ai/sync/hardware-sync/#usb-cameras-and-uvc):

- Even a perfect timestamp is on the camera's own clock. UVC does not make two cameras expose together.
- On Linux, `uvcvideo` stamps buffers with a host clock by default, so the time carries USB and operating-system jitter. VersaVIS measured its own serial-over-USB link: the clock residual "keeps oscillating at ±5 ms due to usb jitter" ([Tschopp et al., 2020](https://arxiv.org/abs/1912.02469)).

If a USB camera's datasheet does not document a trigger or sync input, assume it has none.

## Dropped frames break every scheme

Any sync that counts frames fails silently when a frame goes missing. USB bandwidth is shared by everything on a controller, and Raspberry Pi's software-sync notes say "at higher framerates or depending on system load, it is possible for frames, either on the clients or server, to be dropped". In RocSync's field recordings, the one failure in 73 was caused not by the sync method "but rather to frame drops in the recordings from the Aria glasses" ([Meyer et al., 2025](https://arxiv.org/abs/2511.14948)). V4L2 buffers carry a `sequence` number, "counting the frames (not fields!) in sequence", which lets software detect gaps ([V4L2 buffers](https://docs.kernel.org/userspace-api/media/v4l/buffer.html); [Bandwidth and dropped frames](https://egocam.ai/sync/hardware-sync/#bandwidth-and-dropped-frames)). Lesson 4 and the lab check every stream for them.

## What it asks of the hardware

If a rig is being designed rather than assembled, the field guide's [hardware list](https://egocam.ai/sync/hardware-sync/#what-it-asks-of-the-hardware) fixes most choices at the start: bring out the trigger; one clock for the cameras and the IMU; stamp the exposure, not the arrival; keep a per-frame counter; keep the sync signal running during recording.

## Self-check

1. A camera's manual says its trigger input makes it send the next frame to the host. What timing error should you expect at 30 fps?
2. Two cameras share a trigger, but one runs auto-exposure. Name two fixes.
3. Your head rig triggers its cameras and samples its IMU on one microcontroller clock. Do you still need a camera–IMU time offset?
4. You plug two UVC webcams into one computer and record both. What do you have: synchronised exposures, synchronised timestamps, or neither?
5. Why check frame counters before fitting any clock model?

### Answers

1. Up to one frame, 33.3 ms: a trigger that selects the next free-running frame is not exposure sync.
2. Any two of: fix the same manual exposure on both; timestamp each frame's exposure midpoint; shift each trigger by half the exposure so the midpoints align.
3. Yes. Constant delays inside the sensors, such as IMU readout or filter delay, remain and must be calibrated.
4. Host timestamps on one clock, with USB and OS jitter, and no exposure sync: each camera free-runs on its own crystal.
5. A dropped or duplicated frame shifts every later frame's assumed time; a model fitted over it is wrong.

## Sources

- Field guide: [Hardware Synchronisation](https://egocam.ai/sync/hardware-sync/), [PTP and Network Time Sync](https://egocam.ai/sync/ptp-and-network-time/), [Camera-IMU Time Offset](https://egocam.ai/calibration/camera-imu-time-offset/), [glossary](https://egocam.ai/reference/glossary/#synchronisation-and-timing).
- Ali, Q. et al. (2026). [RoboCap: A new platform for egocentric robot learning](https://arxiv.org/abs/2610.07217). arXiv.
- Teledyne FLIR (2017). [TAN2016008: Configuring synchronized capture](https://www.teledynevisionsolutions.com/globalassets/support/iis/application-notes/tan2016008-configuring-synchronized-capture.pdf). Application note.
- Raspberry Pi. [Camera hardware documentation](https://www.raspberrypi.com/documentation/accessories/camera.html#external-trigger) and [camera software: wired synchronisation](https://www.raspberrypi.com/documentation/computers/camera_software.html#wired-synchronisation).
- FRAMOS. [External event camera synchronization (D400e)](https://docs.framos.com/en/latest/D400e/ApplicationGuides/ExternalEventCameraSynchronization.html).
- Klenk, S., Chui, J., Demmel, N. and Cremers, D. (2021). [TUM-VIE: The TUM stereo visual-inertial event dataset](https://arxiv.org/abs/2108.07329). *IEEE/RSJ IROS*.
- Tschopp, F. et al. (2020). [VersaVIS: An open versatile multi-camera visual-inertial sensor suite](https://arxiv.org/abs/1912.02469). *Sensors*.
- Kalibr wiki, ETH Zurich ASL: [camera–IMU calibration](https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration).
- USB Implementers Forum. [USB Video Class 1.5 document set](https://www.usb.org/document-library/video-class-v15-document-set).
- Linux kernel documentation. [V4L2 buffers](https://docs.kernel.org/userspace-api/media/v4l/buffer.html).
- Meyer, J. et al. (2025). [RocSync: Millisecond-accurate temporal synchronization for heterogeneous camera systems](https://arxiv.org/abs/2511.14948). arXiv.
