Coding a servo motor with arduino?

I am trying to make a servo motor turn (using an arduino) 360 degrees, 270 degrees, or 180 degrees depending on which push button (3 push buttons) I press. After it turns that amount I need it to STOP and not move until I press one of the buttons again. Does anyone know how I could possibly code this???

✅ Answers

? Best Answer

  • How to control a servo with Arduino http://arduino.cc/en/Reference/Servo

    How to use buttons with Arduino http://arduino.cc/en/tutorial/button

  • Leave a Comment