Electrical – Share battery pack with Arduino and DC motors

arduinodcmotor

I used 6 rechargeable AA batteries (total 7.2V) to power my Arduino (UNO R3) Car's two DC Motors (using L293D IC as motor driver). I used separate 9V battery to power Arduino itself. But I want to share same 6 battery pack to power my Arduino via barrel jack. Please suggest me how can I do this? What precautions should I take? Like decoupling capacitors or any other?

Best Answer

It is possible to do what you are asking about, but there are some potential problems.

First, motors generate voltage spikes. You will want to prevent those from getting into your Arduino and possibly causing damage. Capacitors are a good start but you should put some additional protection on the power lines like a varistor or TVS to knock the voltage spikes down.

The second issue is the voltage selection. The Arduino runs on 5V. Your battery is 6V. Voltage regulators require something called “head room”. This is the minimum voltage above the regulator output voltage. Depending on the type of regulator, this might be .5V or so, on up to 1.5V. If the input voltage is not high enough, the regulator won’t work. A 6V battery does not give much head room for a 5V regulator.

A 6V motor will probably work pretty well down around 5V in many applications, as the battery becomes discharged. The Arduino will stop working well before the motor is the issue. You are likely to find that you don’t get very good battery life before the project stops working unless your 6V battery is very large and your motor does not draw much current.

Related Topic