Arduino Forum

Community => Gigs and Collaborations => Topic started by: captainkirk13 on Feb 07, 2013, 08:55 am

Title: help with coding
Post by: captainkirk13 on Feb 07, 2013, 08:55 am
Hello everyone!

So i need help with coding, as i am quite new. But! i have everything set up and working cause it works on the test and example coing.
Anyways!
heres what i got!
Im using an Arduino uno!
So i have my servos plugged into my breadboard and they run to Pin9.
So i need to program them to on a push of a button rotate back 180 and stop until i push the button again and then rotate forward 180.

Now i dont have a button yet. But isnt there a way to test it inside the arduino program itself?
Title: Re: help with coding
Post by: robtillaart on Feb 07, 2013, 03:03 pm

Have you checked the tutorial about servos's e.g. - http://arduino.cc/en/Tutorial/Knob -
Title: Re: help with coding
Post by: UKHeliBob on Feb 09, 2013, 11:19 am
You don't need a button to test this. Use a jumper wire to short out the 2 contacts on the breadboard where the button will be when you get it.
Title: Re: help with coding
Post by: JedrekProGamer on Feb 09, 2013, 02:15 pm
Just connect these wires like n attachments.