I have automated microscope photo focus stacking with Arduino and a cheap stepper motor