Hi
I have looking through many posts, with similar problems but I think that my problem is a bit different...
I will explain to you the wiring
I have 3 servos like this one
3 signals to 3 digital arduino pins
A 7.4V and 2200 mAh battery, powering directly the three servos.
Besides, the battery goes to the Vin pin and ground of my arduino.
I just want to move the three servos together
My code is:
#include <Servo.h>
// Variables estáticas
Servo servoc1;
Servo servoc2;
Servo servoc3;
// Variables dinámicas
void setup() {
// put your setup code here, to run once:
servoc1.attach(4); //servo derecha
servoc2.attach(5); // servo izquierda
servoc3.attach(6); //servo arriba
}
void loop() {
servoc1.write(50);
servoc2.write(50);
servoc3.write(50);
delay(2000);
servoc1.write(110);
servoc2.write(110);
servoc3.write(110);
delay(2000);
}
My problem is that servos moves erratic, it moves from one to another position, but sometimes during the delay they move like vibrating, other times the movement from 50 to 110 happens in two steps, like if it goes to 80 and then to 110.
Sometimes they move fine...but those are the less.
I don't know where is the problem... I tried powering just one servo... and the problem is thesame...
Any ideas? Thanks