12V applied to a 9V battery -> problem? - Page 1
Forum section: electronics / beginners

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 16, 2020, 06:43:53 pm
content: HiI have a project I want to be able to run using a 9V battery, or a 12V DC power adapter (the voltage is used for audio so I am thinking might as well get 12V instead of 9 from the DC supply).I was thinking wiring these in parallel, i.e. battery negative to GND and battery positive to +12V in.What will happen is someone leave a 9V battery connected but plugs in the power adapter?ThanksSimon

author: mikerj
author_rank: Super Contributor
timestamp: September 16, 2020, 06:50:18 pm
content: The battery will get hot, and possibly generate enough internal pressure to burst. It will invariably leak even if it doesn't burst.Since a significant amount of current will be flowing through the battery, your power supply may also get hot and may not be able to maintain 12v on it's output. Bottom line is, don't do this.

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 16, 2020, 07:23:54 pm
content: Ha ha ok, it's pretty clear, thanksHow would you handle it in terms of design, then?And if the DC is 9V?

author: Etesla
author_rank: Regular Contributor
timestamp: September 16, 2020, 07:47:09 pm
content: Just put a diode in series with the 9V input. If you are worried about someone putting 12V on the 9V input, and 9V on the 12V input, then put a diode in series with the 12V input as well.

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 16, 2020, 08:53:26 pm
content: Oh yea I did not think about that! Well they both need reverse voltage protection, in case someone uses a wrong polarity supply or if someone puts the battery the wrong way, but I was thinking using only one diode connected to both the battery positive and the +12V.But then with a diode on each input it will also protect the battery if someone decides to plug 12V while the battery is still on (the idea is to use either the battery or the 12V DC power supply), correct? Something like the attached diagram.

author: Zero999
author_rank: Super Contributor
timestamp: September 16, 2020, 08:59:52 pm
content: Yes, two diodes is ideal. If you use a Schottky diode, then the voltage drop will be lower than a silicon diode. If you don't mind surface mount parts, the BAT54C has two diodes in one package and should do the job.https://www.diodes.com/assets/Datasheets/ds11005.pdf

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 16, 2020, 09:00:53 pm
content: Ok, great! The BAT54C looks good

author: mikerj
author_rank: Super Contributor
timestamp: September 17, 2020, 08:11:54 am
content: Quote from: simonlasnier on September 16, 2020, 09:00:53 pmYou didn't mention the expected current draw of your device, make sure whatever diode you use is sufficiently rated. If you are powering this from a PP3 size 9v battery, then hopefully you'll be drawing somewhat less then the 200mA maximum of a BAT54C.

author: Refrigerator
author_rank: Super Contributor
timestamp: September 17, 2020, 08:31:10 am
content: Most DC barrel jacks have a switched ground, much like in the schematic above. This switch is there for the purpose of switching between the battery and power supply.Also i think a single diode in series with the battery will be good enough because the battery voltage will always be lower than the the power supply voltage. Unless you leave the power supply plugged in when it's off, that is.But shottky diodes are cheap and 0.2V drop compared to 9 or 12V is nothing so you can use two to be 100% safe.

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 19, 2020, 03:25:30 pm
content: Thank you all for the help. I need the two diodes because I wanted reverse voltage protection, I just did not think it will help protecting the battery as well