Control the motor by 4 switches.