LadyBug BEEFY turns a broken 3D printer into a microscope that stitches scans by position

3D printing, microscopy

This is the read-only HTML version. For the full Visual Space experience, open the app.

Motorized microscope — Images

Motorized microscope — Images

Source: LadyBug BEEFY: 3D printer motorized microscope on Hackaday.io · Ahron Wayne

Motion-guided imaging

A dead Flashforge Finder still had useful mechanics. Ahron Wayne paired them with a Raspberry Pi and USB microscope, then tackled a harder problem: keeping large stitched images faithful to the objects being scanned.

🎉 1

A broken printer can still be a useful positioning machine. Ahron Wayne’s LadyBug BEEFY project on Hackaday.io replaces a Flashforge Finder’s printing role with a USB microscope, moving through small fields of view to capture much larger subjects. The interesting challenge isn’t just collecting those pictures—it’s combining them without bending the geometry they were supposed to record.

The project was created on January 7, 2020, as an offshoot of Wayne’s earlier Blu-ray-player-based LadyBug scanner. The supplied logs document experiments from June 2020 through February 2021, including an eventual shift toward using the machine’s position data rather than asking image-processing software to guess how everything fits.

The printer supplies the motion, not the electronics

Wayne reports that the Finder’s mainboard died during a fan replacement. Its mechanical assembly became the foundation for a larger scanning platform, driven by a Raspberry Pi 4 and EasyDriver stepper controllers. By a useful coincidence, a generic Dino-Lite-style USB microscope fits into the original extruder assembly’s opening.

The build uses a 1 GB Pi 4, which Wayne says gives a much higher USB-camera frame rate than the Pi 3 he had also used. A single Python file handles scanning; most post-processing happens on a separate computer using commercial software and custom utilities. The project links a LadyBug repository for those interested in the software.

That division of labor matters. The machine can automate where photographs are taken, but a finished image still depends on a second set of operations: stitching neighboring views together and, where needed, stacking images taken at different focus heights. A large scan isn’t automatically a faithful one.

More pictures don’t guarantee more detail

A September 14, 2020 experiment makes the limitation concrete. Wayne captured a plant subject with substantial folds and protrusions, eventually taking about 1,900 images over 17 heights spaced 0.2 mm apart. Roughly 900 pictures were discarded.

The resulting stacked image looked presentable to Wayne at reduced size, but close inspection exposed strong blurring artifacts. His assessment was that a nominal 25-megapixel output was useful more like a 3-megapixel image—not the detail gain its dimensions suggested.

Wayne’s own checklist was straightforward: sharp input images, consistent color and exposure, and a subject that doesn’t move between stacks. Output pixel count is not the same as captured detail. Automated motion makes collecting thousands of images practical; it doesn’t rescue inconsistent inputs.

He also tested the simplest version of the idea. In a July 3, 2020 log, a cheap microscope was attached to an Easythreed Nano with duct tape. That printer moved the head while leaving the subject stationary, an arrangement Wayne preferred for avoiding the need to secure objects to a moving plate. But he reported poor Z-axis stability and banding associated with mechanical slop and uneven camera brightness. Reusing a printer is accessible; choosing its motion arrangement still matters.

Let the machine tell the image where it belongs

By February 10, 2021, Wayne was addressing a mismatch in the workflow: the scanner had position information, yet the processing tools were largely working without it.

Earlier stitching relied on approximate overlap. Stacking software could align and resize frames independently, while depth maps from separate stacks might use different minimum and maximum heights. Wayne reported attractive-looking results that could nevertheless distort the subject. He was also dissatisfied with the geometry of 3D models generated through the stitched-image workflow, even when their textures made them look convincing.

His demonstrated alternative was deliberately basic. Create a very large blank image, convert each capture’s X/Y position into a pixel location using an approximate physical pixel size, and place the frame at that location. After fixing indexing errors—including which corner served as the origin—he reported producing a correctly assembled coin image.

At that stage, the method did no blending, alignment correction or exposure matching. It was a working position-based assembly step, not a finished reconstruction pipeline. Its value was in retaining information the hardware already supplied, rather than discarding it before processing began.

Simplify the scan before collecting it

Another useful result came from the December 31, 2020 AutoCoin log. Wayne wanted the machine to locate coins automatically, but distinguishing blurry coins from a blurry scanner stage proved awkward. A neural-network attempt reportedly achieved only 52% success.

The better approach was to focus on the build plate. Anything out of focus then became a candidate object to investigate. That changed the task from recognizing what a coin looks like to detecting something that differs from the focused background. Wayne also reported improvements to autofocus, circular-outline searching and scan paths that followed a coin’s shape rather than covering an entire rectangular grid.

Together, these experiments suggest a useful direction for printer-based microscopy: exploit what the machine already knows. Position can guide image placement; a known background can simplify object detection; an estimated outline can reduce unnecessary captures.

The next meaningful test for the position-based workflow would be how closely a scan preserves known dimensions across its full area—not simply how large or convincing the image looks. That is the gap LadyBug BEEFY makes worth examining: a printer can supply the motion for a microscope, but faithful measurement has to survive the entire imaging pipeline.

Source: LadyBug BEEFY: 3D printer motorized microscope

3D Printing

1 Follower

From digital model to physical part. Share prints, models and workshop lessons; compare materials, slicing and machine setups, troubleshoot failures, and explore useful designs with enough detail for others to reproduce the result.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.