This is basically how an optical CMM (OMM) works. There are tricks to determining and calibrating out alignment issues and determining snapshot viability, and you're touching on both of them. Very well done!
So you wanted to take pictures of cdroms with a microscope, going on a decent detour and the other way you can make a microscope from a disc player which is a really cool project [0]<p>[0] "Hacking CD/DVD/Blu-ray for Biosensing" <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6066758/" rel="nofollow">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6066758/</a>
I am also just about to attach my microscope to a CNC system, but not for taking pictures of two dimensional manufactured objects but rather for Z-stacking use in biological light microscopy. Probably some horizontal stitching too.<p>The prompt was that someone gave me a broken project which they had never finished (small-scale benchtop CNC system which is highly rigid and heavy but had no wiring, an ancient power supply and a busted spindle motor). I considered finishing the project but the overall size was too small to be very useful for any CNC work I would want (we used to have a large scale commercial 4-axis!). Therefore I am retrofitting a new control system [acquired], rationalizing the power supply [done], and clamping on a USB industrial camera based microscope [clamp acquired, intermediate mounting plate TBD].<p>On my current microscope mount it's really annoying to zoom a little, take a shot, zoom a little, take a shot since there's a high chance of bumping the sample or some slight vibration affecting a shot, and it's very hard to move a tiny amount due to high-friction macro adjustment interface. I was part-way through designing a fix, with some axis modifications for a motor mount, but then realised it would be easier to just redesign the mount from scratch rather than retrofit a one-off modification. Before allocating time to get that done, the CNC fell in to my lap.
I'm currently doing something similar to build a photographic film scanner. I will say that I've found that moving the optics is generally much more error and vibration prone than moving the target. I'm actually using a 2 axis microscope stage as the basis for my scanner, ironically enough, and CNC spindle z-axis for focus.
I started with this but ended up designing my own system around a vertical 4040 aluminum extrusion post and various 3d-printed components including an XY stage (often costs $10K or more) and a Z stage (for focus). It was quite challenging to get everything to line up in a single optical axis and keep the dust out but the results have been quite good- I wrote my own software after trying to get micromanager to work, and can do large acquisitions (25x75mm, AKA a single microscope slide) as well as real-time object-detector based tracking.<p>It's remarkably hard to equal or best a $150 scope from Amscope in terms of optical quality, it's automating their stages that is tricky.
Nice. Try to image a vinyl record. Maybe someone can write something to play such images. The Library of Congress has such a system, called IRENE, but it was very expensive.[1] This might be a low-cost approach.<p>[1] <a href="https://en.wikipedia.org/wiki/IRENE_(technology)" rel="nofollow">https://en.wikipedia.org/wiki/IRENE_(technology)</a>
See also the EnderScope:<p><a href="https://royalsocietypublishing.org/doi/10.1098/rsta.2023.0214" rel="nofollow">https://royalsocietypublishing.org/doi/10.1098/rsta.2023.021...</a><p><a href="https://github.com/Pickering-Lab/EnderScope">https://github.com/Pickering-Lab/EnderScope</a>