I Have a simple push-button with 4 pins and a simple micro servo. I'm using an Arduino nano. I don't have any resistors and don't know if I will need them. What I'm trying to do is this:
- When I start the process, the servo starts at 0 degrees
- When I press down the button (hold) the servo moves from 0 to 180 degrees, not more
- When I let go of the button, the servo moves from 180 degrees back to 0 degrees
I'd love for someone to help me with regards to the code, and the pins to attach my wires to on the arduino. Many thanks...