String potentiometer

A string potentiometer is a transducer used to detect and measure linear position and velocity using a flexible cable and spring-loaded spool. Other common names include string pot, cable-extension transducer, draw wire sensor, and yo-yo sensor.