Please could somebody review my following schematic, as it is my first attempt at a PSU circuit. The aim of this circuit is as follows:

I am using a 15V (150W) PSU to power an Arduino, 2 separate 12V circuits and trickle (float) charge a 7Ah SLA battery which takes over in event of mains failure. It should also be able to monitor the mains (PSU) supply via an Arduino pin and also check the battery is OK periodically.

Regarding the charging, there is a current-limiting resistor of 1k8 to provide 0.7Ah to the battery.

Regarding the monitoring, the PSU has a 12V relay (15V applied to coil is OK) in parallel to switch a contact from/to Ground, so I can monitor the Arduino pin to see if it is reading ground or not (PSU output is OK or not).

The current-limiting resistor is also connected via a 5V relay (controlled by Arduino pin) so when the Arduino pin is switched, the current-limiting resistor is no longer in the circuit. During this time while there is no trickle charge, if the battery is OK (suitable voltage present) another relay will be energised by the battery voltage which switches another Arduino pin to ground.

I have a voltage regulator to provide 12V to the parts that need 12V and another voltage regulator to provide 5V to the Arduino (building Arduino from components).

I've attached a picture of the schematic. If someone more experienced could have a quick look and tell me if it's OK or not (and if so where) that would be great, as I know battery charging done wrongly can have pretty nasty results...

The high current from the PSU is needed to run several more Arduinos at the end of an RS485 line, as well as some addressable RGB LEDs and some other 12V components. The battery monitoring doesn't have to indicate charge or condition, just whether it is connected and have enough voltage to run things for at least a few seconds (so it can log it) preferably longer as required, but not essential.

Thanks in advance.

EDIT: changed 2 relays to DPDT which will mean when the mains is on and the battery is not being tested the battery has no load. Also added a capacitor to cope with PSU/battery switchover (during relay operation)


simulate this circuit – Schematic created using CircuitLab

OP's schematic tidied up by @Transistor.

EDIT: Updated schematic to indicate 12v and 5v outputs and switched the erroneous wiring of the capacitor C1 to parallel (non-blocking)

From Battery manufacturers spec sheet:

Charge Current

Float charge current limit (A): No limit

Cyclic (or Boost) charge current limit (A): 1.75

From powerstream.com

Sealed lead acid batteries can recycle the generated gasses as long as they are being overcharged at less than C/3.

From mpoweruk.com

Trickle charging is designed to compensate for the self discharge of the battery. Continuous charge. Long term constant current charging for standby use.

  • \$\begingroup\$ I've tidied up the schematic for you. Note that C1 blocks DC going into your 7805 regulator. \$\endgroup\$
    – Transistor
    Commented May 31, 2019 at 21:26

1 Answer 1


Don't even attempt to build your own battery charger. Battery charging is a very complex problem with expensive stakes, and you should not do it as an afterthought to a design that's really about something else.

Buy a COTS 3-stage battery charger of good quality, because lead acid batteries are quite sensitive to mismanagement. Your scheme will require constantly adding water to the battery, and on an SLA that's pretty hard to do.

The COTS charger also has a UL listing, which dramatically eases getting your own listing, since you are not dealing with mains power.

Place your circuit in parallel with the battery terminals, so it is always powered, usually by the charger. Focus on conditioning that 11-15V battery+charger voltage for the Arduino.

Also think about load-shed as battery voltage falls. Using more than 30% of a lead acid battery's capacity is damaging to the battery if you do it on a regular basis. You don't want that.

  • \$\begingroup\$ Buying a separate charger is not feasible for this project (and also not the point of my question...) \$\endgroup\$
    – Sam Youé
    Commented Jun 21, 2019 at 19:31

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.