Can anyone please instruct me on how to make a circuit that can be operated by both battery and ac adapter, and when it notices the ac adapter is not hooked, then it switches to batter power? Thanks! Lee P.S.- A diagram would help, but any info is helpful