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.
