How to switch between sources of voltage?

Thread Starter

bluntpika

Joined Sep 5, 2019
6
I want to create a door lock system that uses the wall outlet. One thing I also want to do, if the power ever turns off, is somehow get the circuit to switch to using a battery instead, so the door can still be unlocked. How would I go about doing this? I spent some time looking for the solution, but couldn't think of or find one.
 

BobTPH

Joined Jun 5, 2013
11,505
One way to do this is the have the line power a little higher in voltage than the battery. Then you put a diode between each and device. The higher voltage will override the lower one, so when the AC power is on, the battery is not used, when the AC power is off, the battery is used.

Bob
 

Thread Starter

bluntpika

Joined Sep 5, 2019
6
hi,
A low voltage DC system would be one option, a simple pair of diodes could be used.
E
I'll definitely look into that. Thank you for such prompt replies. I was honedtly not expecting them to be so fast. How would I configure/wire up the diodes to get that to work?
 

Thread Starter

bluntpika

Joined Sep 5, 2019
6
One way to do this is the have the line power a little higher in voltage than the battery. Then you put a diode between each and device. The higher voltage will override the lower one, so when the AC power is on, the battery is not used, when the AC power is off, the battery is used.

Bob
I'm having trouble visualizing the connections. The battery is wired up in series with the wall outlet, but the wall outlet is above the battery, or closer to the load. What would be the configuration of the diodes?
 

ericgibbs

Joined Jan 29, 2010
21,439
hi,
I would do a search for a suitable low voltage locking unit, then we can finalise the volts/current etc.
Let us now when you have found a lock unit.
E
 

Thread Starter

bluntpika

Joined Sep 5, 2019
6
hi,
I would do a search for a suitable low voltage locking unit, then we can finalise the volts/current etc.
Let us now when you have found a lock unit.
E
I want to try and make the locking unit on my own. I plan to buy an ESP 7/8" Thumb Turn Lock (https://www.easykeys.com/ProductSpe...2TsS9aEWiONQUBgf5c6RW41irJEuNEPEaAiO3EALw_wcB) and a 9g micro servo motor using 4.8V (https://www.robotshop.com/en/9g-micro-servo-motor-4-8v.html). Going to try and attach the motor onto the lock, so that it'll turn it when activated.
 
Top