# May arduino hang when current is changing over time?

As in title. I've got quadrocopter where Li-Po is parallely connected to motors as well as to arduino. May current driftage cause arduino hangs ?

• What do you mean by "hang"? Aug 28, 2014 at 22:27
• Main loop freezeout. Aug 28, 2014 at 22:30

There really isn't any such thing as "Current driftage". If you draw too much current from your battery it will cause the voltage to drop, and if it drops too much, the Arduino will stop working.

If you have high current devices like motors being switched on the same power supply as your Arduino you should add a reservoir capacitor as close to the input of your Arduino as possible. That will even out short term drops and spikes in supply voltage as your motors switch.

If you draw too much current continuously then your supply voltage will drop and stay dropped, and a reservoir capacitor won't help. In that case you need a higher current battery (or separate power supplies for your Arduino and motors.)

Edit: From your question it's pretty clear that you don't understand voltage and current and how they relate. I suggest you read up on the subject.

In short, the amount of current that flows through a component is determined by the voltage divided by the resistance: i = v/r. (Where i = current in amps, v = voltage, and r = resistance in ohms.)

The current that will flow will be limited by the max current that the power supply can provide.

For a non-regulated supply like a battery, the voltage from the supply will drop as you draw more and more current.

For a regulated supply, the supply keeps the voltage constant up to it's maximum current limit.

• I understand voltage and current. I've just been thinking of "how can voltage drops and spikes (current driftage/drifts) affect arduino". Due to parallely connected motors I may experience such things right ? Sep 2, 2014 at 13:29

May i ask why you don't have a separate battery for the arduino? If it is because of weight, an arduino can run of CR2032 batteries, gives it its own power supply, this should solve the problem.

If you want a battery with more longevity Google "6v 2/3 battery" (2/3 the size of an AA battery), small with loads of voltage for the arduino and with some skilled programming it should last for a flight or two, and the +side, you can get it rechargable.

• I have limited space + its comfortable. Aug 29, 2014 at 11:17
• Throw in 1 or 2 CR2032 they cost less than \$1 and they take virtually no space at all, and it is more comfortable than loosing power mid air. Aug 29, 2014 at 12:03