Untitled attachment https://pleroma.m68k.church/media/8fe5619552bf72897c26a27998cbafc177db7cd5139b4a3f136028c04e90ec66.png
Ill clean up the code later. Here's it calibrated and measuring the size of an 0805 resistor (that is nominally 2mm)