![combinezm focus stacking software combinezm focus stacking software](https://projects-raspberry.com/wp-content/uploads/2015/03/Focus-Stacking-using-Raspberry-Pi-1200x675.jpg)
- #Combinezm focus stacking software drivers#
- #Combinezm focus stacking software driver#
- #Combinezm focus stacking software software#
- #Combinezm focus stacking software code#
#Combinezm focus stacking software code#
Here’e a snippet of python code to move the motor a number of steps, and trigger the shutter.
![combinezm focus stacking software combinezm focus stacking software](https://static.flickr.com/43/90115253_4253898a5f.jpg)
That’s incredible resolution for something this easy to build! The Code So, now I can move the camera towards the subject in increments as little as 0.02 mm, taking an image each increment. This was done using the following circuit. The next step was to drive the shutter of the camera between each move of the platform. With a small bit of code, I was then able to drive the platform in the scanner forward and backwards ad various speeds, depending on how fast I ran the sequence to the motor (see below for the code) You can see in the sequence that it’s enabling one of the coils on the motor at a time, causing it to rotate. I wired the EnableA and EnableB pins to the +5V, as I want both coils in the motor to be enabled, and saved myself a few GPIO pins in the process.
#Combinezm focus stacking software driver#
So, connecting in the 4-wire stepper motor interface into the MOTORA and MOTORB connections, and adding in a PSU in the form of 3 x AA batteries to drive the motor, I then connected 4 GPIO outputs of the Raspberry Pi directly onto the 4 inputs to the stepper motor driver board. In this project, we’re driving one stepper motor with two coils. It has the capability to drive 2 DC motors, OR 1 stepper motor with 2 coils. It’s a dual H-Bridge motor drive unit. I had it off eBay for €9. This project was made much easier by using an off-the-shelf stepper motor drive unit (see pic). Any camera with a shutter release mechanism. The camera shown is a Canon EOS 5D Mark II, but it should work with Nikon, Sony, etc. The drive is slow enough that it does not dislodge the camera while it moves.
![combinezm focus stacking software combinezm focus stacking software](https://www.go2india.in/travel-articles/images/combinezm-end-of-do-stack-completion.jpg)
Mounting the camera is simply a case of placing it on the platform. The stepper motor drive can be seen in the above image in the bottom right. Once I took the cover and the glass off, I was left with a nice flat platform on which to place my camera, and a 4-wire connection to the stepper motor to drive the platform forward and back. Being a scanner capable of 2400 dpi, it was definitely accurate enough, but would it be able to move a 3KG camera and lens? If I could get at the stepper motor to drive the scan element, maybe I could attach a camera to it and move it in very fine increments, ideal for macro photography. So it hasn’t been used in a couple of years.
#Combinezm focus stacking software drivers#
It’s so old, that the most recent drivers available for it are for Windows XP. So, I came up with the idea of re-purposing an old flat-bed scanner that I had in the attic gathering dust. Commercial solutions can cost as much as $600, including controller. Once solution is to turn the zoom ring on your lens slightly, but that’s still hit-and-miss on highly magnified images (1:1 and smaller). The difficulty with this is moving the camera accurately at such small distances.
#Combinezm focus stacking software software#
You can then combine all the sharp parts of the images together using some free software called CombineZM, and end up with a completely sharp image from front to back of the subject. Each image will have a different part of the subject in focus. A solution to this is to take several images, each one moving closer to the subject by a tiny amount. It can be as little as 0.5mm, depending on the camera settings and magnification you’re trying to achieve. There’s a common issue with shooting macro photography, and that’s the limitation in depth of field (or depth of focus). This time, it’s re-purposing an old flatbed scanner as a macro rail for focus stacking images in macro photography.
![combinezm focus stacking software combinezm focus stacking software](https://cdn.windowsreport.com/wp-content/uploads/2020/01/CombineZP-batch.png)
Here’s another in the series of articles of photographic uses for the Raspberry Pi SBC (Single Board Computer).