Sorry for the cross-post, hope that’s ok. Here’s the link to the original thread: Light Source control with ARDUINO - Timing Issues - Usage & Issues - Image.sc Forum
I have been working on setting up a system where we will have multiple light source imaging the same sample, with the plan of quickly switching between them.
To do so, I have set-up an ARDUINO UNO board to send TTL triggers to (for example) ThorLabs LED cubes and then have set up channels in the MDA panel to switch between them. To further control the accuracy of my setup, I have connected the triggers to an oscilloscope to see what happens.
For example, a typical imaging cycle could be:
- Light Source 1 ON, Light Source 2 OFF - expose for 25ms
- Light Source 1 OFF, Light Source 2 ON - expose for 25ms
My expectation for this is that on the oscilloscope I would see a very clear and stable square wave for the duration of the image acquisition. However, that is not the case and the period during which the two light sources are on vary, with them often being on for longer then needed/expected - this concerns me in particular due to the fact that I would be using the data to track moving particles i.e. I need to be able to rely on frames being equally spaced etc.
I should also note that the camera I’m planning on using does have any TTL outputs - which I’m afraid might complicate things for me.
Thanks in advance for all the help!