mechanical to digital