5v Backup power supply circuit or design

Hi all

I have a small ATtiny84 running a simple project. Nothing amazing.
However, this project is powered by a shared 5v supply from a 230v to 5v PSU module.

I would like to design some kind of PCB that would charge a backup battery from this 5v supply, and switchover to it seamlessly if that 5v drops out.

Rather than some boost converter bodge or similar, I was looking to actually design a single pcb with maybe a NimH battery on board (rather than a temperamental fire hazard LiPo).

Thoughts? I have had a Google and drawn a blank so far on suitable circuits or IC's.
There is an IC I have used before for the switching ( ICL7673CBAZA). Maybe that is a starting point.

I imagine I either charge a larger voltage battery with some kind of boosting circuit, then drop that to a nice 5v, or I charge a samller capacity battery and boost it.

Just wondered if anyone had an ideas

So exactly what voltage does it mandate? Would it run on 3.6 V (minimum from three NiMH)?

No. It needs 5v. Might get away with 4.5v if it runs OK on that (no particular load on the processor), but the OLED 128x32 screen attached is 5v (but it would run on 4.5v I imagine).
7673

There is a circuit on the datasheet for the ICL7673. Not sure what components it needs for charging the battery.

Still researching....

And then to run for how long?
Maybe a super-cap would be sufficient.

Not that long. Basically, long enough to store in EEPROM some data that I don't want to lose before it dies.

Yes, a supercap may well work.

Just found this....

Except I cannot find the booster IC MT3608 as a component anywhere

Odd! I thought they mostly ran on 3.3 V! :astonished:

You won't even need a super capacitor I don't think, how long does it take to write to EEPROM? Less than a second I think. Probably 4700μF would be plenty.

Quite a few od the 128x64 OLEDs have a regulator on the back, to accept 5V in and provide 3.3V for the OLED.

This Oled appears to be 5v only... can't see a regulator.
I don't want it to cut it super fine (as in a second or so). Also, it would have been nice to have a bit longer to maybe deduce why the original 5v has been lost in the first place.
I will have a play

Now with my appalling grasp of electronics....

If I had a 3v battery pack with an amperage ability of say 4A, and I then put that through a voltage booster circuit (MT3608 based for instance)....

If I set the output to 6v, the resulting load ability would be appropriately 2A? Not allowing for conversion losses.

You don't get something for nothing

Show us a picture.

I don't really want to dismantle the project just to get the screen out. Even if there is a regulator under the screen side (which is glued down), I am not starting to modify the screens to get over the power supply issue.

I have some other 128x64 screens here that do have the reg on the back. But it's not on the back of this 128x32

Correct.

I put it this way: A switch mode power supply (boost or buck converter) swaps voltage for current.

You know that power is voltage x current, yes? If you keep power constant and increase voltage then you get a corresponding reduction in current.

I know it sounded like a total newbie question!

Just thinking I could use some Nimh 1.2v cells I have here. Make 3.6V pack and run it through a booster module.

Excuse my ignorance. I am just tinkering

Just realised you are probably wondering why I don't just use 4 cells lol
I was thinking the exact same thing #Needsomesleep

Probably an important question for someone learning about electronics.

Here's another related question you might not have considered: Why is electricity distributed at high voltage?

Stops Pikeys stealing the cable (well, except it doesn't)

1 Like

Reading this datasheet is making my brain melt

https://datasheets.maximintegrated.com/en/ds/MAX712-MAX713.pdf

I was trying to configure the 'Typical circuit' on the first page to use a 5v supply to trickle charge a pair of Nimh batteries.

Therefore the battery pack it would be charging consists of 2x 1.2v 4.5Ah NimH cells (The batteries have to be at least 1.5v lower than the supply).
The cells I have here are 420mA x 16hrs for trickle charging.

Setting PGM0 and PGM1 is obvious enough (number of cells).

Not sure what R1 is supposed to be (High thermal limit trip?).

Not sure I understand the RSense value either. Would love to understand this stuff!

Especially annoying that the spec sheet says it's an easy to use IC. Not for me!

After a couple of years experience, you will probably understand it.

A lot of such devices are designed to be built into equipment by experienced electronic engineers. The designers\manufacturers of such devices rarely produce easy to follow tutorials.

Just as long as you do not intend to directly power a 3.3 V device, as the voltage on (trickle) charge is actually 4.5 V. :worried:

No, it's a 5v device. It seems to run on it fine.
Thanks