Also, there is a known cause of Error 516: insufficient power. See this post - scroll down to the end:
The servo motor needed it's own power supply, the Arduino supply was insufficient.
Also observing that Post, note that the servo most likely should be connected to a PWM pin (Pulse Width Modulation).