Microstacking is a project that allows you to control a camera and a stepper motor for focus stacking in a microscopy context. The application is built using Python and Tkinter for the GUI, and an Arduino for controlling the stepper motor.
- Control camera settings such as shutter speed, ISO, white balance, and image format.
- Capture images and display them in a treeview.
- Control a stepper motor for precise focus stacking.
- Preview camera feed.
- Save captured images to a specified folder.
- Python 3.x
- Tkinter
- ttkthemes
- PIL (Pillow)
- gphoto2
- pyserial
- Arduino with A4988 stepper motor driver
-
Clone the repository:
git clone https://github.com/yourusername/microstacking.git cd microstacking
-
Install the required Python packages:
pip install tk ttkthemes pillow gphoto2 pyserial
-
Upload the Arduino firmware to your Arduino board:
cd firmware arduino --upload stepper_firmware.ino
- Connect your camera and Arduino to your computer.
- Run the Python application:
python microstacking.py