I need to have a 12v battery attached to the arduino for constant running of arduino, but the problem is the charger that will charge the battery. Yes, there are a million ups systems for that but it will be expensive for just one arduino based system so i was thinking will it work it i connect the arduino to the battery terminal and also connect some automatic 12v battery charger with it too at the same time? It will charge the battery when it's low and also arduino will start getting the power from the battery (if there is power failure)


1 Answer 1


Yes you can probably do that and basically that's how most (non professional) UPSs work as well. They consist of a Lead-Acid battery, a charger which charges that battery continuously, an inverter (to make mains voltage from 12V) and some control circuit to switch to the power from the inverter when the mains is off line.

If you're using a Lead-Acid battery then it is OK to charge it continuously. The charging will stop or switch to a very small charging current when the battery is full. As a Lead-Acid battery charges its voltage will rise and at about 13.8 - 14 V it is full. As most chargers supply not more than 14 V charging will stop by itself.

If you do not have a charger yet I suggest to select one with a low charging current as that will save power. Initial charging (when the battery is empty) will take long but as the system will mainly be mains powered, that isn't an issue.

Then indeed just supply the Arduino directly from the battery and you're done.

  • \$\begingroup\$ Will this work with maintenance free battery too? I was planning to use maintenance free battery for this system. \$\endgroup\$
    – ZBT248
    Jan 25, 2018 at 9:10
  • \$\begingroup\$ Yes, as far as I know all modern Lead-Acid batteries are maintenance free. In the old days car batteries could be filled with distilled water (when some had evaporated) but these days also car batteries are completely sealed. There isn't any maintenance to be done. \$\endgroup\$ Jan 25, 2018 at 9:12
  • \$\begingroup\$ Professional gate motors use this system as well. Due to the high current draw of the actual motor. \$\endgroup\$
    – Makoto
    Mar 23, 2018 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.