I've got a Tower Pro SG90 9g servo and have connected it to the Arduino Uno R3 (which is connected to USB) as stated in the example sketch "Sweep". I get 2 problems:
The servo makes small judders and rotates approx. 1 degree every second. OR
The servo will make two full sweeps then stop, the led on pin 13 will flash, then the servo will start again.
These two issues will interchange with each other, with no external changes. ie. changing the sketch or the connections.
Im trying to learn here, so if someone could tell me not only how to fix this issue, but also what the issue actually is, so I understand for the future that would be awesome!!
Thank you! I was worried I had damaged my board! Why would the example say to wire the servo up like that? Is it because the servo in the starter kit draws less current?
yes, the start package servo is sooo small its disturbance is within the limits the arduino can handle.
but mostly even if they have values the arduino can clearly handle, they still produce power peaks and drops way over the stated values and so out of the range the arduino can handle.
search for "arduino servo external power source" and massive tutorials will show up.
key is to give arduino and motor seperate power & to connect the motors external power GND to the arduinos GND.
In general never connect any motorized device to a logic supply - motors can be generators
and develop too high a voltage, they are inductive and could put over-voltage spikes on the
supply, and often will take too much current causing the supply to dip and reset the MPU.