This is a winch that can be controlled with a rotary encoder.
https://github.com/brendan234/pully/blob/master/pully.ino
https://youtu.be/3rXFwkPwuF4