Need help ASAP!!! Flex Sensor And Servos

I have a competion coming up in two days and i cant figure out what im doing wrong. I have five flex sensors sewn into a glove going to a board. They are 10K flex sensors with a 10K pull down resistor set up in a voltage divider circuit. My servos pull six volts so i have a different power supply for them. The grounds are commen from the arduino to the power supply. None of my servos are working. This is my code.

#include <Servo.h>

Servo Claw;
Servo Wrist;
Servo Elbow;
Servo Shoulder;
Servo Base;
int PinClaw = 3;
int PinWrist = 5;
int PinElbow = 6;
int PinShoulder = 9;
int PinBase = 10;

void setup() {

void loop()
int FlexClaw = analogRead(A0);
int FlexWrist = analogRead(A1);
int FlexElbow = analogRead(A2);
int FlexShoulder = analogRead(A3);
int FlexBase = analogRead(A4);


int AngleClaw = map(FlexClaw, 350, 520, 180, 0);
int AngleWrist = map(FlexWrist, 350, 420, 180, 0);
int AngleElbow = map(FlexElbow, 220 , 500, 120, 90);
int AngleShoulder = map(FlexShoulder, 300, 500, 0, 180);
int AngleBase = map(FlexBase, 320, 560, 180, 0);


What am I doing wrong. Please respond quickly???

What am I doing wrong. Please respond quickly???

Pretty obvious you didn't read #7 below. Other than that, are the values you are getting from the flex sensors and sending to the serial monitor what you expect?

I sincerely apologize. I made an account very quickly to try and get some answers. I will use the code button from now on. And yes, all but one but i think that is a bad solder joint on my side. Im getting good readings and they are in the scope set by the map function,

Servo test code you may be able to modify to test your servos to see if they are wired correctly and powered adequately.

//zoomkat 11-22-12 simple delimited ',' string parse 
//from serial port input (via serial monitor)
//and print result out serial port
//multi servos added 

String readString;
#include <Servo.h> 
Servo myservoa, myservob, myservoc, myservod;  // create servo object to control a servo 

void setup() {

  //myservoa.writeMicroseconds(1500); //set initial servo position if desired

  myservoa.attach(6);  //the pin for the servoa control
  myservob.attach(7);  //the pin for the servob control
  myservoc.attach(8);  //the pin for the servoc control
  myservod.attach(9);  //the pin for the servod control 
  Serial.println("multi-servo-delimit-test-dual-input-11-22-12"); // so I can keep track of what is loaded

void loop() {

  //expect single strings like 700a, or 1500c, or 2000d,
  //or like 30c, or 90a, or 180d,
  //or combined like 30c,180b,70a,120d,

  if (Serial.available())  {
    char c =;  //gets one byte from serial buffer
    if (c == ',') {
      if (readString.length() >1) {
        Serial.println(readString); //prints string to serial port out

        int n = readString.toInt();  //convert readString into a number

        // auto select appropriate value, copied from someone elses code.
        if(n >= 500)
          Serial.print("writing Microseconds: ");
          if(readString.indexOf('a') >0) myservoa.writeMicroseconds(n);
          if(readString.indexOf('b') >0) myservob.writeMicroseconds(n);
          if(readString.indexOf('c') >0) myservoc.writeMicroseconds(n);
          if(readString.indexOf('d') >0) myservod.writeMicroseconds(n);
          Serial.print("writing Angle: ");
          if(readString.indexOf('a') >0) myservoa.write(n);
          if(readString.indexOf('b') >0) myservob.write(n);
          if(readString.indexOf('c') >0) myservoc.write(n);
          if(readString.indexOf('d') >0) myservod.write(n);
         readString=""; //clears variable for new input
    else {     
      readString += c; //makes the string readString