sync camera timing precisely XVS test points on multiple rPi's
Posted: Wed Oct 20, 2021 6:21 am
tldr; should I tie the cameras XVS test points together so the multiple cameras take a picture at the exact same time?
What I want to do: use 3 stereo Pi's and 6 HQ cameras to take still pictures, with the same settings at exactly the same time. I am mostly interested in still photos at full resolution, but if it would work for video too, that would be amazing.
Questions: Is it worth using the XVS test points for triggering? How can I get the cameras to use the same settings across stereoPi's? (like iso(gain?), exposure, aperature, framerate?)
my plan: 1) start with one stereo pie and get hardware working, solder a wire to connect the XVS test points on each camera together.
2) try to config the sync on the two cameras
3) setup a second stereo pi with two cameras BOTH as trigger sinks and connect all XVS test points of the 4 cameras together.
4) tie grounds of two stereo Pi's together( will actually power them all from same source and ground)
5) tie picture trigger button of the two stereo Pi's together.
6) try to push the iso, aperature, exposure, framerate, other settings, from the master stereo pi to the other one.( best way? maybe a UART connection to the two stereo-pi's? not sure) sort of like a half-press on a DSLR but push settings to other rPi's.
7) basically repeat the setup for the 3rd stereo pi. seems like if I can get two working it will be the same process for any additional ones.
Thank you for any advice and help!
Lincoln
per this post you can make one camera a trigger source and the others trigger sinks: https://forums.raspberrypi.com/viewtopic.php?t=281913
I did read most of the thread but didn't fully understand it.... I hope enough will make sense when I get started.
_------------- some text from post below
Trigger Mode Sync
It is possible to synchronise the readouts of two or more imx477 sensors by wiring their XVS test points together. These devices can be on separate Pi boards, or can be on a Compute Module (CM) board with two sensors attached.
One camera must act as a trigger source, and the others act as trigger sinks. To set this up, the following parameter must be set in config.txt:
# Set to 0 to disable.
# Set to 1 to act as a trigger source device on a non-CM board.
# Set to 2 to act as a trigger sync device on a non-CM board.
#
# For a CM board, use imx477_trigger_mode:0=1 to set camera 0 as trigger source, or imx477_trigger_mode:0=2 to set camera 0 as trigger sync.
# Similarly, use imx477_trigger_mode:1=1 to set camera 1 as trigger source, or imx477_trigger_mode:1=2 to set camera 1 as trigger sync.
imx477_trigger_mode
What I want to do: use 3 stereo Pi's and 6 HQ cameras to take still pictures, with the same settings at exactly the same time. I am mostly interested in still photos at full resolution, but if it would work for video too, that would be amazing.
Questions: Is it worth using the XVS test points for triggering? How can I get the cameras to use the same settings across stereoPi's? (like iso(gain?), exposure, aperature, framerate?)
my plan: 1) start with one stereo pie and get hardware working, solder a wire to connect the XVS test points on each camera together.
2) try to config the sync on the two cameras
3) setup a second stereo pi with two cameras BOTH as trigger sinks and connect all XVS test points of the 4 cameras together.
4) tie grounds of two stereo Pi's together( will actually power them all from same source and ground)
5) tie picture trigger button of the two stereo Pi's together.
6) try to push the iso, aperature, exposure, framerate, other settings, from the master stereo pi to the other one.( best way? maybe a UART connection to the two stereo-pi's? not sure) sort of like a half-press on a DSLR but push settings to other rPi's.
7) basically repeat the setup for the 3rd stereo pi. seems like if I can get two working it will be the same process for any additional ones.
Thank you for any advice and help!
Lincoln
per this post you can make one camera a trigger source and the others trigger sinks: https://forums.raspberrypi.com/viewtopic.php?t=281913
I did read most of the thread but didn't fully understand it.... I hope enough will make sense when I get started.
_------------- some text from post below
Trigger Mode Sync
It is possible to synchronise the readouts of two or more imx477 sensors by wiring their XVS test points together. These devices can be on separate Pi boards, or can be on a Compute Module (CM) board with two sensors attached.
One camera must act as a trigger source, and the others act as trigger sinks. To set this up, the following parameter must be set in config.txt:
# Set to 0 to disable.
# Set to 1 to act as a trigger source device on a non-CM board.
# Set to 2 to act as a trigger sync device on a non-CM board.
#
# For a CM board, use imx477_trigger_mode:0=1 to set camera 0 as trigger source, or imx477_trigger_mode:0=2 to set camera 0 as trigger sync.
# Similarly, use imx477_trigger_mode:1=1 to set camera 1 as trigger source, or imx477_trigger_mode:1=2 to set camera 1 as trigger sync.
imx477_trigger_mode