Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Battery & Power Supply Detection

Status
Not open for further replies.

contagiouseddie

Member level 2
Joined
May 10, 2004
Messages
51
Helped
8
Reputation
16
Reaction score
5
Trophy points
1,288
Activity points
490
I need to know how to detect whether the power supply is coming from an external source or from the battery. I'm using a 3.3 V LDO regulator from Micrel and the output is in series with a diode. The battery is parallel with that diode and also comes with a diode. I attached the circuit here. Can I take the output of the regulator to know the power source as indicated by the red dotted line in the circuit. The MCU is taking power from the VCC point.

Thank you very much.
 

I can't see any reason why not ..
Just make sure that the voltage is within MCU's input range and if it is to high use a simple voltge divider ..

Regards,
IanP
 
Hi, No problem. Better put a resistor in series with you I/O line !!.

If you MCU is running and I/O line is low its battery time !! otherwise Mains time :).

Paul.
 
I have got the ideal ! you should comparator voltage of two source, if battery greater, Vcc = battery and against.
Good luck for U !
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top