Access Global Shutter Camera using external trigger snapshot mode
Global Shutter Camera having an external trigger function, which is used to capture the image and helps in synchronized streaming by connecting two or multiple cameras. In production applications (such as assembly line production), the external trigger mode can easily synchronize the camera with other devices. In addition, the sensor enables the sleep state will greatly reduce the power consumption.
1.Hardware
First of all, You need to solder the headers on the XVS and GND pins, XVS is connected to the external trigger signal, and GND is connected to the ground.
Note
It is required that the voltage of the trigger signal is 1.8V, you need to convert the 3.3V or 5V to 1.8V. The trigger signal pulse width tFSIN_High is not less than 2us, and the frequency cannot exceed the highest external trigger frame rate supported by the current frame rate.
2.Software
2.1 Start the camera with libcamera-still command
Note
We recommend a fixed exposure time to prevent automatic exposure from interfering with the external trigger working properly.
2.2 Enable the external trigger snapshot mode
2.3 Input the external trigger signal at XVS pin and capture the image
Note
The external trigger mode of the Pivariety OG02B10 Camera Module default setting is auto exposure, you can adjust the exposure time to capture a good image. Refer to the command to adjust the exposure time: libcamera-still -t 0 --shutter 100
2.4 Download and run the trigger script
wget -O trigger.py https://github.com/ArduCAM/MIPI_Camera/releases/download/trigger_v1.0/trigger.py
python3 trigger.py
Please confirm the pin XVS connected to the RPI’s Trigger Signal.