How to add simple Servo code from a Tutorial?

I'm done! GIF of my project below. Many thanks to Chris and the community for help here. I'm glad to join the Arduino world.

If any Arduino-veterans here would like to share info on the power questions, please do:

  • Is the power out of a PIN also 5v, and if so, why use the 5v slot?
  • Is 220 Ohms enough resistance for a given circuit, or do you really need 250?
  • Does the recommended max current through a port of 20mA (or 40 mA, as suggested in some threads) apply only to the PIN slots or to the 5v port as well?

In any case, here's an image of where I finished. It's not R2-D2, but it's a first step in to a larger world.

dangerous art box2

1 Like