Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop image-based autofocus for LS arm #19

Closed
ieivanov opened this issue Apr 14, 2023 · 3 comments · Fixed by #48
Closed

Develop image-based autofocus for LS arm #19

ieivanov opened this issue Apr 14, 2023 · 3 comments · Fixed by #48
Assignees
Labels
enhancement New feature or request hardware Plans for new hardware development and troubleshooting urgent Problem that needs to be resolved asap

Comments

@ieivanov
Copy link
Collaborator

The Nikon PFS hardware autofocus can maintain a constant distance between the O1 objective and the sample. However, element in both the LF and LS remote refocus arms can drift over time, causing focal shifts in both arms. We will likely need image-based autofocus to re-position O3 in the LS arm and the scan mirror in the LF arm (both of which have motorized coarse stages). This autofocus will likely need to run only once every 30-60 min depending on the drift we observe.

@mattersoflight
Copy link
Collaborator

@ieivanov and I just discussed this offline. We can work on this after the other four issues.

@ieivanov ieivanov added the enhancement New feature or request label Apr 25, 2023
@ieivanov
Copy link
Collaborator Author

I have now observed that the remote refocus arms do defocus after 1-2 hours even when PFS is engaged. The issue is more pronounced in the LS arm, but may be resolved with algorithms that @talonchandler has developed. Autofocus will require moving the Thorlabs PZA13 stages (with KIM001 controller) in one of the following ways:

https://github.com/Thorlabs/Motion_Control_Examples/blob/main/Python/KCube/KIM101/kim101_pythonnet.py
https://pylablib.readthedocs.io/en/latest/
https://pypi.org/project/thorlabs-apt-device/

Controlling these stages may be more convenient using copylot, but this is not strictly necessary.

@ieivanov ieivanov added hardware Plans for new hardware development and troubleshooting urgent Problem that needs to be resolved asap labels Apr 25, 2023
@edyoshikun
Copy link
Contributor

I just implemented a prototype for the KDC101 (photom stage) and something for the KIM101 (mantis objective stages) using the thorlabs API.
here. This PR is still missing testing in person and edge case testing.

@ieivanov ieivanov changed the title develop image-based autofocus for LF and LS arms Develop image-based autofocus for LS arm Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hardware Plans for new hardware development and troubleshooting urgent Problem that needs to be resolved asap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants