|
KiCADKicad
|
|
|
Visual StudioMicrosoft
|
|
|
|
Visual Micro |
Focus Stacking Circuit For Macro Photography
This circuit is mainly designed to serve as a tool for shooting pictures for focus stacking macro photography. But it is actually a simple stepper motor driver panel which can be used for other purposes where we want to program the movement of a stepper motor.
Focus stacking is a nice technique to increase the depth of field of a -typically macro, but it can also be a landscape- photo. One takes several images focused on a different spot of the field of interest and then combines the "sharp parts" of the images with a dedicated software (e.g. Adobe Photoshop). This will create an image where every single pixel is in focus.
The working principle of this circuit is that one can program the necessary parameters, and then the circuit will drive a stepper motor (linear actuator) and trigger the shutter of a camera (it is tested for Sony A6000). Since this specific application focuses on macro photography, we can decide whether we put the camera on the linear actuator, or the object (e.g. a bug) itself. Then, by moving the linear actuator and taking pictures we get the pictures for the focus stacking. Finally, we just need a software to compile the set of images into one single picture.
The code I developed works in the following way:
- Upon startup, the user can do a homing or can skip it
- The user has to enter the chosen aperture (f-number, written on the lens)
- The user has to enter the chosen magnification (can be read from the lens if it is a macro lens, or can be calculated)
- The code calculates the depth of field (DOF) and suggests a step size (DOF/2) for the stacking
- The user can optionally override the suggested step size with a unique value
- The user has to move the carriage to the desired finish point, the point where the last picture is taken for the stack
- The user has to move the carriage to the starting point. The carriage will move from this point back to the finish point. This point is where the stacking starts
- The user has to start the stacking (GO!)
Once the parameters are set, the code automatically recalculates the necessary parameters. For example, if you change the f-number, the DOF and step size are automatically recalculated. If you change the starting point or finishing point, the travel distance and the number of steps are automatically recalculated.
After the stacking is initiated, the progress can be followed on the display. After a picture is taken, the progress is updated on the display. As the code proceeds further, more and more pictures will be taken and at the end, the number in the "progress" box will be equal to the number in the "number of steps" box.
Focus Stacking Circuit For Macro Photography
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(12)
-
Engineer
Nov 29,2025
-
Engineer
Nov 15,2025
-
Anthony Pedotto
Feb 22,2025
-
Engineer
Dec 23,2024
-
Engineer
Sep 28,2024
-
Jaime Ortiz
May 10,2024
-
Engineer
May 08,2024
-
Scott Heimendinger
Mar 10,2024
-
Prasanna K
Oct 08,2023
-
Engineer
Aug 12,2023
-
Engineer
May 31,2023
-
Mariusz Gasik
Apr 02,2023
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
9design
-
9usability
-
9creativity
-
9content
More by Curious Scientist
-
USB PD Breadboard Power Supply
In this article, I show you my new creation. It is a USB PD decoy-based breadboard power supply. All...
-
ADS1256 - RP2040 Custom DAQ Front Panel with GPIO
This is just a simple PCB panel that belongs to my other project which is a high-performance DAQ.A r...
-
ADS1256 - RP2040 Custom DAQ Front Panel without GPIO
This is just a simple PCB panel that belongs to my other project which is a high-performance DAQ.A r...
-
10th Anniversary Badge
I designed this small badge for PCBWay's 10th anniversary.I tried to make a deeper meaning to the bo...
-
ADS1256 - Atmega32u4 Custom DAQ board
IntroductionIn this project, I show you two things. One is a new version (v1.2) of my custom DAQ bas...
-
Debounced rotary encoder module
In this project, I show you my approach to making a rotary encoder module.One can buy different rota...
-
Custom ADS1256 board with ATmega32U4
I created my own ADS1256 PCB after working with this AD converter for several years. I wanted to bui...
-
3-axis stepper motor controller with CNC pendant connectivity
In this article, I show you the updated version of my motorized microscope. In one of my older video...
-
Light meter for analog cameras [CH32V006F8P6 + TSL2591]
Light meter for analog cameras [CH32V006F8P6 + TSL2591]In this article, I show you how I built my ow...
-
5-way navigator PCB
In this article, I show you a genius way of handling multiple buttons with a microcontroller. I “dis...
-
CH32V006K8U6 Development Board
IntroductionSo, I have been working with the CH32 microcontrollers and chips for a while, and I even...
-
PCBWay 11-year Anniversary Badge
This visual design was created by https://www.instagram.com/guiye.perez.bongiovanni/ ; however, only...
-
TCD1304 - STM32F401CCU6 breakout board
The recent modifications made to the circuit board design have improved its functionality and space ...
-
TCD1304 miniature PCB rev2
The redesign of the PCB involved several key changes to improve its performance and decrease its siz...
-
2-channel breadboard voltmeter
The project originally stems from my CH32 tutorial series. I started working with this chip not so l...
-
ADS1256 - RP2040 Custom DAQ Rear Panel
This is just a simple PCB panel that belongs to my other project which is a high-performance DAQ.A r...
-
ADS1256 - RP2040 Custom DAQ with GPIOs
This is my (hopefully) last iteration of the ADS1256-based DAQ board. I replaced the ATmega32U4 micr...
-
High-performance 3-axis stepper motor control panel
In this project, I show you my new development which is a high-performance 3-axis stepper motor cont...
-
-
AEL-2011 Power Supply Module
322 0 1 -
AEL-2011 50W Power Amplifier
297 0 1 -
-
-
Custom Mechanical Keyboard
565 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
230 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
238 0 1 -
-
-







