There were "scanners" from the Apple era
that used the precise
motion of a dot-matrix printer's head to position a photodetector...
I happen to have one. the scanning head replaces the ribbon and printhead
and the printer provides the motion.
Allison