A soldering microscope that hangs under the shelf above my bench and slides to wherever the board is. Two linear rails, three lengths of aluminum extrusion and a handful of printed parts. A ring light on the lens and a Raspberry Pi on the back of the screen put the view, and every control, on a web page.
I inspect boards under a cheap digital microscope on a stand. I wanted it to reach any spot on the bench and to be out of the way the rest of the time.
The bottom shelf over the bench has 14.5 inches of air under it. So the scope hangs there, on a gantry that covers the bench left to right and most of it front to back, and the bench stays clear.

One precision rail runs along the front lip of the shelf. A second, plain rail runs along the back, between the uprights. A short boom bridges the two and slides left and right. A rail under the boom carries the microscope front to back.
The front rail does all the guiding. The back one only holds the boom's far end at the right height, on two strips of slippery tape, with three millimeters of play front to back. Two precision rails a meter and a half long would have to be parallel to a fraction of a millimeter. One rail and one slider don't.
The scope's stand came with a 20 mm rod with a flat on one side, a block that rides it, and a fine height adjust with 30 mm of travel. All three moved to the gantry. The rod slides through a printed clamp for extra reach, and the height adjust is the whole Z axis.
The screen flips up and sits beside the lens, which is the only way the head fits under the shelf with room left to focus.
The scope's own lights sit in the head, a long way from the board once it hangs under a shelf. So a ring of twelve LEDs rides on the end of the lens, in a printed sleeve held by the two thumbscrews that already hold the lens on.
A Raspberry Pi 3 B lives on the back of the screen. It powers the scope over USB, drives the ring, and serves one page with the live view and every control on it. The page is a single Python file with nothing to install but the LED library. MediaMTX carries the video.





The scope sends about 6 megabits of video a second at 1080p, and the same at 720p. That was more than the Pi's 2.4 GHz radio could carry here. The picture froze, and every command waited seconds behind it. At 640 × 480 the scope sends about half that, the freezes stop, and a command lands in about 15 milliseconds.
So the live view is small. I position by the scope's own screen anyway, and the page is there to show the lighting change. Stills don't go through the stream at all.


The first plan held the front rail on with seven printed clamps hooked around the shelf's lip, so nothing got drilled. They would have worked. They also hung 7.5 mm below the lip, sat under tension forever, and put plastic between the shelf and the one rail that has to stay straight.
Eight small holes through the lip replaced all seven. The extrusion bolts straight to the steel, and the holes are hidden behind it.
Each end of the shelf hangs from its upright on two bolts. The back rail is tapped at both ends and held by the top bolt on each side, so the shelf's own hardware carries it. That decided the rail's height, which decided where the boom had to stop, which changed the slider. A printed collar at each end keeps the rail from turning on its single bolt.
Everything printed is drawn around an M3 × 10 socket head screw: wall thicknesses, counterbores and how far each screw reaches into a T-nut. The two exceptions are the quarter-inch bolts that hold the back rail, because those were the taps I had.


The power lead has to follow the head across 55 inches. A cable chain does that, and the first two layouts put it on top of the shelf. The shelf's back edge turns up 45 mm, and behind that lip is dead space. The chain lies on its side there. One end hangs on a printed clip on the lip and the other bolts to an arm on the back slider.
The clip hooks over the lip and pinches it with a screw, so nothing new got drilled. Four more clips were meant to sit under the chain as rests. Once everything moved they got in the gantry's way, so they came off. The drawing also had left and right swapped until the printed parts said otherwise.

With the rails on, the boom would swing out of square as it slid, then stop dead. Two things were wrong. The bracket at the front held the boom with two screws in a line, which is a hinge. And the slider at the back fit its rail closely enough to wedge corner to corner once the boom swung.
The new bracket wraps the boom on three sides with six screws. The new slider is loose: it hangs on the rail by two strips of tape and touches nothing else. Now the front holds the boom square and the back only holds it up.

A linear carriage that runs off the end of its rail can drop its bearing balls. The long rail got a printed stop clamped in the extrusion's slot at each end. On the short rail the bracket is the front stop, and two bumpers under the back slider are the rear one.
The Pi was drawn clipped across the screen, hung under the rod clamp, standing on edge off the hinge, and bolted to the screen's own case screws. The last one needed 20 mm M2 screws the hardware store didn't have. It ended up on a printed plate with the nylon bolts from its old case, stuck to the back of the screen with Velcro.

How tall the head is matters less than where its top edge lands once it's in focus.
The shelf's own bolts turned out to be the best place to hang the back rail.
Seven clever clamps lost to eight plain holes.
A ten-minute ring with three bores picked the fit for the rod clamp.
The boom jammed while both ends half-held it. It ran once the front held everything and the back held nothing but weight.
Twice, a laggy page turned out to be thin wires starving the Pi, not the network.
Heads up: these are the files the finished build runs on, and they're sized to my shelf and my microscope. The dimensions are variables at the top of each OpenSCAD file. The control page expects MediaMTX serving the scope at a path called scope, and it has to run as root to drive the LEDs.