How would I Make it so When I Pressed "Button A" it would spin motor for 2 Seconds and Lit "LED A" and When I Press "Button B" It would Spin motor for 4 Seconds and Light "LED B".
What have you done so far? Have you looked at any of the examples? What type of motors? How are they connected? Perhaps you want the "Gigs and Collaborations" section of the forum, because in THIS section people usually present their wiring and their code and ask for assistance with an issue.
Sorry, My bad. I Have a standered Hobby Motor rigged to be an actuator. The Hot side is connected to digital 9. I have a button connected to digital 10 and digital 11. Also a LED connected to digital 3 and digital 5. I don't know how to code it, but I hope to learn from example (That's why I'm starting Simple).
Thanks and Sorry For The Miss Communication.
skydazz2000:
Sorry, My bad. I Have a standered Hobby Motor rigged to be an actuator. The Hot side is connected to digital 9. I have a button connected to digital 10 and digital 11. Also a LED connected to digital 3 and digital 5.
Unplug the motor! You can very easily destroy your Arduino by powering a motor directly from an I/O pin. You need a transistor or a h-bridge.
skydazz2000:
I don't know how to code it, but I hope to learn from example (That's why I'm starting Simple).
There are lots of example programs available from within the IDE. We don't want to retype them here. Work through the Arduino tutorials. There are lots of people willing to help but they will want you to have tried to write the program yourself first.