21
\$\begingroup\$

To power my microcontroller (ATmega8), I am using a ~5.4V voltage source. I want to ensure that I don't accidentally connect the voltage source in reverse, and figured a diode would be a nice way to accomplish this as from what I have learned so far, a diode allows current to flow in one direction, and blocks it in the other.

But what I also learned is that diodes create drops in voltage. I have a few of the typical diodes (1N4001, 1N4148, etc.), and would like to use them to achieve the aforementioned result without dropping the voltage as it would be too low to power the IC.

My question is, is there any way to do this with a diode? Or do I need some other component (if so, what would you recommend)?

\$\endgroup\$
3
  • \$\begingroup\$ What voltage would be "too low" to power the IC? Is 5.4V the minimum operating voltage? If you can go down to 5V, a germanium diode has only a ~0.3V drop. \$\endgroup\$
    – Kit Scuzz
    Aug 25, 2012 at 1:38
  • 7
    \$\begingroup\$ There is a way to use ONLY a single MOSFET instead of a diode. The MOSFET will give you almost zero voltage drop. I'm sure if you Google it you'll see it. The reason why this is a comment instead of an answer is that I don't have time right now to google it myself and draw some schematics. I'll +1 any answer that does this. \$\endgroup\$
    – user3624
    Aug 25, 2012 at 1:45
  • \$\begingroup\$ Probably this is not an answer for your question but I remember we used to have vacuum tube diodes and they had no such problem. Just wanted to make some nostalgia. I know that they have different problems. \$\endgroup\$ Aug 25, 2012 at 7:59

7 Answers 7

17
\$\begingroup\$

You do not want an as low as possible voltage drop. The ATmega8 is specified for 2.7 V to 5.5 V operation, and that 5.5 V is actually 5.0 V with some margin. In the datasheet you'll see many parameters specified at 5 V.

Your supply voltage is ~5.4 V. What does the "~" mean? That it may vary by a few percent? 3 % higher gives you 5.56 V, which is out of spec. It won't cause the AVR to go up in flames, but it's a good habit to stick to the specs.

So let the voltage drop. Allow a 500 mV drop. The ATmega will consume only a couple tens of mA. A 1N4148 will drop typically 900 mV at 50 mA, which I would accept gladly, but which you may find too high. In that case go for the Schottky, like also suggested in other answers. You don't want a Schottky diode with a 100 mV drop, go purposely for one with worse specs. This one will drop 450 mV at 100 mA.

\$\endgroup\$
11
  • \$\begingroup\$ That's great advice, thanks. By the "~" I meant about 5.4x V. The thing is, I would be using different voltage sources too. Sometimes I would use the 5.4 V one, but sometimes a 5.0 V one (from a USB port for instance). It don't want to dip below 5.0 V, that's for certain, which is why I was interested in finding a component which would cause a very small drop in case I use a flat 5V source. Thanks, let me know if you have any further suggestions, I'll grab some of the Schottkys you mentioned. \$\endgroup\$
    – capcom
    Aug 25, 2012 at 13:10
  • \$\begingroup\$ What if I used something like the 1N5817 fairchildsemi.com/ds/1N/1N5818.pdf ? Would that work to satisfy my purposes? \$\endgroup\$
    – capcom
    Aug 25, 2012 at 13:19
  • 1
    \$\begingroup\$ @capcom - The 1N5817/8/9 was actually the first diode I looked at, but I chose the other one because the voltage drop is a bit higher. Fig.2 in the datasheet says 350 mV for the 1N5818 at 100 mA, 400 mV for the 1N5819, so yes they are suitable too. But why don't you want to go below 5 V? The AVR can handle it easily. \$\endgroup\$
    – stevenvh
    Aug 25, 2012 at 14:06
  • 1
    \$\begingroup\$ @capcom - If Vcc is 4.8 V then that's what the output will deliver also. But if other devices are also powered from that 4.8 V they don't require 5 V, they'll need 4.8 V as well. Because it's an imperfect world and a lot can happen to a digital level IC designers provide a wide margin: most often anything above 0.7 x Vcc will be seen as a high level. So even if you connect the 4.8 V output to a 5 V device it will see a high level, even 3.5 V would do. \$\endgroup\$
    – stevenvh
    Aug 25, 2012 at 16:19
  • 1
    \$\begingroup\$ @capcom - It does shut it off like a switch. If you would use a switch instead of the diode, and open it you would also have the full voltage of 5 V across it. \$\endgroup\$
    – stevenvh
    Aug 25, 2012 at 16:21
33
\$\begingroup\$

An actual diode is limited by the laws of Physics [tm]. Actual voltage will depend on current and voltage and device used but, as a guide, under very light loading a Schottky diode may manage somewhat under 0.3V but this typically rises to 0.6V + as loading approaches maximum allowed. High current devices may have forward voltage drops of well over 1V. Silicon diodes are worse by a factor of two to three.

Using a MOSFET in place of a diode provides a resistive channel so that voltage drop is proportional to current and can be much lower than for a diode.

Using a P Channel MOSFET as shown below causes the MOSFET to be turned on when the battery polarity is correct and turned off when the battery is reversed. Circuit and others from here I have used this arrangement commercially (using the mirror image arrangement with an N Channel MOSFET in the ground lead) for a number of years with good success.

When the battery polarity is NOT correct the MOSFET gate is positive relative to the source and the MOSFET gate source 'junction' is reverse biased, so the MOSFET is turned off.

When the battery polarity is correct the MOSFET gate is negative relative to the source and the MOSFET is correctly biased on and load current "sees" on the FET Rdson = on tresistance. How much this is depends on the FET chosen but 10 milliohms FETs are relatibely common. At 10 mOhm and 1A you get only 10 milli-Volt drop. Even a MOSFET with Rdson of 100 milliohm will only drop 0.1 Volt per amp carried - far less than even a Schottky diode.

enter image description here


TI application note Reverse current / battery protection circuits

Same concept as above. N & P channel versions. MOSFETs cited are examples only. Note that the gate voltage Vgsth needs to be well below the minimum battery voltage.

enter image description here

\$\endgroup\$
2
  • 1
    \$\begingroup\$ +1. this devices are marketed as "Ideal Diodes" based power path controllers \$\endgroup\$
    – user924
    Aug 25, 2012 at 2:44
  • \$\begingroup\$ Hmm, that is interesting. Thanks! Do you recommend any common MOSFETs to have in my parts bin? I am just starting to build my collection of components, and could really use some recommendations. \$\endgroup\$
    – capcom
    Aug 25, 2012 at 13:05
11
\$\begingroup\$

Two ideas:

  1. Use a Schottky diode instead of the normal PN junction diode. Schottky diodes have less voltage drop than PN diodes.
  2. Connect the diode across the supply so that it is normally reverse biased. When the power is connected backwards the diode will conduct and prevent the reverse voltage from exceeding the diode's forward voltage drop. You will need a current-limited supply or a fuse upstream of the diode so that it isn't asked to carry unlimited current.
\$\endgroup\$
1
  • \$\begingroup\$ I call 2. the 'fools diode' and include it in all my circuits. It has saved me quite a few times :) It can be combined with a fuse or polyfuse (self-resetting). \$\endgroup\$ Aug 25, 2012 at 7:17
5
\$\begingroup\$
  • A Schottky power diode will give you a voltage drop as low as 0.2V
  • There are many connectors available which cannot be plugged in reverse.
  • Many people use a three pin connector with two wires attached. In this case plugging in reverse does not connect both wires.
\$\endgroup\$
2
  • \$\begingroup\$ Up voted for the purity and simplicity of your third bullet point. As soon as I read that I knew my solution and proceeded to kick myself for not thinking of something so perfect and simple and for spending 3 hours researching P-Channel MOSFETs. Thank you. \$\endgroup\$
    – SRM
    Oct 4, 2012 at 17:38
  • 1
    \$\begingroup\$ If using a 3-pin connector with symmetry that permits reversal, instead of an open circuit, make the pinout symmetric as well. For example, positive on the center pin, return on both outer pins. \$\endgroup\$
    – Ben Voigt
    Jan 24, 2017 at 7:07
1
\$\begingroup\$

You guys miss how to get a zero voltage drop diode. Take 2 diodes, say 1Nwhocares. Bias one on via a resistor, get the .6V or so out and apply it to the anode of the other diode via a second resistor. Run the second diode's cathode to ground with a third resistor. The second diode is now biased on by the first diode. Put a cap input to the second diode's anode to get DC isolation. Shazam, an input AC signals gets rectified without any appreciable diode voltage drop. Forget the germaniums and Shottkys, at best you get like .3 v. Easy to adjust my circuit to get a .05 voltage drop. Just make the first diode's current higher to obtain a higher voltage drop. Makes a zero crossing comparator really pretty. Say good by to phase errors. Tweaks? Put a cap across the first diode, get rid of noise. Make the resistor going to the second diode's anode rather large. Helps with small signals.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ you might have misread the question, the OP asked about protecting against polarity reversal. \$\endgroup\$ Feb 4, 2015 at 4:39
  • \$\begingroup\$ I'd like some clarification on this, but because it's off topic here, please see my question about it: electronics.stackexchange.com/q/164782/53375 Thanks! \$\endgroup\$
    – AaronD
    Apr 14, 2015 at 16:15
  • \$\begingroup\$ @John M. Kelly, Clever trick… We can name it "diode compensation" or, more generally, "passive compensation" (removing something positive by equivalent negative). As you described, I have seen it for the first type in H&H. Of course, someone can say that this is simply the biasing idea. Anyway... I am sorry you left SE... \$\endgroup\$ Aug 7, 2020 at 10:47
0
\$\begingroup\$

A Schottky diode would be a good solution and it's what I ended up choosing for power path polarity protection on a PIC development board I made this week. Schottky diodes have a very low voltage drop compared to many other diode types, notably the general purpose ones. A popular use for Schottky diodes is to use them for high frequency circuits since they have a fast switching speed, though they are also known for their low forward voltage drop. A drawback to them, however, is their relatively lower breakdown voltage compared to other diode types. If you're just looking for polarity protection for a 3.3v/5v microcontroller or other low-voltage application, this might be ideal for you because the low voltage drop is appealing and the low breakdown voltage is still probably higher than you need. Pick a diode with specs that match your required maximum voltage drop at expected current draw, load current draw, and breakdown voltage. Digikey.com makes this very easy; it should be very straightforward from there.

\$\endgroup\$
0
\$\begingroup\$

To protect a circuit from reverse polarity using a diode but with no diode drop, replace the diode with a fuse, and connect a fairly large diode in reverse polarity across the power rails, after the fuse of course. It must be able to continuously handle the maximum current of the fuse as well a high pulse rating, which diodes generally can do.

This is how all the power inverters work. They can draw hundreds of Amps at 12 Volts, but reverse polarity only blows the fuses.

Another solution for low current devices is to replace the fuse with a resistor. The Voltage drop across the resistor can be less than a diode at low currents.

Another way is to use a diode in a MOSFET, since a MOSFET has a diode inside it. To protect the positive supply, use a P-channel device in such a way that the diode protects the device from reverse polarity with the gate turned off. Now you just have to make some logic (such as a single resistor and small signal diode) to turn on the gate when the polarity is correct, then that .6 Volt diode drop will now turn in to the MOSFET's Rds MAX resistance or less. MOSFETs turn on in both directions.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.