Making a servo motor function using a switch