Driving servos
Here ( http://letsmakerobots.com/node/80 ) Frits had mentioned that either Arduino or PICAXE can control such and such number of servos. I'm pretty new to microcontroller world, so maybe my question will sounds a bit stupid... but I don't really get what we mean by saying "can only control X servos"? Does it actually mean, "platform X can have up to N serial outputs"? Because, AFAIK that's what servos are, aren't they?
Now, I can understand that PICAXE has also limitations due to the built-in Basic interpreter; but why Arduino?
Maybe I'm just misinterpreting the concept of how the servos work though...



@ Fri, 2008-10-17 22:03
thanks, do you think thw
@ Mon, 2008-10-20 16:30
Maybe... If you need all
Maybe... If you need all three servos to move at once and at their top speed/torque... yes. If speed/torque etc isn't important then no. If you fire your servos at once (Steppenwolf reference somewhat intended) then they may fight for current and not operate as quickly as they would on another power source.
Try them all on the same power source as the processor and then move to P2 if needed.
@ Mon, 2008-10-20 18:59
yea i was thinking the same
@ Fri, 2008-10-17 22:34
Documentation says so, but I
@ Fri, 2008-10-17 23:15
tryed it and it seems to
@ Thu, 2008-10-16 23:32
I was wondering , how do i
@ Fri, 2008-10-17 20:51
You put them on a different
You put them on a different output pin and call them as such:
servo 0, 100
servo 1, 100
servo 2, 100
This would make servos on output pin 0, 1 and 2 and move to position 100.
@ Thu, 2008-09-11 20:06
Make sure you are using the
@ Fri, 2008-09-05 00:44
check the pin layout like
check the pin layout like anachro mentioned....aside from that, it could be a bad servo.....
I've run 5 different types of servoes form an 08m(as well as an 18x and 14m) without issue. the only thing I've noticed is that the throw is slightly different from one to the other when I was testing them.
You could through a cap in the mix as well(connected between the + and - ) to smooth some of the jitter or use a seperate power source. Using a 470uf cap worked for me.
@ Thu, 2008-09-04 13:49
Servo voltage
According to the data for that servo, you should be able to drive it with normal 5V pulses. Are you running your PICAXE from 5Volts? If you are, then it's possible that there's a mix-up with either which pin you're driving, or the pin setup, or the software that's generating the servo pulses. If you have an oscilloscope, check for pluses of about 1-2ms width, every 20ms or so. If you haven't, then the first thing to do is to make sure that the pin you've chosen is set up as an output (and not as an input). Then, how about a little diagnostic test with an LED? If you slow down your pulse generation code by a factor of, say, 100 then you should see 100-200ms pulses every 2 seconds, which is slow enough to check with an LED/resistor.
But you don't say how you're generating the pulses -- your own pulse-timing code? Or a PICAXE library routine? Or something else?