Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

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)?

share|improve this question
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. – Kit Scuzz Aug 25 '12 at 1:38
3  
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. – David Kessner Aug 25 '12 at 1:45
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. – Celal Ergün Aug 25 '12 at 7:59

5 Answers

up vote 8 down vote accepted

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.

share|improve this answer
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. – capcom Aug 25 '12 at 13:10
What if I used something like the 1N5817 fairchildsemi.com/ds/1N/1N5818.pdf ? Would that work to satisfy my purposes? – capcom Aug 25 '12 at 13:19
1  
@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. – stevenvh Aug 25 '12 at 14:06
1  
@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. – stevenvh Aug 25 '12 at 16:19
1  
@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. – stevenvh Aug 25 '12 at 16:21
show 6 more comments

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

share|improve this answer
+1. this devices are marketed as "Ideal Diodes" based power path controllers – Rocket Surgeon Aug 25 '12 at 2:44
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. – capcom Aug 25 '12 at 13:05

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.
share|improve this answer
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). – Wouter van Ooijen Aug 25 '12 at 7:17
  • 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.
share|improve this answer
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. – SRM Oct 4 '12 at 17:38

If you want true belt and braces, I,ve started using cuck/buck regulator boards from dx. one model, for under $4 will output any voltage from 3.3 to 30 volts with excellent regulation, beyond conventional 3 terminal regulators, you can input any voltage from 3 to 30v and it will step up or down to achieve set voltage. Not only that, they will deliver in excess of 2A continuous, no heatsinking required, and are tiny, with all parts on board, are about 12mm x 35mm. I stick them on little solar panels to charge gell batteries, and they are brilliant, reliable and super cheap, in that application they work like a mppt.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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