The anonymous USB camera I used with the stereo zoom microscope not only works with VLC, but also with bCNC, and it has a round PCB with ears:
Which suggested putting it in a ball mount for E-Z aiming:
Black filament snippets serve as alignment pins to hold the ball halves together while they’re getting clamped. They’re epoxied into the upper half of the ball, because who knows when I’ll need to harvest the camera.
The clamp mount descends from the Tour Easy Daytime Running Lights, with more screws and less fancy shaping:
The clamp pieces fit around the ball with four M3 screws providing the clamping force:
The whole affair sticks onto the Z axis carrier with double-sided foam tape:
It barely clears the strut on the -X side of the carriage, although it does stick out over the edge of the chassis.
After the fact, I tucked a closed-cell foam ring between the lens threads and the ball housing to stabilize the lens; the original camera glued the thing in place, but some fiddly alignment & focusing lies ahead:
It’s worth noting that the optical axis of these cheap cameras rarely coincides with the physical central axis of the lens. This one requires a jaunty tilt, although it’s not noticeable in any of the pictures I tried to take.
All in all, this one works just like the probe camera on the MPCNC.
The OpenSCAD source code as a GitHub Gist: