A thing, that has to do with electronics

Hi Team. Particularly @electrotechs, team.

I have some electrical gizmos, that I want to plug into the wall, that Ideally would have some kind of rechargeable battery in. I need of your tasty volts, output, but would like to be able to plug my gizmos in, sometimes, and still have them work, preferably without flicking some kind of switch, and preferably in some kind of easy-peasy pre-build module kind of way.

An idiots diagram is as below.

Takk!

Like this?: Texas Instruments’s TPS2113A autoswitching power multiplexer allows you to select which of two power sources is connected to a load while blocking reverse current into either of the sources. It has an adjustable current limit that can be set as high as 2 A and an adjustable switching threshold. Each input power rail on the multiplexer can be supplied with 2.8 V to 5.5 V, and the board also breaks out a USB Micro-B connector that can be used to supply one of the rails.

Up to 5.5v but still pretty close, lol.

Datasheet because their link to it is broken: http://www.ti.com/lit/ds/symlink/tps2110.pdf

ok, cool. that looks promising. Ideally, I’d like to be able to charge the battery whilst plugged in though, as opposed to switching between them

You could also use two diodes. Like https://i.stack.imgur.com/aiued.png - jusr pulled this off google so don’t pay attention to the part numbers.

So you need a charge controller for battery as well as switching between power sources?

yus :slight_smile:

I’m using this one in my bike computer: https://coolcomponents.co.uk/products/powerboost-1000-basic-5v-usb-boost-at-1000ma-from-1-8v

There’s loads of power management boards about. Is it defo 6v you need ? Most are tuned to 5v for usb

Courty

I’m using this one for my xmas lights:

You can solve your problem with a resistor and a diode.

Ideally , the cheapest way to charge an NiMh battery is feeding it with a current that is capacity/2 , you can use a beefy resistor and a diode , to avoid the battery to discharge itself in case you leave the charging circuit on but not powered.

That’s it.