The following link is a circuit diagram for a small robotic arm that uses 3 servos (2 at shoulder, 1 at elbow) and 2 dc motors. (rotation at base and end effect)
http://tinypic.com/view.php?pic=4m1srxk
Is this correct?
Having never used servos with a picaxe chip before im not sure how to wire them or control them via a picaxe. The book I have bought shows the following wiring shown in my schematic and the code example is as follows...
Symbol servo motor = 4
Symbol left = 50
Symbol centre = 150
Symbol right = 250
Symbol counter = b0
Symbol counter1 = b1
Loop:
for counter = 50 to 250 step 10
pulsout servomotor, counter
pause 100
next counter
pause 1000
for counter1 = 1 to 5
for counter = 1 to 20
pulsout servomotor, left
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, centre
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, right
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, centre
pause 100
next counter
next counter1
pause 1000
goto loop
Could someone please help me understand this?
http://tinypic.com/view.php?pic=4m1srxk
Is this correct?
Having never used servos with a picaxe chip before im not sure how to wire them or control them via a picaxe. The book I have bought shows the following wiring shown in my schematic and the code example is as follows...
Symbol servo motor = 4
Symbol left = 50
Symbol centre = 150
Symbol right = 250
Symbol counter = b0
Symbol counter1 = b1
Loop:
for counter = 50 to 250 step 10
pulsout servomotor, counter
pause 100
next counter
pause 1000
for counter1 = 1 to 5
for counter = 1 to 20
pulsout servomotor, left
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, centre
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, right
pause 100
next counter
pause 1000
for counter = 1 to 20
pulsout servomotor, centre
pause 100
next counter
next counter1
pause 1000
goto loop
Could someone please help me understand this?