Skip to content

Sync lab

See how the eg-soc-stereo-210 lines up its two images and its IMU in time, and read the IMU data it writes into every frame. The factory’s sheet states two timing figures: the two image sensors are synchronised to within 1 µs, and the IMU is sampled 10 times per frame at 600 Hz. The timeline draws both. A toggle adds an unsynchronised pair, clearly marked as a comparison and not this camera, so you can see what the 1 µs figure saves. The decoder reads the sheet’s own example line, or lines you paste, into a table. Exposure time, the comparison offset and the speeds of a head and a hand are your assumptions, labelled as such. Every term links to the page of the field guide that explains it, and all of them are defined in its glossary.

Loaded: eg-soc-stereo-210 (60 fps, the two sensors within < 1 µs, IMU at 600 Hz with 10 samples per frame). Everything marked "your assumption" is a neutral starting value.

1 Timeline: exposures and IMU samples

Frame rate (the sheet's 30FPS/60FPS switch)

Frame period
IMU sample spacing
IMU samples per frame
This camera: head-turn shift between the two images
This camera: hand shift between the two images

Shift between the two images = time offset × speed. Turning: rate (°/s) × offset (s) × pixels per degree; a hand moving sideways: speed (m/s) × offset (s) ÷ distance (m) × f, with f = 618 pixels, measured on our robot cell (the sheet's 2.26 mm does not fit this lens). Both are for the image centre. The sheet's < 1 µs is an upper bound, so this camera's shifts are "less than". Read the error budget and exposure time and shutter sync in the field guide.

2 FID decoder: the IMU data in each frame

Decoded in your browser; nothing is sent anywhere. The gyroscope, accelerometer and temperature values are raw LSB counts, as the sheet describes them. The sheet gives no conversion factors, so this decoder does not convert them to °/s, g or °C: the scale depends on the full-scale range the IMU is set to, which the sheet does not state. Offsets are measured from the frame timestamp.

What “This camera” loads

The button sets only what the factory’s sheet for the camera’s board states:

Setting Value Where it comes from
Frame rate 60 fps, switchable to 30 fps Factory sheet (printed “3840* 1200 60fps”; photo label “30FPS/60FPS Switch”)
Sync between the two cameras within 1 µs Factory sheet (printed “两路 SENSOR 同步差<1us”: the difference between the two sensors is under 1 µs)
IMU rate 600 Hz, 10 samples per frame Factory sheet (printed “TDK45686 600HZ” and “IMU 每帧 10 次采样”)
IMU record in the video FID-<frame number>#<frame timestamp>#$<IMU data>$, 8 fields per sample, raw LSB values Factory sheet, page 6 (format and example line)
Focal length 618 px Measured on our robot cell (three cameras, 617 to 619 px). The sheet prints “F Length 2.26mm”, about 753 px on this sensor, which does not fit this lens (see the product page)
Pixel pitch 3.0 µm onsemi’s AR0234CS product page (“Pixel Size (µm)”: “3.0 x 3.0”), the sensor the sheet names; used as in the Lens lab

The sheet gives no exposure time and no speeds of motion; those are your assumptions. The button puts them back at neutral starting values (5 ms exposure, a head turning at 100 °/s, a hand moving at 1 m/s at 0.5 m, the same values the Lens lab starts with), which are not specifications of any camera.

Terms used on this page

  • Frame rate: frames per second. The frame period is the time between frames, 1000 ÷ frame rate in milliseconds.
  • Exposure time: how long the sensor collects light for one frame. It is separate from the frame period and sets motion blur.
  • Global shutter: every pixel of a sensor exposes over the same interval, so one exposure window describes the whole image. The sheet names a global-shutter sensor (AR0234).
  • Hardware sync: cameras (and often the IMU) driven from one trigger or one clock, so their samples line up without matching timestamps afterwards.
  • Timestamp: the time a system attaches to a sample. Which instant it marks varies by device.
  • IMU: an accelerometer and a gyroscope in one package. Its sample rate is how many readings it makes per second.
  • Camera–IMU time offset: the constant delay between the camera’s and the IMU’s timestamps, which calibration estimates.
  • LSB (least significant bit): one step of a sensor’s integer output. A raw value in LSB is the count before it is multiplied by a scale factor into physical units; the scale depends on the sensor’s full-scale range setting.
  • Pixels per degree: how many pixels one degree of view covers; at the image centre it is the focal length in pixels × π ÷ 180.

The timeline

The timeline puts the frames, the two exposures and the IMU samples on one time axis. Formulas:

  • Frame period (ms) = 1000 ÷ frame rate: 16.67 ms at 60 fps, 33.33 ms at 30 fps.
  • IMU sample spacing (ms) = 1000 ÷ 600 Hz = 1.667 ms.
  • IMU samples per frame = 600 ÷ frame rate: 10 at 60 fps, as the sheet states. At 30 fps the sheet does not say how the samples are grouped; the lab assumes the IMU stays at 600 Hz, so 20 per frame.
Frame rate Frame period IMU samples per frame IMU spacing
60 fps 16.67 ms 10 (the sheet) 1.667 ms
30 fps 33.33 ms 20 (assumed: 600 Hz continues) 1.667 ms

How the chart is drawn, and what is assumed:

  • Each exposure starts at the frame’s timestamp. The sheet calls the frame timestamp the time the frame starts; it does not say whether that is the start of exposure, so the chart’s placement is a drawing choice. For which instant to use as a frame’s time, see exposure midpoint.
  • The two cameras’ exposures are drawn on top of each other, with a 1 µs band on the right camera’s lane: the sheet gives the difference only as “under 1 µs”, not its exact value. Zoom in to a few microseconds to see the band.
  • The IMU samples are placed 0.128 ms after the frame timestamp and then every 1.667 ms, because that is the gap in the sheet’s one example line (frame at 3618.108718 s, first sample at 3618.108846 s). The sheet does not say whether that phase is fixed.

The sheet’s oscilloscope traces (its page 7) show the exposure of both cameras and the IMU trigger; the sheet gives no timing figures from them beyond the two above. How the cameras and the IMU can be tied to one clock is explained in IMU–camera hardware sync, and how a remaining camera–IMU delay is measured in Camera–IMU Time Offset.

Why the 1 µs matters: an unsynchronised pair for comparison

Stereo depth assumes both images show the scene at one instant (Why Synchronisation Matters). If one camera exposes later than the other while the head turns or a hand moves, the scene has already shifted in the second image, and the shift adds straight onto the disparity. The comparison toggle draws a second camera that is late by an offset you choose. It is a comparison, not this camera: this camera’s figure is the sheet’s < 1 µs.

Formulas, for the image centre (from the error budget):

  • Focal length in pixels, measured = 618 px. Pixels per degree at the centre = 618 × π ÷ 180 = 10.79 px/°.
  • Shift from a turning head (px) = rate (°/s) × offset (s) × 10.79.
  • Shift from a hand moving sideways (px) = speed (m/s) × offset (s) ÷ distance (m) × 618.

Worked example with the starting assumptions (head 100 °/s; hand 1 m/s at 0.5 m):

Offset between the two cameras Head-turn shift Hand shift
< 1 µs (this camera, the sheet’s bound) < 0.0011 px < 0.0012 px
1 ms (comparison) 1.1 px 1.2 px
5 ms (comparison) 5.4 px 6.2 px
16.67 ms, one frame at 60 fps (comparison) 18 px 21 px

Sums: 100 × 0.000001 × 10.79 = 0.0011; 1 × 0.000001 ÷ 0.5 × 618 = 0.0012; 100 × 0.005 × 10.79 = 5.4; 1 × 0.005 ÷ 0.5 × 618 = 6.2.

The FID line: IMU data inside the video

The sheet (page 6) says the camera writes the IMU data into the video itself, as text in each frame’s SEI (supplemental enhancement information, a standard place in H.264/H.265 streams for data that is not picture). Each frame carries one record:

FID-<frame number>#<frame timestamp>#$<IMU data>$

and each of the frame’s IMU samples, separated by spaces, has the form:

$<sample timestamp>,<gyroX>,<gyroY>,<gyroZ>,<accX>,<accY>,<accZ>,<temp>$

The sheet’s example (it shows the first of the frame’s 10 samples):

FID-217086#3618.108718#$3618.108846,2,-2,3,29,-44,1030,2656$ ...

What each field means, filled in from that example:

Field Meaning Example value
Frame number An integer that increases by 1 for each frame 217086
Frame timestamp The time the frame starts, in seconds, 6 decimal places 3618.108718 s
Sample timestamp The time of this IMU sample, in seconds, on the same clock 3618.108846 s
gyroX, gyroY, gyroZ The gyroscope’s three axes, raw LSB counts 2, −2, 3
accX, accY, accZ The accelerometer’s three axes, raw LSB counts 29, −44, 1030
temp The temperature reading, raw LSB count 2656

What the decoder computes for each sample:

  • Offset from the frame start (ms) = (sample timestamp − frame timestamp) × 1000. In the example: (3618.108846 − 3618.108718) × 1000 = 0.128 ms.
  • Gap from the previous sample (ms) = difference of the two sample timestamps × 1000; about 1.667 ms at 600 Hz.
  • Between two frames: frame-number step, time step and the frame rate it implies (frames ÷ seconds), about 60 fps at the 60 fps setting.

The decoder reads one record per line or several on a line, skips the “…” the sheet uses to mark left-out samples, and says in plain words what is wrong with a record it cannot read (missing “#”, a timestamp that is not a number, a sample without 8 fields, a raw value that is not a whole number). It works on text you paste; reading the SEI out of an MP4 needs a tool that extracts it first.

No conversion to physical units

The sheet gives no scale factors for the raw values, and does not say which full-scale range the IMU is set to. Physical units are the raw count divided by the sensitivity for that range, from the IMU maker’s datasheet (Full-scale range explains the trade-off). Without the configured range any conversion would be a guess, so the decoder shows raw counts only. The temperature field is a raw count too, not °C.

The sheet says the factory provides a decoder, icm_decode.exe, that scans a whole file for FID markers, parses each frame’s IMU data, converts it to physical units and writes the result to a text file; the sheet shows its output (per-sample timestamps, accelerations, angular rates, the raw values and the temperature in °C). The tool itself is not supplied with the sheet.

Read more in the field guide

The Recording lab works out how much of each file the IMU text takes, and the Lens lab covers field of view, stereo depth and motion blur for the same camera.

Sources

  • The factory’s specification sheet for the camera’s board, “The Camera Module Specification · Global shutter 1080P Dual-Lens synchronized”, version V1.0, dated 2026-08-20, 11 pages: frame rate and switch, the < 1 µs sync between the two sensors, IMU at 600 Hz with 10 samples per frame, the focal length, the FID format with its example line, and the description of icm_decode.exe. Not published here.
  • onsemi. AR0234CS product page: pixel size “3.0 x 3.0” µm.