This setup allows me to automate the process of taking several pictures of tiny things that we can not get in focus with a single shot. Many solutions exist for a “problem” like this and here is my DIY approach. Using this simple GUI, I control a stepper motor and remotely trigger the camera shutter through Arduino UNO / Motorshield.
Once done, I use Zerene Stacker (http://zerenesystems.com/cms/stacker) to create a single stacked image of the frames.
***** DISCLAIMER *****
This setup works fine for me but be aware that we are dealing with electronics remotely triggering the camera. While the setup in theory is almost fail safe, I can not be held responsible for any damage to your camera equipment or harm to yourself. Please educate yourself about the workings of the circuits and possible consequences of incorrect setup.
Chris Hager (2023). Matlab/Arduino controlled Macro Rail for Macrophotography (https://www.mathworks.com/matlabcentral/fileexchange/72788-matlab-arduino-controlled-macro-rail-for-macrophotography), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!