yeah I understand.. its avery overwhelming process to find parts/hardware with all the little details.. (I still have a hard time too)
realistically the cap specs are not THAT important (per say) if you go bigger..etc..
it helps remove the ripple in the power supply into/out of the regulator.
so lets do this:
no LEDS...
Q1: how are you powering the Arduino? (same +7.4v Li-Ion pack?)
Q2: how are you powering the Servos? (same +7.4v Li-Ion pack?)
Should be yes.. (or if using two separate power sources for each.. make sure the GNDS are connected)
battery pack >> Arduino
battery pack >> (cap) regulator (cap)>> servos
servo 1 control like >> Arduino pin 10
servo 2 control line >> Arduino pin 11
1.) take a multi-meter and test the power coming from your regulator.. should be a steady +5v
try some code that JUST move the servo back and forth..
try this simple code instead..
no buttons/switches
no leds..
just servos powered by BATTERIES.. with two lines going to Arduino to control them (actually this demo only uses one it seems.. so test them both individually)
Code:
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 10; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for(pos = 10; pos < 160; pos += 1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 160; pos>=10; pos-=1) // goes from 180 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}