Servo motor interfacing

  for(pos = 0; pos < 5; pos += 1)  // goes from 0 degrees to 180 degrees

Clearly, it does no such thing.

delay(100);                       // waits 15ms for the servo to reach the position

Hmmm.

Can you describe what you observe, and how that differs from what you expect to observe?

Got a vts 05B today

What's that?