Hi everyone , I'm learning how to to run the basic sweep code (from the Arduino lib) for a MG 996R servo motor using an Arduino Mega (that's the only microcontroller I have) but the motor wouldn't move when it's connected to the 5V pin of the board. However it moves fine when connected to the 3.3V pin.
I've tried using a DS3218MG servo motor and same issue.
Its worse than that, connecting motors and servos to the 5V line risks damaging your Arduino or even the computer its connected to over USB.
Never power servos and motors from the 5V logic supply - these devices are capable of generating voltage spikes that fry semiconductor devices, and more commonly
will just pull too much current and reset the Arduino repeatedly.
Ahhh that might explain why the servo motor keeps making this repetitive low noise.
Tho on the topic of damaging the computer USB port, I got a feeling something might have happened coz I recently noticed the port wasn't reading anything. Do you know any method to verify that?
If you don’t have any other Arduino boards (try getting some, you might have damaged your Mega by drawing too much current), just plug in a USB drive or something and see if you can do something with it.