Hi everyone, this is my first post here at the forum.
Well let me explain my problem, im building a Quadripod with 8 servos to control the movements
(8x towerpro 9g) an Arduino mega 2560, a sparkfun protoshield (https://www.sparkfun.com/products/7914), in the future i'll use a LiPo battery (7,4 1200mAh), bc of it i build a protection system using relays and 3 LM7805 to reduce the voltage to 5Vcc (mounted as the image) but for now im using a ATX power supply, thoses from the old Pc hahaha, well my problems starts when i try to use more than one servo. for example
#include <Servo.h>
Servo s0;
Servo s1;
Servo s2;
Servo s3;
Servo s4;
Servo s5;
Servo s6;
Servo s7;
void setup(){
Serial.begin(9600);
Serial.write("ok");
s0.attach(8);
s2.attach(9);
pinMode(31,OUTPUT);//K0
pinMode(32,OUTPUT);//K1
pinMode(33,OUTPUT);//K2
}
void loop()
{
digitalWrite(31,HIGH);
digitalWrite(32,HIGH);
digitalWrite(33,HIGH);
s2.write(150);
delay(500);
s2.write(50);
}
on this example I Didn't write any angles for the servo "S0", but even so it starts to move to the same angle that i used for Servo S2, if i attach only the servo S2 he obey the command lines, but if i put any others servos they do only the first line " s2.write(150);"
i put the Ground of the power supply connected to the arduino. on the board i have 3 grounds coming from the ATX connected to the arduino
(image:
https://drive.google.com/open?id=0B1XIQPQFsvR7c0FKOXNFd1ZtREE)