Electrical – how to design power for arduino and servo

arduinobatteriespowerservo

I'm designing a system where an arduino (3.3v) will run continuously, and occasionally turn a MG996R servo – this servo is pretty strong and can draw more than 2 amps.

The servo runs fine off 4 AA batteries – I want to make the arduino run off these batteries as well. Is this a good idea? Or should the servo and arduino batteries be separate?

If possible, I'm guessing I'll need a capacitor from what I see in other posts. If so, is there a formula for a capacitor size that I need for this kind of servo?

Thanks for your help, any tips or pointers would be greatly appreciated

Best Answer

Since Arduinos have modest current consumption, any linear regulator will do. I own a few Atmel boards which have a 662K regulator on them, these can handle 6V just fine.

I'm not sure whether adding a large cap to protect from voltage drops will do any good. By the time your battery drops from 6V to 3V under load it's probably unsuitable to run the servo anyway. If you need your Arduino running while the servo is struggling to start, I'd add a small ultracap (0.22 - 0.5F) to Adruino power lines. You'll need to carefully evaluate the power consumption to know how much time exactly you can run off this backup power.

If you want to maximize battery life, I suggest you look into low power modes provided by Atmel controllers. Take a look at this library for example.

Using a switching regulator will probably worsen battery life: these regulators are only efficient when substantial power is needed. At currents below 1mA linear regulators beat switching regulators by orders of magnitude in terms of efficiency - the 662K I have mentioned consumes only 1μA, while an LM2575 wastes 5mA.