Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4872

Camera board • Re: Using Global Shutter camera to trigger external hardware

$
0
0
Thanks. That helped. There is a little burst of trigger pulses between picam2.start() and picam2.stop(). In part, I can reduce these by setting a long framerate value, but I am not sure it is an elegant solution.

Ultimately, I would like to capture individual images at a reasonable rate (say, 30 images per second) but correlate those images with the externally triggered hardware. For example, trigger red light and record 'red' image; next trigger blue light and record 'blue' image; and so forth with a code that looks something like

Code:

for i in range(30):picam2.capture_file(f"{i}.jpg") # XVS triggers hardware and records resulting image to filetime.sleep(0.03) # rough 30 images per second (assuming no internal delays)
I can see that using XVS pin might not be the way to go to do this (as I might need a short delay between trigger and capture to allow hardware to respond) so I will investigate alternatives.

Statistics: Posted by dwh — Wed Aug 21, 2024 4:06 pm



Viewing all articles
Browse latest Browse all 4872

Trending Articles