Author Topic: What is the most indestructible voltage regulator that won't fail short?  (Read 2431 times)

0 Members and 1 Guest are viewing this topic.

Offline seqcstTopic starter

  • Contributor
  • Posts: 11
  • Country: us
I am extremely worried about my voltage regulator failing short and frying my electronics see: AMS1117 short circuit protection not working (https://electronics.stackexchange.com/questions/530181/ams1117-short-circuit-protection-not-working)

Some context: I'm a beginner at electronics I want to power a handful of 5V electronics - some passive infra red sensors which draw only 100-200 uA each, as well as some active radars which may draw around 100mA each.

Maximum current draw will be less than 300mA.

The datasheet on my PIR sensors say that a stabilized power supply is needed so I think I do need a voltage regulator to regulate the already-regulated output of my wall wart. Now I'm wondering which voltage regulator I should get and whether I should get a 6V or 7.5V wall wart.

The advantage of the 6V wall wart is that even if the voltage regulator fails short, it won't fry my components (which can tolerate up to 6V), whereas if voltage regulator fails short with the 7.5V power supply then the 7.5V input may fry my sensors.

But the advantage of the 7.5V power supply is that it allows me to chain two voltage regulators - maybe one LDO to step it down from 7.5V to 6V, and then another LDO to step it down from 6V to 5V? That sounds more complicated but it should result in a less noisy power supply? And also, having two voltage regulators provides some redundancy in case one of them fails short?

Originally I was thinking of using an Arduino Uno for powering my electronics but I've read many reports of the AMS1117 failing short so now I'm worried about buying an Arduino Uno since the Arduino Uno internally uses one of those AMS1117 voltage regulators and if that fails then my precious electronic components will be fried.

My next thought was to buy a breadboard power supply like the DFRobot DFR0140 but I saw that one also has a reputation for failing short and internally it also uses the AMS1117 voltage regulator.

I've seen many people online saying that the 7805 voltage regulator will not fail short but some other people have said that it is possible that even the 7805 can also fail short.

Other people have said that the OFFICIAL AMS1117 should have built-in over-current protection and thermal shutdown and thus all of those online horror stories are due to people using Chinese AMS1117s. But aren't most electronic components made in China now? And DFRobot is a reputable company, it presumably uses properly sourced components including the AMS1117 - surely DFRobot is not using the fake AMS1117s. Plus, there have been reports of the Arduino's voltage regulator failing too - surely not all of the failed Arduinos were also using the fake AMS1117s??

I see many people online saying that the 7805 is "bulletproof" and "indestructible" but it has quite a large voltage dropout - 2 volts - compared to modern LDO voltage regulators which means it has to dissipate a lot of heat, so I'm worried that it will overheat with 300mA from 7.5V voltage (2.5V * 0.3A = 0.75W which is quite a lot).

If I instead buy a 6V wall wart and then use a low dropout voltage regulator then the voltage regulator won't have to dissipate as much heat (1V * 0.3A = 0.3W which is much less) so maybe I won't need a heat sink in that case?

But I have only seen online comments about the 7805 and how bulletproof and indestructible it is. I can't find online comments about the modern low dropout voltage regulators so I don't know how reliable these are. Are they as bulletproof and indestructible as the 7805/LM340A?

I also thought of buying some automotive-grade voltage regulators. Reading the datasheets, it sounds like those should be even more indestructible than the 7805, but those have so many pins and look really complicated to wire up. Also I couldn't find online comments about the reliability of those things either.

What is the most indestructible voltage regulator that I can get so that I won't have to worry about it failing short and frying my electronics? And should I get a 7.5V or 6V wall wart?

Thanks a lot!
 

Offline CaptDon

  • Super Contributor
  • ***
  • Posts: 1740
  • Country: is
I doubt you can find any that have a 100% guarantee against failing shorted. The only protection in military and hi-rel industrial settings was an SCR crowbar set to trigger at about 5.4 to 5.5vdc. This means your input power may also need to be fused since the output will appear to be dead shorted. This will protect your electronics but you may also get nuisance trips and you never want to slow down or delay the trigger event.
Collector and repairer of vintage and not so vintage electronic gadgets and test equipment. What's the difference between a pizza and a musician? A pizza can feed a family of four!! Classically trained guitarist. Sound engineer.
 
The following users thanked this post: SeanB, Ian.M, RoGeorge, seqcst

Offline BrokenYugo

  • Super Contributor
  • ***
  • Posts: 1103
  • Country: us
Yeah, adding a crowbar circuit is about as good as it gets. No regulator is fail proof, I've seen a couple 7805s in particular fail shorted in-out. All linear regulator ICs have a pass transistor in them and that transistor can and will fail if overloaded/overheated like any other.

I've been meaning to make a bunch of crowbar circuits and add them to everything I own with a regulated 5 volt rail, just as insurance. Be careful selecting the SCR, they aren't all rated to clear fuses.
« Last Edit: March 18, 2024, 01:06:48 pm by BrokenYugo »
 
The following users thanked this post: SeanB, seqcst

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3365
  • Country: nl
Both LM317 and  the 7805 types are quite robust. But the "indestructibility" is a property of the complete circuit design, and not of a single component. Apart from part failure, solder joints can also fail, and this can also result in a too high output voltage.

Extra ESD protection is also a way to make a circuit more robust. And it is common to add more circuitry to make it more robust. The crowbar example already mentioned is a good example of this.
 
The following users thanked this post: seqcst

Offline CountChocula

  • Supporter
  • ****
  • Posts: 199
  • Country: ca
  • I break things—sometimes on purpose.
I don't think that “bulletproof” exists (if for no other reason that you could just get a bad part that goes up in smoke the first time you power it up)… it's all about layers of protection.

In a production environment, your first line of defence is picking the right parts for the job. An LDO's reliability isn't just dictated by the amount of current it supplies, but also by the voltage drop it needs to effect, since the difference between input and output is going to be dissipated as heat. If you have to deal with a large input/output voltage difference and significant current draw, without some form of heat sinking, the life of the LDO will be shortened at best, and at worst it will simply heat up and self-destruct.

If, on the other hand, you leave yourself ample margin, most jellybean linear regulators will work well for a really long time. Failures do occur, I suppose (especially with older parts that have been in production for decades), but the reason why these ICs are so cheap isn't so much that manufacturers are cutting corners—it's just that the designs have been around for so long that they have been optimized to the point where they can be manufactured in huge quantities at the lowest possible price.

Now, it's a different story when you're developing something; here, the most likely cause of failure isn't a bad part… it's your hands :)

If you read through the reports of 1117s and 7805s failing, I bet you'll find that, in most cases, the problem was caused by someone miswiring them and accidentally shorting their outputs to ground. In these circumstances, whatever protection is built into the ICs is going to be of limited help, but the problem isn't the reliability of the part… it's the engineer using it!

Given that accidents happen, particularly when you're a beginner, you simply need an additional layer of protection, like a good bench power supply that can provide both constant voltage and constant current. When you first power up your circuit, you choose the minimum voltage at which you expect it to work, and only allow a tiny amount of current before CC mode kicks in. If you happen to have made a mistake, this inserts an upstream safety mechanism that helps you fail safely and protects your circuit from releasing the magic smoke.


—CC
Lab is where your DMM is.
 
The following users thanked this post: seqcst

Offline seqcstTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Yeah, adding a crowbar circuit is about as good as it gets. No regulator is fail proof, I've seen a couple 7805s in particular fail shorted in-out. All linear regulator ICs have a pass transistor in them and that transistor can and will fail if overloaded/overheated like any other.

I've been meaning to make a bunch of crowbar circuits and add them to everything I own with a regulated 5 volt rail, just as insurance. Be careful selecting the SCR, they aren't all rated to clear fuses.

Wow I did not know that even the 7805 can fail short! Thanks for sharing that.

Just to be clear: You are talking about the current rating on the SCR? The current rating for the SCR just needs to be higher than the current rating on the fuse, right?
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19527
  • Country: gb
  • 0999
Just about all semiconductors can fail short circuit.

The SCR needs to be rated to a much higher current than the fuse. Semiconductors often protect fuses, rather than the other way round. Put a 2A fast blow fuse on the regulator's input and use an SCR rated to 6A or more.
 
The following users thanked this post: seqcst

Online mawyatt

  • Super Contributor
  • ***
  • Posts: 3273
  • Country: us
I doubt you can find any that have a 100% guarantee against failing shorted. The only protection in military and hi-rel industrial settings was an SCR crowbar set to trigger at about 5.4 to 5.5vdc. This means your input power may also need to be fused since the output will appear to be dead shorted. This will protect your electronics but you may also get nuisance trips and you never want to slow down or delay the trigger event.

Supply Crowbars were often used in military electronics, we even used them for equipment nuclear survivability as well. Here all the system PN junctions would "turn on" due the ionizing radiation from a nuclear blast, and as little as 10mJ of energy on a single pin could damage/destroy a sensitive IC. This limited the amount of local decoupling capacitance and the main supplies were quickly Crowbarred during an "event".

The Crowbar was an high current SCR with 3 large PN Junctions (recall we used 2N3055s) in X,Y and Z axis to "detect" the ionizing radiation. These PN junctions were wired OR to the SCR Gate in reverse bias state and would conduct when exposed to the radiation and turn on the SCR.

We had an in-house massive Flash Xray system that was utilized for ionizing radiation simulation testing and compatibility verification.

Lead shielding and all, we never wanted to "be around" when they ignited that Xray system  :o

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: SeanB, RoGeorge, seqcst

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12863
Just to be clear: You are talking about the current rating on the SCR? The current rating for the SCR just needs to be higher than the current rating on the fuse, right?
No,  Fuse characteristics are *far* more complicated than that.  Lets take a look at an example one,  Bussmann GMA series, fast 20mm glass fuse: https://www.sparkfun.com/datasheets/Components/General/glassfusedatasheet.pdf
and specifically the 1A rated one. Key parameters for our application are its cold resistance of 0.163 ohms and its I2t rating of  0.48, which is a measure of the energy it takes to blow it (though not dimensionally correct as energy, as it would need to be multiplied by its effective resistance).  The graph on page 2 shows that this 1A fuse needs a little over 7A to blow in 10 ms, and extrapolating from the I2t rating you'd want over 22A to blow it in 1 ms.  The TRIAC or SCR must have a pulse current rating high enough for long enough  to clear the fuse, and if you don't want it to be a sacrificial one-shot, that current rating must be sustained  for long enough to clear the arc.  You need some margin as well as the TRIAC or SCR may well be called on to crowbar the fuse, starting off considerably warmer than the nominal 25 °C its rated at.  Also you need to consider the inductance and total DC resistance of the crowbar loop and on state voltage drop across the TRIAC  or SCR to ensure there is enough current to clear the fuse in the desired time, but not so much that it exceeds the TRIAC  or SCR's pulse rating.

There's an additional fly in the ointment - The failed regulator may has enough DC resistance to limit the current and prevent the fuse clearing in the desired time, which may result in the TRIAC or SCR cooking itself, and if the current doesn't reach the min. fusing current may heat the failed regulator enough to be a fire hazard or to cause heat damage to the board or nearby parts.  To avoid this you may need to crowbar upstream of the regulator, but sensing the downstream voltage, with an adequately pulse rated diode from regulator output to input, cathode positive, so the crowbar can still remove the overvoltage from the load quickly.

Zero999 has suggested a factor of six greater SCR continuous rating vs the fuse rating, but you'd need to check datasheets and do the math to confirm that.
 
The following users thanked this post: tooki, seqcst

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
I am extremely worried about my voltage regulator failing short and frying my electronics see: AMS1117 short circuit protection not working (https://electronics.stackexchange.com/questions/530181/ams1117-short-circuit-protection-not-working)

Some context: I'm a beginner at electronics I want to power a handful of 5V electronics - some passive infra red sensors which draw only 100-200 uA each, as well as some active radars which may draw around 100mA each.

Maximum current draw will be less than 300mA.

A series regulator shorting or going rogue will cause an overvoltage, but a shunt regulator going short will simply blow the input fuse if there is one and overload the supply if there isn't.  Since your current requirements are reasonable, you could use a simple zener shunt regulator after the series regulator as a protective device.  The common saying that fuses don't protect semiconductors is only half true.  Fuses often can't act quickly enough to save semiconductors from a fault that causes overvoltage, but if you can turn the overvoltage fault into an overcurrent then fusing will work very well.  Simple devices like rectifiers can usually take very high peak currents without failing as long as the duration is short--the failure mechanism is entirely thermal (to a point). 

For your application, a 5-watt 1N5339B zener after the regulator and an MDL-1/2-R delay fuse before the regulator would do a good job of protecting against both startup transients and regulator failure without spurious tripping issues.  Since this is a one-off situation, you can take the time to hand-select the regulator and the zener to make sure that the voltages are what you want.  There should be some leakage current through the zener in normal operation, this just indicates that the zener is in a lower impedance zone and ready to step in should the voltage rise.

https://www.mouser.com/datasheet/2/308/1N5333B_D-2309169.pdf
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: seqcst

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
Zero999 has suggested a factor of six greater SCR continuous rating vs the fuse rating, but you'd need to check datasheets and do the math to confirm that.

As much as I admire overkill, I can't agree with that line of thinking.  First, you have to consider the input source impedance or current capability--is the OP running this off of a car battery?  If so, some resistive ballast to limit the fault current to a non-ludicrous value would be the first step towards design sanity.  The 1A GMA fuse you chose for an illustration has an I2T of 0.48, you can get TO-92 package SCRs with an I2T of double that @ 8.3ms.  And those devices--both fuse and SCR--are intended for mains power, whereas low voltage DC and low fault currents will be even more gentle.  There's no need for the fuse to blow quickly here as the SCR will have clamped the load side to some low voltage and can stay that way for a while.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: Ian.M

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19527
  • Country: gb
  • 0999
Zero999 has suggested a factor of six greater SCR continuous rating vs the fuse rating, but you'd need to check datasheets and do the math to confirm that.

As much as I admire overkill, I can't agree with that line of thinking.  First, you have to consider the input source impedance or current capability--is the OP running this off of a car battery?  If so, some resistive ballast to limit the fault current to a non-ludicrous value would be the first step towards design sanity.  The 1A GMA fuse you chose for an illustration has an I2T of 0.48, you can get TO-92 package SCRs with an I2T of double that @ 8.3ms.  And those devices--both fuse and SCR--are intended for mains power, whereas low voltage DC and low fault currents will be even more gentle.  There's no need for the fuse to blow quickly here as the SCR will have clamped the load side to some low voltage and can stay that way for a while.
You're talking about the maximum prospective-short circuit current.

One needs to consider the purpose of the fuse, which is to protect the SCR. In this case, it's not the battery, or even the wiring, which will determine the short circuit current, but the fuse, the failing regulator itself and the SCR. I very much doubt the battery impedance even comes into it, unless it's a small battery.

There's a lot more I could add, but I don't have time at the moment.
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 3719
  • Country: us
I think you are over thinking this a bit.  That's understandable as you are new at this and trying to make sense of confusing and somewhat contradictory online advice.  So here is my own confusing advice.

Any regulator can fail short circuit.  That's just a fact of life with semiconductors.  However if used correctly it should be so rare that you can ignore it.  Not everyone can ignore this, but you are working on low voltage low current non safety critical electronics.  And as a beginner, if you blow stuff up the overwhelming probability is that it will be because you did something wrong (aka a learning experience) rather than a random failure of a regulator.  So my advice is to worry less about extreme robustness and more about not using parts you can't afford to destroy.  The  when things happen post here asking for help if needed.

That said, the AMS1117 is not the easiest part to use.  It has a minimum load current and specifies tanalum output capacitors for stability.  Given the choice  between only these two I would pick the lm7805 unless I actually needed the low dropout voltage, but there are better LDOs available.

A common trap for hobbyists is input voltage range.  People get normal operation  right but neglect the turn on transient.  Especially in the case of using an external wall wart with a long cable there can be a pretty serious turn on transient.  The ams1117 is not to bad here with a 15 V input limit and you considering a 6 or 7 V wall wart but if you were using a 12V input you would want to have some input protection.

The LM7805 does have one major trap which is that it is not protected against input short circuit, especially with large output capacitors.  You need a diode from output to input with the LM7805.  Luckily this is almost always shown in example circuits.
 
The following users thanked this post: seqcst

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
You're talking about the maximum prospective-short circuit current.

Yes, and I understand all of the factors that might limit fault current.  Keep in mind that I'm replying to IanM, including his slightly erroneous paraphrasation of what you said.  The only real quibble I have with what you said is that the OP needs a very reasonable 300mA with a small wall-wart as a source and you've suggested a 2A fast fuse.  IanM suggested a 1A fuse and a very high fault current to clear it quickly.  I'm suggesting deliberately limiting the fault current and letting the fuse take its time.  It shouldn't be that difficult to limit the fault current to 5X the design current when it is a one-off without any efficiency objectives or appreciable cost constraints. 
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline seqcstTopic starter

  • Contributor
  • Posts: 11
  • Country: us
I am extremely worried about my voltage regulator failing short and frying my electronics see: AMS1117 short circuit protection not working (https://electronics.stackexchange.com/questions/530181/ams1117-short-circuit-protection-not-working)

Some context: I'm a beginner at electronics I want to power a handful of 5V electronics - some passive infra red sensors which draw only 100-200 uA each, as well as some active radars which may draw around 100mA each.

Maximum current draw will be less than 300mA.

A series regulator shorting or going rogue will cause an overvoltage, but a shunt regulator going short will simply blow the input fuse if there is one and overload the supply if there isn't.  Since your current requirements are reasonable, you could use a simple zener shunt regulator after the series regulator as a protective device.  The common saying that fuses don't protect semiconductors is only half true.  Fuses often can't act quickly enough to save semiconductors from a fault that causes overvoltage, but if you can turn the overvoltage fault into an overcurrent then fusing will work very well.  Simple devices like rectifiers can usually take very high peak currents without failing as long as the duration is short--the failure mechanism is entirely thermal (to a point). 

For your application, a 5-watt 1N5339B zener after the regulator and an MDL-1/2-R delay fuse before the regulator would do a good job of protecting against both startup transients and regulator failure without spurious tripping issues.  Since this is a one-off situation, you can take the time to hand-select the regulator and the zener to make sure that the voltages are what you want.  There should be some leakage current through the zener in normal operation, this just indicates that the zener is in a lower impedance zone and ready to step in should the voltage rise.

https://www.mouser.com/datasheet/2/308/1N5333B_D-2309169.pdf

Wow, this looks complicated.

So if I understand correctly, the shunt regulator works by getting rid of the excess voltage using reverse current flow? So the current across the zener diode will be higher than the rest of the circuit? The datasheet says it can dissipate 5W but how much heat is produced?

Also, I searched through that datasheet but I couldn't find info about the noise, line regulation, or load regulation anywhere.

Does noise, line regulation, and load regulation not apply to shunt zener regulators?

Zero999 has suggested a factor of six greater SCR continuous rating vs the fuse rating, but you'd need to check datasheets and do the math to confirm that.

As much as I admire overkill, I can't agree with that line of thinking.  First, you have to consider the input source impedance or current capability--is the OP running this off of a car battery?  If so, some resistive ballast to limit the fault current to a non-ludicrous value would be the first step towards design sanity.  The 1A GMA fuse you chose for an illustration has an I2T of 0.48, you can get TO-92 package SCRs with an I2T of double that @ 8.3ms.  And those devices--both fuse and SCR--are intended for mains power, whereas low voltage DC and low fault currents will be even more gentle.  There's no need for the fuse to blow quickly here as the SCR will have clamped the load side to some low voltage and can stay that way for a while.

I'm going to be running this from mains power. I'm literally going to just plug the wall wart directly into my mains power supply.

I think you are over thinking this a bit.  That's understandable as you are new at this and trying to make sense of confusing and somewhat contradictory online advice.  So here is my own confusing advice.

Any regulator can fail short circuit.  That's just a fact of life with semiconductors.  However if used correctly it should be so rare that you can ignore it.  Not everyone can ignore this, but you are working on low voltage low current non safety critical electronics.  And as a beginner, if you blow stuff up the overwhelming probability is that it will be because you did something wrong (aka a learning experience) rather than a random failure of a regulator.  So my advice is to worry less about extreme robustness and more about not using parts you can't afford to destroy.  The  when things happen post here asking for help if needed.

That said, the AMS1117 is not the easiest part to use.  It has a minimum load current and specifies tanalum output capacitors for stability.  Given the choice  between only these two I would pick the lm7805 unless I actually needed the low dropout voltage, but there are better LDOs available.

A common trap for hobbyists is input voltage range.  People get normal operation  right but neglect the turn on transient.  Especially in the case of using an external wall wart with a long cable there can be a pretty serious turn on transient.  The ams1117 is not to bad here with a 15 V input limit and you considering a 6 or 7 V wall wart but if you were using a 12V input you would want to have some input protection.

The LM7805 does have one major trap which is that it is not protected against input short circuit, especially with large output capacitors.  You need a diode from output to input with the LM7805.  Luckily this is almost always shown in example circuits.

Thanks! I'm thinking of using the LM340A instead of the 7805 since it has better accuracy. Is the LM340A basically the same as 7805 except for having better accuracy?

Thanks for warning me about the transient. THe datasheet for the LM340/7805 says max input voltage is 35V, is that good enough?

I see from the datasheet that it says:

Quote
If transients exceed the maximum rated input voltage of the device, or reach more than 0.8 V below ground and
have sufficient energy, they will damage the regulator. The solution is to use a large input capacitor, a series
input breakdown diode, a choke, a transient suppressor or a combination of these.

So as I understand it, a large input capacitor will be sufficient to protect the voltage regulator from transient voltage spikes?

How big does the input capacitor need to be?

I see in the 7805 datasheet there is a circuit, I'm not exactly sure what the circuit is meant to be. Is it an example circuit to show how to use the 7805?

In that circuit, there are 2 capacitors C1 and C2. The C1 is connected to the input is 0.22uF while C2 is optional but suggested 0.1 uF ceramic. Would bigger capacitors be better in this case?

It doesn't say what the type of the input 0.22uF capacitor should it be also ceramic?

Thanks a lot!

EDIT: Actually, I think TVS diodes are used for suppressing transients, so maybe I should be using them instead of a large input cap?
« Last Edit: March 18, 2024, 05:35:54 pm by seqcst »
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7391
  • Country: nl
  • Current job: ATEX product design
Just put a resistor in front of the regulator. Size it based on the max current. For example, 0.1A with 1V voltage drop would be 10 Ohm. If you have a 7.4V power supply, your max fault current from the wall adapter is 740mA. Or your max power in your circuit is 3.2V*0.32A=1W. You will need a 1W resistor.
The capacitor type depends on the regulator type. Read the datasheet. Some doesn't like ceramic capacitors.
« Last Edit: March 18, 2024, 05:22:22 pm by tszaboo »
 
The following users thanked this post: seqcst

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
I see many people online saying that the 7805 is "bulletproof" and "indestructible" but it has quite a large voltage dropout - 2 volts - compared to modern LDO voltage regulators which means it has to dissipate a lot of heat, so I'm worried that it will overheat with 300mA from 7.5V voltage (2.5V * 0.3A = 0.75W which is quite a lot).

What is the most indestructible voltage regulator that I can get so that I won't have to worry about it failing short and frying my electronics? And should I get a 7.5V or 6V wall wart?

I missed this important part of your question.  A genuine LM7805 or LM340 (don't buy from Aliexpress, eBay or the like) is very reliable and will dissipate up to about 4W if it is in a room temperature environment.  However, it will get quite hot and 4W is really pushing it.  2W and below is probably OK without any heatsink, but heatsinks are easy enough to add.  You want the input voltage to be about 7.5V at full load, so you have to know more about your wall wart than its nominal rating.  The actual output of a "7.5V" wall wart is not likely to be precisely 7.5V and it will vary under load.  Also, 7.5V is probably too low.  It's OK if the voltage is higher at low loads since at lower currents there is less heat produced.  In your case with a 300mA maximum load, your regulator would easily tolerate 10V or so input voltage so there's no need for great precision.  What I typically do is once I've gotten my transformer and stuff for the input of a linear supply, I'll select a power resistor to use in series that drops the voltage down to 7.5 to 8.0 volts at the rated load.  So, for example, lets say your wall wart puts out 9.5V when loaded to 300mA.  You want to drop about 2V, so you put a 6.3R resistor in series for 1.9V drop and now you have 7.6V at the regulator.  The resistor is dissipating 0.6W and your regulator is dissipating 0.8W and everything is cool.  The resistor also limits the short circuit current to less than 1.5A, which makes the protection issues discussed earlier a lot easier to deal with.

Don't obsess over efficency, heat, low dropout and things like that when making a linear supply like this, especially if your main concerns are fault protection and reliability.  Regulation by dissipation is how these things work and 50% efficiency is probably the best you're going to get.  Trying to improve on that will get you into trouble.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: seqcst

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
Wow, this looks complicated.

Does noise, line regulation, and load regulation not apply to shunt zener regulators?

Sorry if I wasn't clear--I'm only proposing the shunt as a protection system.  Using only a shunt regulator in this case would be more complicated.



Quote
I'm going to be running this from mains power. I'm literally going to just plug the wall wart directly into my mains power supply.

Mains power is what goes into your wall wart, what comes out is not unless there is a terrible failure inside of it.  Mains power has fault currents up to thousands of amperes, your wall wart probably has a fault current of 1 or 2 amperes.  The fuse and SCR being discussed are capable of working with mains power directly which is much more difficult.

Quote
If transients exceed the maximum rated input voltage of the device, or reach more than 0.8 V below ground and
have sufficient energy, they will damage the regulator. The solution is to use a large input capacitor, a series
input breakdown diode, a choke, a transient suppressor or a combination of these.

The zener and the other diode in the circuit I've attached will provide some protection against those startup transients, but if you are concerned about them you can add another regular 1N4001 in front of the regulator for complete reverse polarity protection.  The values of the capacitor and resistor will depend on your power source.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: tooki, seqcst

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12863
Note that I chose to consider the 1A fuse not because it is the right one for our O.P's application, but solely because it was the first datasheet I found for a 20mm glass fuse from a reputable manufacturer, and made the point that to blow it quickly needs a lot more current than its rating.   
 

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
Note that I chose to consider the 1A fuse not because it is the right one for our O.P's application, but solely because it was the first datasheet I found for a 20mm glass fuse from a reputable manufacturer, and made the point that to blow it quickly needs a lot more current than its rating.

OK, fair enough.  And it's true of course about fusing time vs current, but that's why it is so difficult to protect semis with fuses, right?  They're never quite fast enough. 
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: Ian.M

Offline seqcstTopic starter

  • Contributor
  • Posts: 11
  • Country: us
Wow, this looks complicated.

Does noise, line regulation, and load regulation not apply to shunt zener regulators?

Sorry if I wasn't clear--I'm only proposing the shunt as a protection system.  Using only a shunt regulator in this case would be more complicated.



Quote
I'm going to be running this from mains power. I'm literally going to just plug the wall wart directly into my mains power supply.

Mains power is what goes into your wall wart, what comes out is not unless there is a terrible failure inside of it.  Mains power has fault currents up to thousands of amperes, your wall wart probably has a fault current of 1 or 2 amperes.  The fuse and SCR being discussed are capable of working with mains power directly which is much more difficult.

Quote
If transients exceed the maximum rated input voltage of the device, or reach more than 0.8 V below ground and
have sufficient energy, they will damage the regulator. The solution is to use a large input capacitor, a series
input breakdown diode, a choke, a transient suppressor or a combination of these.

The zener and the other diode in the circuit I've attached will provide some protection against those startup transients, but if you are concerned about them you can add another regular 1N4001 in front of the regulator for complete reverse polarity protection.  The values of the capacitor and resistor will depend on your power source.

Wow, thank you so much for the schematic! I spent hours staring at your schematic and now I finally think I have begun to understand a bit of it. But I'd like to ask some questions just to be sure I really understand it.

1). The resistor in front of the fuse. What's the purpose of this? Is it just for dropping the voltage of the power supply? My wall wart says it's a regulated 7.5V so I'm worried any drop in voltage before the voltage regulator might drop the voltage too low.

2). The fuse. Am I correct in assuming that the fuse is there for only 2 reasons: 1). Reverse polarity protection. 2). Over-voltage protection.

3). The optional (dotted line) diode I assume is for reverse polarity protection so that if the input voltages are reversed then it will short, preventing current from going to the rest of the circuit while also blowing the fuse? But while it's shorting, a little bit of current will still reach the rest of the circuit right? Maybe not mA but uA? Will that be enough to damage the rest of the components? Some of my PIR sensors are extremely low power - they draw only single digit uA, I'm worried there might be enough current even in a short to damage those?

4). The diode connecting the output of the LM340 to the input. I do not understand the purpose of this diode. As I understand it, current always flows from high voltage to lower voltage. The output of the LM340 should always be a lower voltage than the input, so no current should ever flow through that diode. Even if the LM340 fails short, the voltage should be the same...so how could any current even pass through this diode? Even in a reverse polarity situation, the optional diode (dotted line) should form a short circuit, so again I cannot see how any current could ever pass through the diode.

====== Tangent about reverse polarity protection =======

For reverse polarity protection, why not put the diode in series next to Vin instead of in parallel? It would still work right? I guess because of the voltage drop? But Schottky diodes like the 1N5817 only drops like 0.25V right? Would that still be too much?

Actually, I guess I can't use Schottky diodes because the reverse leakage current of multiple microamps might be too much. Some of my PIR sensors draw only single digit microamps, so I guess microamps in the reverse direction will probably damage it.

I found this normal diode 1N4148 that has only 25nA reverse leakage current. But the voltage drop varies quite significantly with load (from 1 to 1.6V for the 1N4148 from 0-300mA), which makes it somewhat problematic to connect it in series.

Also, the 1N4148 will probably overheat at 300mA. The datasheet says its power dissipation is 440-500mW. At 300mA, the voltage drop will be 1.6V, and 1.6V * 300mA = 480mW which is very close to the limit.

For the 1N4001 the power dissipation is 3W so it's much better, but its leakage current is like 5-30uA which worries me.

So I actually cannot find any diodes that I can connect in series that fit my requirements:

1). Low reverse leakage current
2). Doesn't overheat at 300mA

Also if I connected a diode in series, I would have to use a higher voltage power supply, since 7.5V is just enough for the voltage regulator, if I put a diode in front of the voltage regulator then it will drop the voltage too much for the voltage regulator to work.

From the LM340A datasheet:

Quote
The input voltage must remain typically 1.7 V above the output voltage even during the low point on the input ripple voltage.

The datasheet for the 7.5V wall wart says noise is 50mV and line regulation is 0.5%, load regulation is 5%. Overall tolerance is 5%.

So maybe I should get a 9V power supply instead just to be on the safe side? I guess I would be wasting even more power then...should I just add more diodes to drop the voltage more? The voltage drop would vary quite significantly with load, and makes me worried about the diode possibly overheating due to how much power it has to dissipate.  voltage regulator (since each diode drops 0.25V)...seems a bit excessive...maybe I should use some higher-voltage-drop diodes so that I don't need so many diodes.

All this trouble just to connect a diode in series for reverse polarity protection...I guess the voltage fluctuation due to load will add noise too to the voltage regulator...is that why people don't connect the diode in series for polarity protection?

======== End of tangent about reverse polarity protection ==========

Your circuit looks just like the crowbar circuit without the thyristor and capacitors.

Is my understanding correct that the difference between your circuit and a crowbar circuit is that, in the event of a short voltage spike, the crowbar will "lock in" and short until the fuse is blown, while your circuit will simply "clamp" the voltage to 5V?

In over-voltage condition the zener diode will begin to allow current through, right? But only so much current until the voltage drops back down to 5V? Maybe the current is all used up for heating the components and won't be enough to blow the fuse??

Actually, the major difference I see between your design and crowbar is that in a crowbar circuit, over-voltage will create an actual short, but in your circuit, over-voltage will allow current to flow through the voltage regulator, the zener diode, and the fuse.

Since the current still has to go through the voltage regulator, it's not a short and won't actually blow the fuse?

If the LM340 fails and becomes a dead short, the fuse will indeed blow. But if the LM340 fails and becomes a resistor, then the fuse won't blow...what will happen in that situation? I guess the components in the "protection circuit" (zener, voltage regulator, and fuse) will just slowly get warmer until something fails?
« Last Edit: March 18, 2024, 11:15:22 pm by seqcst »
 

Online bdunham7

  • Super Contributor
  • ***
  • Posts: 7860
  • Country: us
1). The resistor in front of the fuse. What's the purpose of this? Is it just for dropping the voltage of the power supply? My wall wart says it's a regulated 7.5V so I'm worried any drop in voltage before the voltage regulator might drop the voltage too low.

The resistor is to progressively drop the regulator input voltage as the load increases with the target of having it reduce to near the minimum allowable at the full anticipated load.  If you have a regulated 7.5V input, then no resistor is needed. 

Quote
2). The fuse. Am I correct in assuming that the fuse is there for only 2 reasons: 1). Reverse polarity protection. 2). Over-voltage protection.

The fuse is for overcurrent protection in case an improper input or regulator failure causes the other protection devices to draw too much current.  The fuse doesn't need to blow for the protection to work.  For example, if your 7.5V supply can only put out 500mA and the regulator shorts for some reason, the zener will simply take the current indefinitely without blowing the fuse.   Same for reverse polarity.

Quote
3). The optional (dotted line) diode I assume is for reverse polarity protection so that if the input voltages are reversed then it will short, preventing current from going to the rest of the circuit while also blowing the fuse? But while it's shorting, a little bit of current will still reach the rest of the circuit right? Maybe not mA but uA? Will that be enough to damage the rest of the components? Some of my PIR sensors are extremely low power - they draw only single digit uA, I'm worried there might be enough current even in a short to damage those?

The optional diode would be to protect the regulator (mostly) against random transients and such that may occur when using a wall wart with plugs and connections.  The normal diode mode of the zener already protects the output.  It probably isn't necessary, especially if you use a decent size capacitor (say 22µF) on the input.  If you want more robust reverse polarity protection without any risk of fuse-blowing, you could also put in a series diode, but that would really be serving a different function.  A series diode alone may not help with transients in certain situations. If your devices are extraordinarily sensitive to reverse current and limiting the reverse voltage to one diode drop (0.7V or so) isn't good enough, you could use Schottky diodes instead.  The leakage of the Schottky diode would not be an issue because the resulting voltage would be very low due to the built-in voltage divider resistor in the regulator.

Quote
4). The diode connecting the output of the LM340 to the input. I do not understand the purpose of this diode. As I understand it, current always flows from high voltage to lower voltage. The output of the LM340 should always be a lower voltage than the input, so no current should ever flow through that diode. Even if the LM340 fails short, the voltage should be the same...so how could any current even pass through this diode? Even in a reverse polarity situation, the optional diode (dotted line) should form a short circuit, so again I cannot see how any current could ever pass through the diode.

Read the datasheet for the LM340 carefully--they explain it.  If your output has any significant capacitance (in the devices typically) and the power goes out, those capacitors may try to 'backfeed' through the regulator and it can't tolerate that.  The diode bypasses the regulator and allows that current to flow through it instead.  This is a very common setup with LM-style regulators.

Quote
Also if I connected a diode in series, I would have to use a higher voltage power supply, since 7.5V is just enough for the voltage regulator, if I put a diode in front of the voltage regulator then it will drop the voltage too much for the voltage regulator to work.

The actual dropout voltage of the LM340 at 300mA is probably more like 1.3-1.4V, so you'd probably get away with a diode.  Using a Schottky would help, as mentioned.  However, the regulator will regulate a bit better with a higher input voltage, so if you have very dynamic loads perhaps a 9V suppy plus an appropriate resistor would be better.  Don't use multiple diodes for voltage dropping, they don't have the desired current tapering effect in case of overload or failure of the regulator.

Quote
Your circuit looks just like the crowbar circuit without the thyristor and capacitors.

Is my understanding correct that the difference between your circuit and a crowbar circuit is that, in the event of a short voltage spike, the crowbar will "lock in" and short until the fuse is blown, while your circuit will simply "clamp" the voltage to 5V?

In over-voltage condition the zener diode will begin to allow current through, right? But only so much current until the voltage drops back down to 5V? Maybe the current is all used up for heating the components and won't be enough to blow the fuse??

Actually, the major difference I see between your design and crowbar is that in a crowbar circuit, over-voltage will create an actual short, but in your circuit, over-voltage will allow current to flow through the voltage regulator, the zener diode, and the fuse.

Since the current still has to go through the voltage regulator, it's not a short and won't actually blow the fuse?

If the LM340 fails and becomes a dead short, the fuse will indeed blow. But if the LM340 fails and becomes a resistor, then the fuse won't blow...what will happen in that situation? I guess the components in the "protection circuit" (zener, voltage regulator, and fuse) will just slowly get warmer until something fails?

Yes, the zener clamps as opposed to shorting.  That's a lot handier in case of transients and if there is a failure but insufficient current to blow the fuse, it will simply continue to function, albeit with a somewhat higher output voltage.  Which solution you choose depends on the desired behavior.  There is an MDL-3/10-R fuse that is guaranteed to blow at 500mA (but never at 300mA) but you still could have a fault condition in between there.  You might add a voltage indicator circuit that tells  you your output is low, good or high.  However much effort you put into making something bulletproof or foolproof, there's always something that you didn't anticipate that will trip you up.  Personally, I think the original circut I drew, without the optional diode and with a 22µF input capacitor, all powered by your 7.5V supply, will be robust enough that you really ought to worry about other things.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 
The following users thanked this post: seqcst

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16620
  • Country: us
  • DavidH
Input voltage surges which destroy a regulator can happen.  If the input capacitance is low and the load current suddenly decreases, then the transformer's leakage inductance can cause a voltage spike.  This usually shows up with cheap consumer stuff where the AC adapter has high leakage inductance to limit current and the regulator has low input capacitance because it is used to only limit the voltage.

If a higher voltage may be applied to the regulator's output, or the input can be shorted, then a reverse protection diode is required unless the regulator is specifically designed to handle this like some PNP pass transistor regulators.  If present, the adjustment pin may also need to be protected with a diode.

Regulators are not really designed to routinely operate with their short circuit current limit or thermal protection active.  Some regulators support adjustable current limiting or it can be implemented externally.
 
The following users thanked this post: seqcst

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9507
  • Country: gb
If you want something 'less destructible' when it comes to input surges etc. why not go for an LM2940-5.0? It has an automotive spec input - 60V input surge and reverse polarity protection. You can even put it in backwards without damage. It's an LDO too.
« Last Edit: March 19, 2024, 10:19:26 am by Gyro »
Best Regards, Chris
 
The following users thanked this post: coromonadalix, seqcst

Offline seqcstTopic starter

  • Contributor
  • Posts: 11
  • Country: us
If you want something 'less destructible' when it comes to input surges etc. why not go for an LM2940-5.0? It has an automotive spec input - 60V input surge and reverse polarity protection. You can even put it in backwards without damage. It's an LDO too.

Thanks! That does indeed look more indestructible than the LM340, however the noise is also significantly more than the LM340A...is there a lower noise version of this? I've looked for a 3-pin automotive-grade low-noise voltage regulator that allows over 300mA current and couldn't find any that had as low noise as LM340A.

Am I overthinking the noise? I don't actually know how much noise is too much for my PIR sensors. If they're interchangeable should I just get both and try both of them out?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf