Arduino + servos multiples

Hi,

I have an arduino uno and three servosMotores, but I can not move them, my arduino flashes the LED, but nothing happens when I turn the three engines together. Does anyone know why this happens and how can I solve this. My code in IDE is below:

#include <Servo.h> 
 
Servo myservo1;  
Servo myservo2;
Servo myservo3;    
 
 
void setup() 
{ 

  myservo1.attach(9);
  myservo2.attach(10);
  myservo3.attach(11);
}
 
 
void loop() 
{ 
     myservo1.write(35); 
     myservo2.write(35);
     myservo3.write(35);
    delay(15);       
                                 
     myservo1.write(45); 
     myservo2.write(45);
     myservo3.write(45);
    delay(15);       

     myservo1.write(90); 
     myservo2.write(90);
     myservo3.write(90);
    delay(15);       
      
}

Help me, please!

Servos require more current pins output 40ma Max.

steinie44:
Servos require more current pins output 40ma Max.

A little error here, I think.

It is true that the absolute max current for an I/O pin is 40mA. That is quite adequate for the signal for a servo

However I doubt if the OP is trying to power the servos from the I/O pins but it is quite likely he is trying to power them from the Arduino 5v pin. Servos should have their own power supply with a common ground connection to the Arduino.

The Arduino 5v pin can supply a lot more than 40mA but not enough for servos. When the servos try to move they will cause the voltage to fall and then the Arduino will reset - and the Arduino voltage regulator might be damaged.

...R

And here's a pic of what Robin's saying.

Conventional forum wisdom is to allow 1A per servo.....

Many servos- small V2.jpg