Pages: [1]   Go Down
Author Topic: How many SERVOS are possible with the ARDUINO?  (Read 761 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there!

I´m workin´ on a project with the Arduino...and i´ve to control, i mean, six servos should move at the same time when i press a key(over serial send via Processing)...My problem is that five servos seem to be the magic border. When i write the code for six servos, none of the servos move. And the problem is not the Bytesize of the Program, its only 61...somethin´.

So my Question is how many SERVOS can i put on the ARDUINO? At the moment the are plugged at 5V.  Is that the problem? Or is more than 5 Servos impossible?

Perfect would be 11 Servos...

So i hope to find Answers

Thanks so far

sb
« Last Edit: June 10, 2006, 03:23:11 pm by Scored_Bytes » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

have you tested your script without the servos connected? Probably you've reached the maximum power level... how much mA do your servos need?
Logged

Oregon, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 29
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

which arduino board are you using?
Logged

0
Offline Offline
Sr. Member
****
Karma: 5
Posts: 476
what?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In theory 12 but that would not be very effective, 9 is a more realistic number to get them to move smoothly, they need to be updated every 18ms, the pwm mark space is between .5ms and 2.5ms, center position being 1.5ms, so if we say the upper setting will be 2ms it's 18 / 2 = 9 servos, to get full swing 7 servos, i think this is how it's worked out, i've certainly had 7 servo's running on a pic before
Logged

Middle of the Pacific
Offline Offline
Full Member
***
Karma: 0
Posts: 129
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you signaling all of the servos from one pin or do they all have a dedicated signaling pin?
Logged

London
Offline Offline
Faraday Member
**
Karma: 8
Posts: 6240
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I  run 12 Servos on a standard Arduino without problem, but they do need a separate power supply.

How are you connecting and powering the servos?

I posted a simple servo test sketch in this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1268620031/3#3

You can use that sketch to command an individual servo or all servos.
Logged

London
Offline Offline
Faraday Member
**
Karma: 8
Posts: 6240
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
9 is a more realistic number to get them to move smoothly, [glow]they need to be updated every 18ms [/glow]
P18F4550,  what is the basis for that statement?
I would be surprised if you could see any difference in movement between running 9 or 12 servos.

It is true that the servos may have a little less torque in the unlikely event that all 12 are being driven with 2ms pulses, but I have not seen any loss of smoothness of movement when 12 servos are driven.
have you?
  
« Last Edit: April 21, 2010, 12:41:17 pm by mem » Logged

0
Offline Offline
Sr. Member
****
Karma: 5
Posts: 476
what?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

mem,
i mean in movement, if they are stationary no there is no difference but if they are not updated every 18ms they get jittery, really it depends on the users individual code
Logged

London
Offline Offline
Faraday Member
**
Karma: 8
Posts: 6240
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
if they are not updated every 18ms they get jittery
That's not been my experience.

You can test this by changing the servo library so that all servos have a refresh period of 24  milliseconds and see if you can detect any more jitter or change in performance with the servos.

To do this, change the following constant in Servo.h to 24000
#define REFRESH_INTERVAL    20000

I would be interested to hear if you can detect a significant  difference.
Logged

Pages: [1]   Go Up
Jump to: