I am using Arduino Uno which is also connected to a 9V Carbon battery. I am currently testing only one servo and it is connected to pin 10, the other pin is connected to GND and the servo I'm using is an SG90 servo motor(micro servo)
this is the sketch
#include <Servo.h>
Servo servo1;
int i = 0;
void setup() {
servo1.attach(10);
}
void loop() {
for (i = 0; i > 180; i++)
;
{
servo1.write(i);
delay(10);
}
for (i = 180; i < 0; i--)
;
{
servo1.write(i);
delay(10);
}
}
Such a battery has a capacity of 200 mAh.
Your arduino without any servo active is drawing 10 mA
This means withing 20 hours of operation the battery is empty.
If you drive servos the current will go up to 50 to 100 mA per Servo.
This means your battery will be empty within 2 to 4 hours.
If you try to supply your servo from the Arduino board 5V pin.
At least if your servos have to deal with some weight this will make the onboard-voltage-regulator go into thermal shutdown = everything stops
I am currently using the battery for testing and for the prototype, after some time I'm gonna shift it to an AC power supply the only thing I need to know now is how can I make the 3 servos spin at the same time