Go Down

Topic: How to power 3 servos with one arduino? (Read 2219 times) previous topic - next topic

GoForSmoke

Arduino --- from any I/O pin try to keep 20mA or less. Total draw = 200mA. See why less? Less adds less to the total.

So you connect resistors and transistors to pins, or you connect drivers or opto-isolators and run the main power through that.

But I look at what you got and if there's a house current version of your valves then look into 5V control power relays that switch 120/240VAC direct. They might handle a good deal of DC too. Then you won't have to write motor control, the relay does it.

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

Grumpy_Mike


Thanks for the help gentlemen i really appreciate it. Just one more question. If the servo I am buying does not have a spec on current draw, could i just measure the resistance of the servo, and use Ohm's law? Is it applicable here or is the resistance constantly changing?

That will tell you the stall current of the motor so that is the absolute maximum it will take. In normal operation it will take much less, maybe 8 or 10 times less.

Quote
or is the resistance constantly changing?

The resistance is constant but the current through the inductor depends on the energy coupling between the magnetic field and the load you put it under.

remedemic

So all in all, how should I determine how much current a servo will draw if I cannot find a spec? Will it not matter since it will most likely be in the range of a battery's current output capability?

pito

EE is about measurements. So the best way to determine the current is to measure it under typical load..

GoForSmoke

Make sure you know the startup surge. Power Supply should rate a good bit higher for long life.

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

JimboZA

retrolefty says in a number of posts that he allows 1A per servo...  The datasheets are very quiet on the matter.
"Could you do the egg bacon spam and sausage without the spam then? "

No PMs for help please.
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

GoForSmoke

It's not a good idea to just supply a bit more power than you need. Overestimate then double that and your PS will live longer. Same with a PC, always get extra power supply.

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

oric_dan


It's not a good idea to just supply a bit more power than you need. Overestimate then double that and your PS will live longer. Same with a PC, always get extra power supply.

Good advice.

Erni

I once measured the stall current of this very popular 9g servo.

It was 700 mA


http://www.hobbyking.com/hobbyking/store/__662__HXT900_9g_1_6kg_12sec_Micro_Servo.html

Retroplayer


It's not a good idea to just supply a bit more power than you need. Overestimate then double that and your PS will live longer. Same with a PC, always get extra power supply.


But then on the flip side of that, when something goes disasterously wrong having a huge supply of current available, your circuit will turn to bacon long before the power supply trips whatever protection it has or blows open itself. I guess it depends on whether you want to replace the supply or replace your entire circuit. GoForSmoke indeed! ;)

(Just teasing... it is a very good rule of thumb -- but consideration above is real.)

GoForSmoke

Design the circuit right and the expensive parts won't fry. Of course design it right and it will take physical damage to cause anything to fry.

On PC's, power supplies dieing has been the cause of many other parts getting replaced as the spikes kill them even before the PS karks it.

But then I had one buddy who didn't believe that grounding really matters. He would go whole months between PC's quitting on him.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

Go Up