Pages: [1]   Go Down
Author Topic: help with coding  (Read 621 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Have you checked the tutorial about servos's e.g. - http://arduino.cc/en/Tutorial/Knob -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 89
Posts: 3458
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just connect these wires like n attachments.


* DSCN9578.JPG (1372.85 KB, 2592x1944 - viewed 11 times.)

* DSCN9581.JPG (1845.95 KB, 2592x1944 - viewed 7 times.)
Logged

Pages: [1]   Go Up
Jump to: