Control robotic arm using arduino and kinect

zoomkat:

dimis90:
I don't any power supply only the power that arduino provides through my pc...maybe its not enough ?

Servos need external power supplies generally wired like below.

It seems that the power was not the problem can you check my code? in this part

void loop() {
   /*  check if data has been sent from the computer: */
  while (Serial.available() > 0) {
       
    RIGHT[i]=Serial.read();
    if(RIGHT[i]=='a')
    {
    aposR=i;
    for(int c=0; c<aposR; c++ )
    {
      angleR=angleR+(RIGHT[aposR-c-1] - '0') * powc;
      powc=powc*10;
    
    }
   
    powc=1;
    
    
    
    }
    LEFT[j]=Serial.read();        ***
    if(LEFT[j]=='b')
    {
      aposL=j;
      for (int t=0; t<aposL;t++)
      {
        angleL=angleL+(LEFT[aposL-t-1]- '0')*powc;
        powc=powc*10;
      }
    }
    powc=1;

when i put LEFT[j]=Serial.read(); servo's just stop working any idea why or maybe can you explain how serial port on arduino duemilanove works ?

P.S. Anything you don't understand about the code ask me