Control of position or direction using feedback {using discrete position sensor with electrical contact}