Author Topic: Standard practice reverse polarity protection 12V wall wart  (Read 1388 times)

0 Members and 1 Guest are viewing this topic.

Offline mkiijamTopic starter

  • Regular Contributor
  • *
  • Posts: 155
  • Country: us
Hello, I'm design a simple little relay box with some TRS jacks for use in the audio world. I have a DC in jack and would like to add a diode to protect against somebody in the future jamming in a wallwart with the wrong polarity.

My first thought was just a diode on the 12v, which I was pretty sure how it was done, but then I started thinking that would just put the 12v on the "ground" part of the DC plug and thereby sending 12V into all the shared grounds through the whole system.

Does that make sense? What am I missing?
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14214
  • Country: de
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #1 on: May 07, 2023, 04:47:38 am »
A diode in series is a very common and viable solution. The 12 V from the wall wart are relative to its terminals, not an abolute thing. So with the diode one one side blocking current flow there is no problem with the positive side of the wall wart connected to the circuits ground. With the negative side effectively isolated (by the diode) it is free to move.  Instead of 0 and +12 V one could see the wall wart also as -12 V and 0 V - it only depends on where you put the reference potential to measure voltages too.

The main downside of the simple diode solution is that some 0.7 V of the supply voltage is lost. This is often OK with 12 V, but could be an issue with smaller voltages like 5 V.
 

Offline dobsonr741

  • Frequent Contributor
  • **
  • Posts: 674
  • Country: us
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #2 on: May 07, 2023, 05:46:59 am »
A popular solution is a high side P mosfet, this is how: https://components101.com/articles/design-guide-pmos-mosfet-for-reverse-voltage-polarity-protection

Is eliminates a voltage drop of the diode.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2221
  • Country: 00
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #3 on: May 07, 2023, 07:00:35 am »
Alternatively, you can add a diode (in reverse direction) parallel with the powerlines and add a fuse in series with the power input.
The diode needs to be able to withstand the peak shortcircuit current when the fuse blows.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9508
  • Country: gb
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #4 on: May 07, 2023, 12:17:46 pm »
... and the fuse would  need to be small enough that it will blow under the short circuit current of the wall wart (depending how beefy it is - some may go into overcurrent shutdown / limiting). An alternative would be a PTC thermistor to save the hassle of fuse replacement.
Best Regards, Chris
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1444
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #5 on: May 07, 2023, 01:00:18 pm »
You can also try a Schottky diode just watch out for the leakage current if the load is very light, maybe add a parallel resistor 5k if not a problem.  Those diodes have less voltage drop some as low as 0.2 volts or so.
 

Offline BeBuLamar

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: us
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #6 on: May 07, 2023, 01:58:10 pm »
I think most Walwart rated for 12VDC would put out more than 12VDC any way so losing 0.7V for the diode wouldn't be a problem.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #7 on: May 07, 2023, 06:27:06 pm »
Hello, I'm design a simple little relay box with some TRS jacks for use in the audio world. I have a DC in jack and would like to add a diode to protect against somebody in the future jamming in a wallwart with the wrong polarity.

My first thought was just a diode on the 12v, which I was pretty sure how it was done, but then I started thinking that would just put the 12v on the "ground" part of the DC plug and thereby sending 12V into all the shared grounds through the whole system.

Does that make sense? What am I missing?
Why do you need reverse polarity protection for relays?

The only reason would be the back-EMF protection diodes passing too much current, but you could use RC networks instead.
 

Offline BeBuLamar

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: us
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #8 on: May 07, 2023, 06:30:57 pm »
Hello, I'm design a simple little relay box with some TRS jacks for use in the audio world. I have a DC in jack and would like to add a diode to protect against somebody in the future jamming in a wallwart with the wrong polarity.

My first thought was just a diode on the 12v, which I was pretty sure how it was done, but then I started thinking that would just put the 12v on the "ground" part of the DC plug and thereby sending 12V into all the shared grounds through the whole system.

Does that make sense? What am I missing?
Why do you need reverse polarity protection for relays?

I wonder the same thing but I guess the OP uses other electronics to control the relays like a microcontroller or something. Relays generally don't have polarity but I ran in to some relays as well as contactors that won't work or not well if wired reversed.

The only reason would be the back-EMF protection diodes passing too much current, but you could use RC networks instead.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #9 on: May 07, 2023, 08:37:05 pm »
I'm not psychic.

Are you referring to another topic, or is it a common project, I'm completely ignorant of?

The original post doesn't mention microcontrollers or anything else, just relays. I thought it was some sort of multiplexer/switch box.

If there's a microcontroller in there, just put the diode in series with the regulator. Use 12V relays with zeners across the driver transistors. That way, if the power is reversed, the relays will just turn on. No harm done. The good thing about zeners is they absorb more energy, than a plain old diode, turning off the relays more quickly, which reduces arcing on the contacts.
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3391
  • Country: ua
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #10 on: May 08, 2023, 02:00:17 am »
here is reverse polarity and overvoltage protection for 12V:
 

Offline BeBuLamar

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: us
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #11 on: May 08, 2023, 11:24:01 am »
If you worry about someone use a wallwart that has wrong polarity they shouldn't you also worry that they use a wallwart of different voltage?
 

Online SmallCog

  • Frequent Contributor
  • **
  • Posts: 292
  • Country: au
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #12 on: May 08, 2023, 10:50:22 pm »
Another option, elegant in some ways and not in others, is a bridge rectifier

Use the AC terminals for your input, the +ve and -ve terminals for your circuit

The device will then run off of either polarity of plugpack (the elegant part) but there'll be voltage drop from the diodes (the un-elegant part)

 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 3391
  • Country: ua
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #13 on: May 09, 2023, 12:09:21 am »
bridge rectifiers and diodes leads to voltage drop, it is very critical if current is high, because it will leads to a high power loss, diode overheating and low power voltage, which may cause to some issues in the powered device.

Using relay which enable power from a proper polarity is the best solution.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14214
  • Country: de
Re: Standard practice reverse polarity protection 12V wall wart
« Reply #14 on: May 09, 2023, 09:47:27 am »
A bridge rectifier has twice the diode drop. So it is not such an attractive solution.
The relay solution needs extra power - so it depends if this is a good or bad solution.
The planed relay circuit would very likely only use a more moderate power and also work with 0.7 V lower supply.

The main solutions available are:
1) diode in series :   
   + cheap and reliable
   -  loose some 300-700 mV
2) MOSFET (can also be N channel in the neg side) as a kind of ideal diode:
   + low voltage loss
   - main let transiensts trough
3) relay:
   + low voltage loss
   - high costs and quite some power drain
4) diode in reverse + fuse
   + low dop, fuse may be useful  anyway
   -  may damage supply or need fuse replacement
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf