Running a 9g servo from Arduino's power.

I took the risk of running a 9g servo from arduino's power (5v). It ran fine and the arduino's voltage regulator did not blow. But I wonder if running a 9g servo with arduino's power will not cause problems. Like when the servo's movement is stopped an obstacle and it draws more current.

Also when I ran the "Sweep" code. It was not at all smooth. It was very jittery. Changing the delay value may change that.

If anyone wants to know, it costs around 6$ http://www.bhashatech.com/motors/81-micro-servo-motor.html . That's a bit higher than the China sellers, but where I live importing is a pain.

I took the risk ...

Reference: Servo - Arduino Reference
In part:

Note that servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

Personally, I may do this on a breadboard with a $2 Atmega328P-PU for testing quickly, but I would not risk an official board just to say that I got away with it...

Ray

driving a servo (1) from an Arduino may 'work'...

and may work with the sweep demos too..

but do NOT put them under load.. as they (as mentioned) pull WAY more current.. much more than any Arduino pin can handle safely.. thats for sure!

and while it may not break at that time.. the pin may get damaged..and give out at a later date.

as a rule of thumb.. if component needs more than say 20-40mA current.. look to powering it from an external battery source directly... and NOT through the Arduino.. (use the Arduino ONLY to toggle/control the component)..

  • also.. ensure all GNDs are tied together..

this helps with jitter and/or not working at all..

xl97, I think you may be confusing a signal pin with a power pin.

? Im not following? or seeing what I have wrong? (so I can correct or better explain)

Im saying only use Arduino for 'signal' pin.. not to power/drive the component (servo).. use an external power source

thanks.

much more than any Arduino pin can handle safely.. thats for sure!

I'm pretty sure the 5 volt pin can handle very much more than the 40mA you're quoting, that's for sure.
It's an Arduino pin, you have to admit.

oh.. duh I understand now... thanks.

yes,...an I/O pin has that 'rating' not the +5v pin..etc

(I am not sure what the voltage regulator is rated for?)

some servos can really spike and pull alot of current when under load)

Voltage regulator may be able to handle it, but will probably warm up immensely while under load. I'm guessing the linear regulator used is something like 500mA, so it might be enough. The jittering issue may be coupling noise back into the arduino. I'm not sure how bad servos are for doing this, but its usually one of the reasons why you separate the voltage supplies of your low voltage digital electronics from your motors.