x mem
this is some instructions from your post:
" if ( Serial.available())
{
char ch = Serial.read();
if(ch >= '0' && ch <= '9') // is ch a number?
val = val * 10 + ch - '0'; // yes, accumulate the value
else if(ch == '-') // is this the minus sign?
{
angle = angle - val;
if(angle < 0)
angle = 0;
myServo.write(angle); // write the new angle
val = 0;
}
else if(ch == '+') // is this the plus sign?
{
angle = angle + val;
if(angle > 180)
angle = 180;
myServo.write(angle); // write the new angle
val = 0;
}
}"
if I write "90+" the program enter in the loop three times, the first to read the character "9", the second to read the character "0" and convert "9" like "90", and the last lo read the character "+" that is, in this example, like a character of the end of the line (such as for example "\n" in C)
I would like to know if there is a method that can read the number (for example "90") in a single operation
x AWOL:
I think I understand your post, but I'm not sure. I'm Italian and my English isn't very good

I write it in the part of message for mem: I would like to read a number > 9 without a loop for each digit
x bhagman:
maybe your program is really what I need: move the servo with arrow keys. But now I'm very tired, so I will try it tomorrow ;D
ps what does "OP" mean? :-?