Driving the focus stacking rail using a Raspberry Pi

The Raspberry Pi drives the focus stacking rail to achieve tiny micron movements of the camera towards the photographic subject.

This project is a sub-section of my larger project on focus stacking of fern gametophytes.

This section explains what hardware is required for a Raspberry Pi-driven system, and how it is all wired up. We are only covering the electronics here and the other hardware is discussed in the main page.

The full setup
This is the full setup from above. At the top, the microscope block is connected via cogs to the stepper motor. The stepper motor is then wired to a stepper motor shield, which is in turn wired to the Raspberry Pi at the bottom of the photo.”