USB Ports stop working whenever I use an arduino and servo

My laptops usb ports stop working whenever I use an arduino and servo motor. The servo is powered directly by the arduino and the arduino by my laptop.
I could upload the code a couple of times but then my usb port stopped working.
All my usb ports lost functionality for all pen drives, wireless keyboard and mouse modules, etc.
This has happened twice, for different codes and two different arduino uno boards.
The same setup has no problem on my friends laptop.
I could get the USB ports to work again by draining my laptop battery completely and then recharging.
Any ideas on whats causing this and how to fix it?

I'll just say that using your Arduino as a power supply for a servo that could draw in the neighbourhood of an Amp (or more, depending on its size) every time it starts moving, and asking your computer's USB port to supply that, is asking for trouble. As you have discovered. Use a separate power supply for that servo.

And don't forget to connect the grounds.

1 Like
  • Power your servo from an external power supply not the Arduino.
1 Like

Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.

You overloaded the USB port, causing it to shut down. This isn't a good practice, as it can potentially damage your laptop. Never connect anything inductive, like motors, directly to a USB port. It’s much cheaper and safer to use an external power supply for motors or other inductive loads than to risk damaging your laptop or needing costly repairs.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.