A short while ago I was impressed reading a project on
Instructables. It sparked the idea of trying something similar but programmed by an Arduino. After a couple of weeks thinking (comes hard some days), programming, buying, 3D printing and constructing I ended up with:
This consists of the electronics bits
Left to right: relay to activate camera shutter, stepper motor driver module, Arduino Uno R3 with added extra contacts.
The Arduino is programmed using a home 3D printed panel which uses an LCD to indicate what is happening. Three buttons. Top: set the number of photos to be taken, Middle: start the sequence, Bottom: abort / restart.
The camera sits on top of a bought unit which was originally designed to use on the Z axis of a CNC machine. The stepper motor takes 16 moves to forward the camera 10mm. This is set by DIP switches on the driver module. I also added a micro switch as the camera is automatically rewound to the start position once all the macro shots have been taken.
A few odds and ends were used to make the mount for the camera.
For my first test I mounted the Canon M5 fitted with 18-150mm zoom lens plus the Raynox DCR-150 macro / close-up conversion lens to take 36 focus stacked shots of a small cactus flower.
Why go to all the trouble of taking so many photos?
Getting close to things can result in a very shallow depth of focus on any single shot.
For example
First shot:
Last shot:
Each photo in the stack has a slightly different area of the subject in focus.
The two programs I use can sort out the in focus parts and combine just those bits to make the final composite shot.
The result using Zerene Stacker to process the individual photos to make one stacked picture
I recently purchased Focus Stacker and this is the result from the same batch of 36 photos
The main difference in output, to my eyes, is the latter has a better colour rendering.
The unit actually works so I'm a happy bunny.
A bit of extra processing in Affinity Photo
to increase contrast and vibrance.