When you’re just starting out, you may be tempted to power your servos directly off the Arduino itself, connected to your computer. Unfortunately, that approach is doomed to failure.
As soon as a servo draws more than even a small amount of current, your laptop is going to shut down that USB port at best, or get damaged at worst.
What’s more, a microcontroller like an Arduino Uno is rated to a small amount of current on its pins, and even a single small servo can draw more than what is safe for the hardware, and a large servo can easily draw much more. When your servo draws too much power, your Arduino will shut down, since it’s sharing power with the servo, and may be damaged, overheat, or worse.
An Arduino is just not meant to or designed to power motors like servos. It’s really only meant to create the signal that controls those servos. If you’re providing the power for your servos through a pin on your Arduino, you’ll need a better plan.
If you want to use an Arduino Uno R3 or Arduino Mega, and have an “out of the box” ready to go power circuit for servos, Bottango makes a Servo Shield for exactly that:
The below are not offered as endorsements or recommendations, just listing some additional options on the market. Bottango has no association with these companies or their products.
Adafruit’s servo driver requires some light, soldering to assemble.
Though there are lots of clones of this board on the market, be aware that some clones have a low current rated reverse polarity protection mosfet that has been reported to be possible to overheat and burn out with just a few servos.
There are setup steps and limitations to be aware of when using a PCA9685 + Arduino Uno R3 + Bottango. See this FAQ for more details.
It’s certainly possible to build your own safe power circuit for servos. You’ll find advice online of all types on how to build a safe servo power circuit yourself using comodity parts you can find on Amazon, etc. These guides vary in quality from terrible ideas to smart plans. You’ll need to evaluate your own ability to execute, and to evaluate the safety of someone’s plan based on the requirements of your build.
If you want to learn robotics, investing the time to learn the fundamentals of electronics and safe circuit building will be a strong foundation for continuing your robotics journey.
One final hint, if you find that you can now reliably power a handful of servos, and want to power more, a quick solve isn’t to change your power solution to now handle lots more servos. Instead, duplicate your setup for a handful of servos and have two of them! The difficulty ramp of safely powering more and more servos on one single circuit is ever increasing, so if you’ve got something that works for you, consider copy and paste!