Power to servo

Hi!

Im trying to do a project where I have both a servo and a wifimodule connected to the 5V pin on the Arduino, but the servo does not seem to work. The servo does move but not when it should. I have looked in the forum and it seems as the servo needs more current(?) and my first taught was that I could connect the servo to a digital pin instead and set the pin to be OUTPUT and HIGH. But that does not work either. Do I need a external power source instead?

Tanks

All motors, including servos, should have their own power supply. The Arduino 5v pin cannot provide enough current and the Arduino may be damaged. Make sure that the servo power supply GND is connected to the Arduino GND.

The absolute max current from a digital I/O pin is only 40mA and 20mA would be more sensible - very much less than from the 5v pin.

...R