Servo Help

Hi forum. i am trying to send angle to my Servo but i doesnt work
any suggestions?

#include <Servo.h>
Servo myServo;
int eisodos;
int angle;
void setup(){
myServo.attach(3);
Serial.begin(9600);
}
void loop()
{

if(Serial.available()>0){
   eisodos = Serial.read();
myServo.write(eisodos);
Serial.write(eisodos);
delay(10);}
}

What is sending data to the Arduino? If it is the Serial Monitor, that application sends ASCII data. You are reading it with the expectation that it is binary data.

simple servo test code you can try:

// zoomkat 7-30-10 serial servo test
// type servo position 0 to 180 in serial monitor
// for writeMicroseconds, use a value like 1500

String readString;
#include <Servo.h> 
Servo myservo;  // create servo object to control a servo 

void setup() {
  Serial.begin(9600);
  myservo.attach(9);
}

void loop() {

  while (Serial.available()) {

    if (Serial.available() >0) {
      char c = Serial.read();  //gets one byte from serial buffer
      readString += c; //makes the string readString
      delay(3);
    } 
  }

  if (readString.length() >0) {
    Serial.println(readString);
    int n = readString.toInt();
    Serial.println(n);
    myservo.writeMicroseconds(n);
    //myservo.write(n);
    readString="";
  } 
}

thats what i needed thank you.

zoomkat:
simple servo test code you can try:

// zoomkat 7-30-10 serial servo test

// type servo position 0 to 180 in serial monitor
// for writeMicroseconds, use a value like 1500

String readString;
#include <Servo.h>
Servo myservo;  // create servo object to control a servo

void setup() {
  Serial.begin(9600);
  myservo.attach(9);
}

void loop() {

while (Serial.available()) {

if (Serial.available() >0) {
      char c = Serial.read();  //gets one byte from serial buffer
      readString += c; //makes the string readString
      delay(3);
    }
  }

if (readString.length() >0) {
    Serial.println(readString);
    int n = readString.toInt();
    Serial.println(n);
    myservo.writeMicroseconds(n);
    //myservo.write(n);
    readString="";
  }
}




but i cannot understand how is works