Interface a mechanical typewriter to a Raspberry Pi using a SoftPot linear position sensor