Hello,
I would like to extend an existing project with Arduino Uno and line sensor TSL1401 (Arduino Spectroscope With TSL1401 and Display : 4 Steps - Instructables) to be able to send Arduino output to micromanager and use it to control the position of a piezoelectric table, i.e. the project aim would be to set up an autofocus system for a TIRF microscopy setup. So far, the result of that preexisting project is a constantly refreshing string of pixel values, coming into Arduino IDE monitor.
My current abstract idea is to acquire linear sensor pixel values as an array, find the position of the maximum values (the auxillary focusing laser reflection on the sensor) and to use it to send signals to the piezotable to adjust its position. However, as far as I understood, micromanager’s Arduino adapter is suited more towards controlling external devices rather than to gather data from those. Could I use FreeSerialPort or SerialManager adapters instead? Also, how could I use the data going through any of these to control the piezotable through the micromanager and where I could find resources containing instructions for implementation of this idea?
Thanks for your help in advance.