working on simple motor control

motor has a single optical encoder