#195

  Переглядів 23,118

Ralph S Bacon

Ralph S Bacon

День тому

Here's a simple circuit that makes clever use of the properties of a MOSFET - only conduct when the gate is sufficiently negative in respect of the Source, regardless of which way round it is connected!
PCBWay.com 6th Anniversary Celebrations: www.pcbway.com/activity/anniv...
Special offers and coupons galore!
Yes, a diode can protect your circuit from being connected the wrong way round to a battery too, but there is a price to pay for that simplicity.
A better, more efficient way is to use a P-Channel MOSFET (I'm using a PDP0959 but plenty of others are available) but connected so that is looks like it is the "wrong way" round!
I just wish I had invented (and patented) this circuit! This time next year I could be a millionaire!
List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
bit.ly/UKpostsVideoList-RalphB...
If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey
My channel, GitHub and blog are here:
------------------------------------------------------------------
/ ralphbacon
ralphbacon.blog
github.com/RalphBacon
------------------------------------------------------------------

КОМЕНТАРІ: 218
@arnotek
@arnotek День тому
@RalphBacon Ralph - I wanted to reverse polarity protection without using a diode due to the amount of voltage drop across the diode. Thank you for a very clear explanation of what is going on with this circuit. I am also glad you demonstrated what happens when the MOSFET is not turned on and all of the current flows through the diode internal to the MOSFET. When I first created a prototype circuit and took measurements, it was working properly but I was getting roughly a .7 voltage drop between the drain and the source. Ah wait, that wasn't correct and I thought back to that video portion. Sure enough, I had neglected to connect the gate. I corrected that omission and everything works perfectly. For grins, I added red and green LEDs to indicate if the power was properly connected. I plan to add this reverse polarity protection circuit to all of my circuits going forward. It is very simple and has an extremely negligible impact on the voltage going to the load. Thanks again!
@peoplethesedaysberetarded
@peoplethesedaysberetarded 3 роки тому
Welcome back, Ralph! :)
@RalphBacon
@RalphBacon 3 роки тому
Thanks! 😃
@jamest.5001
@jamest.5001 3 роки тому
Nothing like the smell of MAGIC SMOKE, in the morning! Especially after a long night of working on a project!
@RalphBacon
@RalphBacon 3 роки тому
Tell me about it, we've all been there. That's why I always use my current limiting PSU now set to about 10mA initially!
@CTCTraining1
@CTCTraining1 3 роки тому
Thanks Ralph. It is at times like this that I keep thinking, if only we had designed batteries better we could have avoided being able to connect them up the wrong way around.
@RalphBacon
@RalphBacon 3 роки тому
Great point, Chris. Seems crazy that we can put the battery in backwards. Then again, why are audio power supplies (eg for guitar wah-wah pedals) with a negative centre whilst the rest of them are positive centre? Just to blow up our Arduinos, that's why.
@MrEdwardhartmann
@MrEdwardhartmann 3 роки тому
Great video - I have always use diodes for protection, but future designs will have MOSFETs. Thanks
@RalphBacon
@RalphBacon 3 роки тому
Good call! Simple to do too.
@baconsledge
@baconsledge 3 роки тому
Ralph, I have been enjoying these videos...must have missed then in the past!
@RalphBacon
@RalphBacon 3 роки тому
Glad you like them! There are 199 videos for you to enjoy at the time of writing this! Plus the beginner Bacon Bytes videos too. Have fun watching them.
@hansdegroot652
@hansdegroot652 3 роки тому
Good video again Ralph. Thx. This is definitaly one I am going use. Been frying to many things lately just by messing up the polarity.
@RalphBacon
@RalphBacon 3 роки тому
You and me both, Hans.
@afshinbakhtiari1810
@afshinbakhtiari1810 Рік тому
Very nice and simple explanation! Thanks, Ralph
@RalphBacon
@RalphBacon Рік тому
Glad it was helpful!
@kebbakanyi
@kebbakanyi 3 роки тому
Very good explanation of reverse polarity protection!
@RalphBacon
@RalphBacon 3 роки тому
Glad it was helpful!
@markgreco1962
@markgreco1962 3 роки тому
Very interesting series Ralph
@RalphBacon
@RalphBacon 3 роки тому
Glad you think so!
@coxsj
@coxsj 3 роки тому
Always appreciated Ralph!! Rock on.
@RalphBacon
@RalphBacon 3 роки тому
I appreciate that!
@HansVledder
@HansVledder 3 роки тому
Thanks for the video Ralph! Given the number of quotes that Albert Einstein has come up with, he must have done this whole relativity theory on the weekends ....
@RalphBacon
@RalphBacon 3 роки тому
No doubt! Probably wrote it in bed instead of watching TV! Clever chap!
@AtlantaTerry
@AtlantaTerry 3 роки тому
​@@RalphBacon in 1905, Philo Farnsworth was not yet born, so he could not have invented television.
@jeffmerlin2580
@jeffmerlin2580 3 роки тому
You can use an N-channel as well. Either in the ground (negative), which would be a mirror of your P-channel schematics, or in the high side with a charge pump. Using N like a mirror of your schematics, will cause the ground to be not as "groundish" as you would like, and sensors etc might need this ground instead of battery ground (if they are picky)
@RalphBacon
@RalphBacon 3 роки тому
And you've stated exactly the reason, Jeff, why I don't like LOW side MOSFET switches - the ground reference can keep changing and some devices I've had go bananas when that happens (technical term, obviously). No reason not to do this in the HIGH side and keep it all stable.
@jeffmerlin2580
@jeffmerlin2580 3 роки тому
@@RalphBacon I agree! Although low side switching should be treated as low side switching and nothing else. That means, ground is switched and should never be referenced to any other ground. In a car that would imply that ground is not the vehicle and that means you'll have to isolate devices that are electrical (galvanically) connected. An NPN power transistor in a TO-3 case where the case is the collector is another example. We would like to mount it on a heat sink, and the heat sink to the chassis which is ground. Now, NPN-transistors with the collector to ground is not the best design, to say the least. :-) So we need to isolate it from the heat sink. A pain in the... ;-)
@mybritishcomputerguy
@mybritishcomputerguy Місяць тому
@RalphBacon I finally got around to trying solder these little fellas and I was actually able to do it, I surprised myself! After the circuit was completed I did come across an issue though that didn't present itself prior to the MOSFET being introduced into the circuit. A brief explanation of the circuit.. I am using an ESP32 to control a simple 64 RGB LED strip, powered by a 5vdc 3amp PSU (run in parallel with the LED strip) , the ESP32 has a Logic Level Shifter on the data line to boost the signal, Capacitor for voltage smoothing, and a digital microphone. When plugged in the lights come on instantly, when unplugged they go off instantly. When I re-plug them in within about 5 seconds they immediately power back up.. everything seemed fine. Then I introduced the MOSFET you suggested. Powering on is fine, but once the lights have been on for about 60 seconds, once you unplug them and then try and plug them in about 5 seconds later, the lights won't power on? It seems that the circuit needs to be unplugged for about 40 seconds before plugging them back in again before they will come back on. I'm a tad perplexed as to what could be causing this. Initially I felt it could be the capacitor, so I removed it but it still yielded the same results. Any thoughts would be greatly appreciated.
@RalphBacon
@RalphBacon 15 днів тому
If there is a capacitor on the gate of the protection MOSFET it might hold its charge (or still be charging) when you plug the lights in again. Without seeing your circuit I'm guessing a bit!
@mybritishcomputerguy
@mybritishcomputerguy 12 днів тому
@@RalphBacon Thanks for your reply, I think it boiled down to a bad batch of ESP32s
@BersekViking
@BersekViking 3 роки тому
Arduino power via inputs: The Microprocessor is powered via the protection diodes on the inputs, not via the body diode.
@RalphBacon
@RalphBacon 3 роки тому
The protection diodes (not on all pins, BTW) clamp the voltage and could allow current to flow to VCC, true. But the body diode is also going to conduct too, surely? After all the Drain/Source of the output MOSFET is directly connected to the pin. Perhaps two ways for the Arduino to be parasitically powered?
@noweare1
@noweare1 3 роки тому
Yes, found this out the hard way.
@sortofsmarter
@sortofsmarter 3 роки тому
This was brilliant explanation, other channels have showed RPP but glossed over the technical side so my understanding of was limited and I didn't learn as much. Your explanation was spot on. I think I want to use a Vishay SUP90P06-09L with a 100K resistor and a 7V zener on my big 50V-30A power supply and see how it does..
@RalphBacon
@RalphBacon 3 роки тому
I'm glad you liked this video, Gene, but let's consider your MOSFET. If you were to draw the maximum current of 30A through this device, using a 5v Gate voltage it would have an RDS(on) of 0.0118Ω (max). So the power you are dissipating is I2R = 10.62W. The maximum RthJA in free air is 62°C per Watt so it would reach 620°C - a heatsink is required! The most you can dissipate _without_ a heatsink is max junction temp (175) - ambient temp (25) divided by RthJA so that is 150/62 = 2.4W. Or about 15A. A relatively modest heatsink for a TO-220 would suffice. I'll let you calculate the exact °C/W you need (and be conservative). You could also use a small fan to cool the heatsink, PWM controlled from a Tiny85, now that would be cool (literally).
@sortofsmarter
@sortofsmarter 3 роки тому
@@RalphBacon Wow this helps so much.. I think I'm starting to get this. I dont mind a heat sink or even a small fan. I rarely go that high in amperage but if and when I do It is nice to know I would be covered. That PWM code you helped me with would be perfect for that...
@pfeerick
@pfeerick 3 роки тому
Great video Ralph. I have used exactly this 'circuit' before in my own projects, but I have to admit it was with no knowledge of how it worked. Thanks for making it simple! Any particular reason you didn't mention a pullup/pulldown for the gate? Plus there was no 'smokeless' test! 🤣🤣
@RalphBacon
@RalphBacon 3 роки тому
In this circuit there is no need for a pullup/down for the Gate as it always connected to GND, Peter, no switching required (or intended). Is that what you meant?
@pfeerick
@pfeerick 3 роки тому
@@RalphBacon duh, of course it's not needed... In this configuration the gate would never be floating, so no need for esd protection. Brain fart moment resolved! Thanks! 😂
@lukecorkill
@lukecorkill 3 роки тому
Thanks. Learned some new things from this
@RalphBacon
@RalphBacon 3 роки тому
Glad it was helpful!
@jbrian8618
@jbrian8618 3 роки тому
Excellent explanation ( as ever ) Ralph and I will certainly bear this in mind for future reference. I was hoping to see you connect it up "backwards" so we could see the Mosfet do its stuff. :-)
@RalphBacon
@RalphBacon 3 роки тому
Glad you liked it!
@willofirony
@willofirony 3 роки тому
Thanks for this video, Ralph. I must admit that I have only considered the body diode of a MOSFET as an artifact of the design, not a feature. It has never entered my mind that it can be "used". My eyes have been opened, was blind but now can see. I was also intrigued at how easily it can be to get confused at the difference between an N channel and a P channel FETs (so much more than with NPN and PNP BJTs). I can see that I need to hit the books (OK, websites) and become immersed in the fundamentals. A valuable follow up to your last videl.
@RalphBacon
@RalphBacon 3 роки тому
As you say, the body diode is usually ignored, Michael, to a large extent, as it is a by product of the MOSFET design. But it really does need to be considered, not just in designs like this that actually leverage it to provide a useful function!
@RalphBacon
@RalphBacon 3 роки тому
The image is already burned into my brain from the previous video. I need to lie down...
@willofirony
@willofirony 3 роки тому
@Mai Mariarti A valuable mnemonic. Thank you. I just hope my prostrate doesn't start acting up again.
@YTbxg
@YTbxg 3 роки тому
I'm please you decided to do a dedicated video on this subject and move it out of your other video on mosfets as I can now understand it a lot better ( and not to risk frying a mosfet with reverse connections :-O ) Good practical information. I've only recently discovered your channel and its pitched at just the right level for me (not a complete noob, but perfectly capable of shortening the life of an arduino or two). I'm looking forwards to your future videos
@RalphBacon
@RalphBacon 3 роки тому
I'm glad you liked this video, it deserved more than what I gave it in the BB series. Glad you got the PCB board too (I replied to your other comment).
@flashcorp76
@flashcorp76 Рік тому
Yup, clever stuff and to be applied😊👍🏻
@RalphBacon
@RalphBacon Рік тому
Indeed, could save your bacon. Or Bacon. 😉
@flashcorp76
@flashcorp76 Рік тому
@@RalphBacon In my case it wood save my Gordons 😂🤣👍🏻🖖🏻
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 3 роки тому
It's a nice use of the body diode, usesd tis a lot for protection and as a high power diode in diode 'OR'ing 28V DC power supplys.. great video on a simple reverse protection circuit. It's always good to read the data sheets, as the say that the FET might be able to pass 100A max, but if you look at the size of heatsink to maintain the junction temperature within limits it's allmost impossible to do. Specmanship always exceeds the real world as 100A max IDS sells parts and even more then they go pop. :)
@RalphBacon
@RalphBacon 3 роки тому
Yes, you are right. We can easily calculate the power as P= I * I * R so if the RDS(on) is 0.06 and we are passing 100A that's 600W! Even 10A is 10 * 10 * 0.06 = 6W which (probably) requires a heatsink. Theory vs Real World application! PS Posted your PCB today.
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 3 роки тому
@@RalphBacon Great thanks. now i'll have to buy some 555, in all my years in electronics design I've never used a 555 timer!!!!! I think they never made a mill spec version ;)
@RalphBacon
@RalphBacon 3 роки тому
Don't forget it is a *surface mount* 555. Hang on, never used a 555? I thought _everyone_ started off with a 555 and that's what got them hooked? Oh, mil spec? You've let the cat out of the bag now!
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 3 роки тому
@@RalphBacon Cat left the bag years ago, Don't know why I never used one before i started work, but all electronics I've gone since is Avionics or Medical based. so tight on the component specs. will be fun to play with one. since pic's became cheap and easy to get, If you wanted a delay an 8pin pic was the easy option.
@spu3
@spu3 3 роки тому
Thank you Ralph! I would be interested in seeing a 'companion' video about using an N-MOSFET in the low side for reverse polarity protection.
@RalphBacon
@RalphBacon 3 роки тому
Noted, but I have got to say putting anything in the low side is often fraught with unexpected problems because it causes (or _can_ cause) the GND reference to change unexpectedly which can upset a lot of electronics. I've tried it and have come to the conclusion that high side works 100%.
@spu3
@spu3 3 роки тому
@@RalphBacon Thank you Ralph! I don't disagree however, I am experimenting with a low loss (or zero loss) generator cutout relay for my 1925 Studebaker house-car . The electrical system is 6 volts positive ground and the generator puts out a maximum of 15 amps - going downhill with a tailwind. This looks like an OK application for an N-MOSFET ergo the reason for my original question :-)
@RalphBacon
@RalphBacon 3 роки тому
Oh well, if you have a positive GND setup then it is totally different. I have never tried this but this circuit shows a possibility (scroll down to figure 3) www.electronicdesign.com/power-management/article/21801509/reversepolarity-protection-in-automotive-design
@packempty2523
@packempty2523 3 роки тому
thank you for this video.
@RalphBacon
@RalphBacon 3 роки тому
My pleasure!
@oncledan282
@oncledan282 3 роки тому
Hi again, my Friend. Very interesting concept and, of course, thank you again for sharing this tip bit of information with us, Ralph. Have a great evening and stay safe. I'll « talk » to you soon !
@RalphBacon
@RalphBacon 3 роки тому
Speak to you soon!
@borayurt66
@borayurt66 3 роки тому
Couple of weeks ago I built a 10V voltage reference using an LM399AH that I got very cheap from a seller in AliExpress. Second hand part of course, but sometimes buying expensive components second hand from China means that they are actually genuine, not a remarked/counterfeit part. Anyways, the application circuit on the data sheet required 15V supply voltage, and as precision voltage references need a very clean DC source, I decided to power it with two 9V batteries in series and use a 7815 for steady regulation. Knowing myself, I wanted to add a reverse polarity protection with a small SOT23 P-channel mosfet. There were couple of choices in stock of my regular parts supplier, so I compared the datasheets, and decided on PJA3441 (SOT23 - check!, Vds 40V - check!, continuous drain 3.1A - check!, RDSon
@RalphBacon
@RalphBacon 3 роки тому
My apologies about the timing of this video, Bora! Better late than never! Yes, put a 12V zener and a 100K resistor in the gate to protect it. Running it at 19v is getting too close for comfort! I will check out the LM3999AH too.
@markday3145
@markday3145 3 роки тому
I really liked this video, and especially the explanations of why it works, and what each component is doing. The ESP8266, ESP32 and Arm-based microcontrollers are all 3.3V. It seems like most MOSFETs don't fully turn on (maybe not at all) at those low voltages. And those microcontrollers generally can't supply as much current as an Arduino Uno. Seems to make it hard if you need to switch more current at those low voltages.
@RalphBacon
@RalphBacon 3 роки тому
Some MOSFETs are designed to work with low voltages, Mark, and have a Gate threshold of between 1V and 2V. But a MOSFET driver can be a simple BJT and then you have all the switching power of a MOSFET at your disposal (assuming the BJT by itself is not an option - it could be just to switch a relay on, for example).
@fredflintstone1
@fredflintstone1 3 роки тому
A good video I was confused this morning when I woke up after watching this video I am now only not sure :-)
@RalphBacon
@RalphBacon 3 роки тому
I used to be indecisive but now I can't make up my mind if that's true.
@ChrisFredriksson
@ChrisFredriksson 3 роки тому
Really awesome video! Followed along and looked up some parts and their datasheets at the same time to understand fully. Got some parts to order to try out. Though for my projects I use 9-26V input and I have a buck regulator, capable of up to 30V input, so I guess I can skip the zener as the buck regulator is doing the "same thing" as the zener..? But I understand that I would need the gate resistor still, to limit the voltage difference between gate and source. This I'm a bit nervous on so I need to look at the video again and perhaps search some more on the topic. But all in all, great video and very useful information!
@RalphBacon
@RalphBacon 3 роки тому
The 100K Gate resistor simply ensures the Zener can clamp the Gate voltage correctly without passing excessive current. I would not skip the zener if there is any chance of the input voltage exceeding the Gate to Source voltage maximum (and as I said in the video, 16v is not uncommon, so you would clamp it to 12v). For the sake of a few pennies, keep it simple!
@Geri-der-Kletterer
@Geri-der-Kletterer 6 місяців тому
Very interesting Video. Thanks
@RalphBacon
@RalphBacon 6 місяців тому
Glad you enjoyed it!
@Gocast2
@Gocast2 2 роки тому
great explanation! will the p-fet reverse polarity protection work well for powering an esp8266 via the 3.3v pin?
@RalphBacon
@RalphBacon 2 роки тому
It should, as long as the MOSFET you choose conducts with a Gate voltage of 3v. Datasheet will tell you this.
@Gocast2
@Gocast2 2 роки тому
@@RalphBacon Thanks! After a lot of research, it sounds like a AO3401 would fit the bill perfectly for an ESP-32 and a NDP6020P can be used for a something drawing a lot of current at 3.3v. Both have a gate voltage maximum of only about 1V.
@theonlymudgel
@theonlymudgel 3 роки тому
Must be because I’m way down in Australia. Just don’t seem to get here first no matter the notification.
@RalphBacon
@RalphBacon 3 роки тому
Yes, they do say the folks in OZ are a bit backward... Oh. Just a joke, Mike, keep sending the files!!!
@KC-vp7wn
@KC-vp7wn 3 роки тому
Hi Ralph, I was wondering.... all solar panels have blocking diodes on them and they can get quite large to handle the amount of current flowing through them. I wonder how much more efficient they would be with a mosfet circuit in its place? Love you're videos from across the pond!
@RalphBacon
@RalphBacon 3 роки тому
It all depends on the current flowing but P-Channel MOSFETS can handle huge amounts of current (even if a heatsink might be wise at that point) so I would think that rather than wasting your solar energy heating up a diode it would be much better using a MOSFET and using that energy to heat up the house (or the hot water). Glad you like my videos, Kurt, great to hear from you.
@tezlallc2900
@tezlallc2900 3 роки тому
Really nice video...Does the zener forward voltage have to be less than the Vth of the FET?....It appears to me when Vin gets reversed at the front end that the zener will "appear" forward bias but current will not have a return path anywhere to allow this...How would it get forward biased to complete the path?
@RalphBacon
@RalphBacon 2 роки тому
Just saw this! Only 3 months late 🤷‍♂️ The Zener diode protects the MOSFET when it conducting by clamping the gate voltage to the Zener voltage (eg 12v). When the voltage is reversed, the MOSFET is switched off because the Gate Source voltage for this case will be positive (voltage drop over the Zener diode). See section 3.3 for a more elaborate explanation here: www.infineon.com/dgdl/Reverse-Batery-Protection-Rev2.pdf?fileId=db3a304412b407950112b41887722615 It's been a while since I did this video; I hope this clarifies things?
@McTroyd
@McTroyd 3 роки тому
A curve tracer can help ascertain the "knee" of the zener diode response if precise information is required. If you have an oscilloscope capable of XY mode, kits can be had which plug into the 'scope for display. I remember seeing them for ~US$40 on eBay, though can't speak to how precise they are...
@RalphBacon
@RalphBacon 3 роки тому
Thanks for that, Ted, I'll scour eBay to see whether there is anything a bit cheaper out there but which still does the job.
@McTroyd
@McTroyd 3 роки тому
@@RalphBacon I'm sure it's out there. That's the beauty of eBay!
@geoff992
@geoff992 3 роки тому
Hi Ralph, i'm very new to all this, great video! How would you protect a dual power source from reverse polarity? To be specific, how would you polarity protect two 9 volt batteries in parallel being forced in the wrong way?
@RalphBacon
@RalphBacon 3 роки тому
When you "dual power", I'm guessing you perhaps mean two 9v batteries in series? With the centre connection deemed 0v and the other two terminals +9v and -9v? I'm thinking that an N-channel connected "backwards" (just as the P-channel was connected "backwards" here) with the Gate at "zero" (actually +9v relative to Drain) with the Source connected to the load. Someone must have done this. Let me see if I can find a circuit.
@RalphBacon
@RalphBacon 3 роки тому
OK, if you scroll down to figure 3 that is what I had in mind: www.electronicdesign.com/power-management/article/21801509/reversepolarity-protection-in-automotive-design
@RalphBacon
@RalphBacon 3 роки тому
But you would need _both_ parts to protect the circuit from reverse battery connection. Theory only, never been tried by me!
@jeffbluejets2626
@jeffbluejets2626 3 роки тому
Brilliant...
@RalphBacon
@RalphBacon 3 роки тому
Nice of you to say, Jeff. Great to hear from you, as always.
@davidvukovic
@davidvukovic Рік тому
Ralph, thanks for what you do! I use 12 volt dc wall power pack as my standard mains power. I have sold some of my projects to folks that make the mistake of using a 12 volt ac wall power pack. With disasterous results. What circuit can I use to protect my projects from the ac vs dc power pack mistake? Thanks David
@RalphBacon
@RalphBacon Рік тому
Cheap solution: You could add in a single IN4001 diode into the incoming VCC line. However, that would reduce any intended input DC voltage by about 0.7v which you might have to take into account. Better solution: Put in a proper bridge rectifier, it's a single component with 4 leads, so it's easy enough to install. Plus an electrolytic or two! Same caveat applies. Rectified voltage might be well over 12v, so you could also consider a voltage regulator. Yes, it gets more complicated! Or design a detection circuit that blocks AC. It will go through a capacitor so you can detect it that way (after rectification) and do not switch on the main circuit. Eg using my auto on/off circuit with a simple Si4599 dual MOSFET. If you get stuck let me know, I might add this to my video questions!
@davidvukovic
@davidvukovic Рік тому
@@RalphBacon I looked up bridge rectifier and build one with IN4007's that I had on hand. Works great! The 12VoltAC that I have in my shop are as high as 15voltAC, so I am ordering some 7812 Voltage Regulators to help smooth out the voltage. I already use 5V and 3.3V regulators to directly supply MCUs or radios as needed. Thanks for the advice.
@hansdegroot652
@hansdegroot652 3 роки тому
Hi Ralph. Maybe you or an other viewer has a simple suggestion how to block voltage when it drops below a certain level? (and turb back on when voltage comes back) It is not meant as a battery protection. But when powering stuff from solar there is a long slow "gray" area in voltage in the morning and evening where it is just enough/not enough to power a nano and the thing keeps crashing. A mosfet alone does not really solve it since it also has a "twilight zone" when going from high risistance to low resisctance. I have been googleing a lot but what I can find are all battery discharge protection solutions.
@RalphBacon
@RalphBacon 3 роки тому
It depends on just how much power you have available, Hans. If you have 1.8 volts then an ATtiny13/85 could boot up (no crystal, run from the internal oscillator at 1MHz) and keep monitoring the external voltage until it reaches the magic value (3v3 or 5v, for example). Check out video #171 ukposts.info/have/v-deo/eXGopGeGa6llzZc.html which might have some ideas for you. Let me know if this helps. If not then we might have to go the zener diode /MOSFET switch on route.
@JasonRobards2
@JasonRobards2 3 роки тому
I was just for the first time adding a reverse polarity protection circuit to one of my projects and then this video pops up, what a coincidence. I got the usage of the PMOS correct (thanks to Jeri Ellswoth's video), but you pointed out V(th) needs to be smaller than the forward voltage. I wouldn't have noticed until after I received my parts, so thank you very much! I went looking for a different PMOS and decided on the IRLML9303 by IR. Let's see how that goes. One thing that got me a little confused is the difference between the treshhold voltage V(th) and the max gate source voltage V(GS). I used to read the second as the first. Watching your video that notion started to break down... would that mean the mosfet breaks down as soon as it is conducting current? That didn't not make sense. Anyway, it prompted me to do a little more digging and now I can make a little more sense out of a datasheet. V(GS) or V(GSS) is not the treshold value, V(GS(TH)) is.
@RalphBacon
@RalphBacon 3 роки тому
So, just to summarise and clarify, Jason, the *VGS* is the *maximum voltage* that the MOSFET can tolerate between the Gate and the Source or it will meet its maker. The *Vth* (sometimes, and confusingly, written *VGS[th]* ) is the *minimum voltage* the Gate needs to START the MOSFET conducting. To ensure it is fully switched on, we usually aim for 5v for TTL (Logic Level) level MOSFETS as otherwise it's 10V which is too much for us Arduino users. The P-Channel MOSFET IRLML9303TR you have picked has a typically higher RDS(on) of 270mΩ (just over 1/4 of an Ω) at -4.5V Gate voltage but that's not too bad for a P-Channel FET. The VGS is 20V and the VGSth is -1.3 to -2.4V so good for Arduino level voltages. Good luck with your project.
@JasonRobards2
@JasonRobards2 3 роки тому
@@RalphBacon Thanks!
@carlsonterrence
@carlsonterrence 2 роки тому
Excellent video. I am troubleshooting a motor driver board, and I couldn't figure why there was no connection to the negative side of the input voltage, and why one of the MOSFETs appeared to be in backwards. In my case the polarity protection was in the negative side of the supply. I guess the designer didn't want to source a different MOSFET. Thanks.
@RalphBacon
@RalphBacon 2 роки тому
Great to hear! Personally, I wouldn't put the protection in the negative side as the changing ground potential can upset some electronics but I guess yours is working fine!
@WagonLoads
@WagonLoads Рік тому
I really like this.. The whole time I was watching, I was wondering how can we take this to the next level and turn it into a full wave bridge rectifier?
@RalphBacon
@RalphBacon Рік тому
I see what you mean. Maybe some sort of bridge control (the type that controls dc motors) would work.
@jugnu361
@jugnu361 2 роки тому
very helpful
@RalphBacon
@RalphBacon 2 роки тому
Glad to hear that! 👍🏻
@jugnu361
@jugnu361 2 роки тому
@@RalphBacon i used to put 40 volt schitky diode in series toprotect from reverse voltage..........but as current rises in my Buck converter , diode gets too much heat........this Mosfet solution is very efficient and has no heating............
@romiolover6852
@romiolover6852 3 роки тому
nice video but i think you can replace the zener diode with another resistor acting as a voltage divider.
@RalphBacon
@RalphBacon 3 роки тому
Only if you know what the input voltage is, and then it becomes voltage dependent. For the price of a zener (pennies) this is input voltage independent and thus a more flexible design.
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
@RalphBacon.. Ended up going the Vishay Si4599 route per your recommendation. They just came in. When you said very small, i didn't realize you meant microscopic lol. How on earth would you solder these? there's no way I'm going to be able to solder one of these, even with a fine tip. Is there a variant of this that is a bit bigger and easier to solder?
@RalphBacon
@RalphBacon 2 місяці тому
Well, there is a pre-mounted version with through holes (on a PCB) that I use on my breadboard. AliExpress do them (search for them, as costs - and postage - vary considerably) but I've also found them on Amazon now and again: www.aliexpress.com/item/33010369472.html Are you sure you could not solder these? Use flux first, then solder just a corner of the chip to its pad to get it positioned square, then do the other pins. I use 2x - 4x reading glasses as magnification glasses when doing this too!
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
Lol, I don't think my hands would be steady enough, I have a hard enough time soldering through hole! Wow the pricing on Amazon compared to AliExpress is crazy! many thanks for the link, getting some on order now. Cheers!@@RalphBacon
@igeorge688
@igeorge688 3 роки тому
Hi Ralph, I have just a 18650 as source for my Processor board. Do i need anything else than the mosfet ? What mosfet do you suggest for an 18650 source ? Thank you very much.
@RalphBacon
@RalphBacon 3 роки тому
As long as the MOSFET can take the voltage (at 4.2volts max I think you're safe with anyone) and the current (at about 100mA for an Arduino ditto). Personally I like the Si4599 SMD MOSFET pair. Use the P-Channel for this and the N-channel elsewhere in your circuit. Just make very sure your MOSFET is TTL or better so that the 3.4volts that the 18650 can get down to before cutting off will still be enough to switch the power on.
@Ianistrip
@Ianistrip 3 роки тому
Hi Ralph, Does It may be possible,a simple connection/(only P Mosfet) with the output of a adjustable power supply from 1.2 volts - 9 volts, (max. 1A), and then -in this voltage area - in this circuit, to be able to connect a battery for charging, (and can I have protection in case of reverse polarity of the battery? e.g. 3.7V or 7.4V ....) * I ask this because I have little experience with electronic mounting, ** I am waiting for your advice with your own experience Thanks in advance-regards
@RalphBacon
@RalphBacon 3 роки тому
It depends on what sort of battery you are charging. It looks like you might be using a Li-Ion (eg 18650 or LiPo battery) in which case you MUST use a proper charging circuit to stop overcharging which would irreparably damage the battery. If you use a protected battery that helps but there are many charging circuit boards from Banggood and AliExpress that will help you. You can certainly use a PSU of 9v as the charging circuit will reduce the voltage via a buck circuit to what is required. It may protect you from reverse polarity protection too. You need to research this in more detail.
@RalphWLundvall
@RalphWLundvall 3 роки тому
Knife and fork held at same time. My mother taught us to eat like that; continental style. No trading which hand holds the fork.
@RalphBacon
@RalphBacon 3 роки тому
I always got told off by my Uncle when I tried to cut my potatoes with a knife. Shock! Horror! Not done in Germany, always use the fork in the right hand. I think that has gone by the board now, though, thank goodness.
@WhoWantsToKnow81
@WhoWantsToKnow81 3 роки тому
@@RalphBacon How do you insult a French cook? By cutting an omelette with a knife.
@ReneKnuvers74rk
@ReneKnuvers74rk 3 роки тому
Would this work with an N-channel mosfet put on the low side?
@RalphBacon
@RalphBacon 3 роки тому
Putting N-Channel MOSFETs into the low side is a bit tricky, Rene, because it means the GND reference can change. This, in turn, can upset the thing you are running. You won't be able to control the MOSFET from the device you are powering if you do it that way but maybe a simple polarity protection circuit like this _might_ work. Only one way to find out. But I'd recommend getting a few (cheapish) P-Channel MOSFETs!
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
Ralph, thanks for creating this, I'm just getting started out in micro electronics and found it very informative. I do have a question though. I am trying to create a LED control module (5v) using ESP32 but I want to include reverse polarity protection as I'm powering with a barrel style PSU and I know some of these have a negative center pin, so it may be easy to plug in the wrong PSU at some point. My PSU is 5amps and the LEDs will be drawing that at maximum brightness. Would it be wise to use the PDP0959 Mosfet you showed for this purpose, seeing as it can handle upto 35A? or is there a better one you could recommend?
@RalphBacon
@RalphBacon 2 місяці тому
That MOSFET would work but it is quite chunky (technical term, obvs). You could go to the RS Components site and set some filters on the MOSFETs page that allows the voltage (5v?) and current (5A) and see which ones might suit. But size-wise you can get some very small 8-pin chips that would handle this with ease (eg half an Si4599).
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
Thanks for responding Ralph, to be honest the 3 pin MOSFET looks much less complicated to wire into my circuit. I would have no clue where to start with the Si4599 how is it that the chips handle it better the the 3 prong version?@@RalphBacon
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
Well I think i figured it out after looking at the data sheet. Many thanks for your help, that was a really useful video. You gained another sub and a like! Cheers!!@@RalphBacon
@RalphBacon
@RalphBacon 2 місяці тому
Glad you figured it out; that Si4599 (or equivalent AO4606) is just two MOSFETs in one package (as you now know, of course), one P-channel and one N-channel.
@mybritishcomputerguy
@mybritishcomputerguy 2 місяці тому
I am curious to know though.. does the Si4599 work better than it's larger counterpart that you use in your video? Is it a case of bigger is not always better?@@RalphBacon
@ayan.debnath
@ayan.debnath 10 місяців тому
Sir, is there any SMD component that does these all?
@RalphBacon
@RalphBacon 10 місяців тому
Not a single component that does it all, but there are SMD components for all parts mentioned here (MOSFET, Transistors, LEDs etc).
@leroycasterline1122
@leroycasterline1122 3 роки тому
Very interesting! I'm a retired programmer who spent many years writing GUI's for ADC/DAC evaluation kits, but has no electronics design experience. I was surprised by your caution to always check the specific manufacturer's datasheet. I'd thought of a part number as a specification such that all parts with that number would be the same regardless of manufacturer. Your advise seems to indicate that some critical specs may vary from manufacturer to manufacturer, which may seem obvious to experienced designers but wasn't to me. Over the past few months I've watched many electronics-oriented videos but this is the first to offer this important tidbit. Can I assume that if a specific part is mentioned without specifying the manufacturer, I can use a part from any manufacturer?
@RalphBacon
@RalphBacon 3 роки тому
Pretty much, Leroy. But it never hurts to read the datasheet _from the manufacturer who made it_ just to be sure that critical specs (for your project) are all as you would expect.
@janseiffert7799
@janseiffert7799 3 роки тому
Let's say it this way: most parts have a "primary spec", their main intended use, that is often the same from different manufactures (say BC546 -> 80V 100mA small signal NPN transistor). It gets complicated with secondary and tertiary specs. And that can be really iffy if you do not use a part for its main/in a simple use case or at the edge of such a secondary spec. Take for example some MOSFET, but your application does not depend on the simple V/A/RDSon spec, but on avalanche energy it can take.
@leroycasterline1122
@leroycasterline1122 3 роки тому
@@janseiffert7799 Thanks, Jan. That helps a lot.
3 роки тому
Thanks for your video. I have 2 questions anyway : why always using P-Channel like you shown and never N-Channel on the ground side? I built a circuit that work with a single 1,5V but I found nothing at this low voltage to protect the circuit then I used a fuse with a diode in reverse.
@Tekwyzard
@Tekwyzard 3 роки тому
Many good examples of using the more commonly available and actually better for the job N-channel mosfets can be found by merely using Google or similar. Most of them are mirror images of the one that Ralph showcases and explains so well.
@superdau
@superdau 3 роки тому
Because it is usually much harder to break all ground connections to a circuit. You often have other ground connections to the circuit through a case for example or the circuit is connected to another one and needs a common ground.
@RalphBacon
@RalphBacon 3 роки тому
Putting an N-channel MOSFET into the LOW side _can_ work too, but I've found that some components/modules are sensitive to the GND reference changing as a result (you're putting in resistance into the ground path, after all). Perhaps modern day components do this better than when I last tried this!
@LimbaZero
@LimbaZero 3 роки тому
Some devices uses negative inputvoltage for their PSU. like -48V. This is because you have to also require 10-30A.
@Tekwyzard
@Tekwyzard 3 роки тому
@@RalphBacon Thanks for yours and other commenter's clarifications regarding low side switching, it has worked very well the few times I've done it, but it certainly wouldn't be suitable for every application, as has been well explained by others on here. I didn't at first believe that misusing a mosfet like this could possibly work, without liberating some quite expensive magic smoke, so I was quite nervous the first few times I 'trusted' the method, and deliberately reversed the polarity on my projects, only for absolutely nothing at all to happen, but even now it still seems like witchcraft compared to the old way of using diodes in series.
@TheUnofficialMaker
@TheUnofficialMaker 3 роки тому
I have a 4-20ma output from a CT that I would like to convert to a simple on/off output, so I know when the water heater is on, so I can log with an Arduino. This way I can monitor power usage. I'd like to use a transistor or FET to do the conversion, but not sure how to design the circuit. Any ideas? it outputs about 6ma when water heater is on.
@RalphBacon
@RalphBacon 3 роки тому
Is that 6mA DC or AC? You can put that through an optical isolator LED which will have an opto-transistor as part of the package. This will then go HIGH when the LED is lit. For an idea how this works look at my video #18 (ukposts.info/have/v-deo/nGmWqohkgmx3oo0.html ) on relays. You don't have to use a relay, of course, but you will get to understand how the optoisolator works. This makes it safe to use too. Instead of closing a relay you could turn on a MOSFET that is connected to a digital GPIO pin on your relay that goes HIGH (or LOW, doesn't matter which) when you heater is on. Or just use that relay module for total simplicity! Does this make sense? Watch the video before replying!
@TheUnofficialMaker
@TheUnofficialMaker 3 роки тому
@@RalphBacon its an industrial current transformer with 4-20ma dc output, 0-100 amps and the current being measured is about 20 amps.I think I could just put a resistor in series with the loop current and connect that to a digital input. My first plan was to measure with A0. but then I'd have to turn on a digital output at some threshold in order to trigger an interrupt.
@MultiRdh
@MultiRdh 3 роки тому
Hi Ralph, Can you make some video on PORT REGISTER for arduino controller
@RalphBacon
@RalphBacon 3 роки тому
In what way do you mean this, Syed? Do you mean directly manipulating the port pins (or the whole port) rather than addressing the pins via pinMode and digitalWrite?
@MultiRdh
@MultiRdh 3 роки тому
@@RalphBacon if you can use port register rather than pin mode or digital read or write as pinmode consume 250 or 255 bytes
@RalphBacon
@RalphBacon 3 роки тому
Well, yes, it saves a few bytes here and there. Look at my video #175 ukposts.info/have/v-deo/eaehprChjmeikZ8.html to see whether that helps you.
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
It's best to highside switch with a p channel anyway isn't it Sir rb? I mean when dealing with microcontrollers. You're right about p-channel as well. You might get 5 if you order a 40 dollar pack haha. I forget how to draw them all the time haha.
@RalphBacon
@RalphBacon 10 місяців тому
It is best to switch high side with microcontrollers (most electronics) because otherwise the ground potential keeps changing (relatively speaking). But some P-channel MOSFETs are good value, just required a really good search!
@Fleurlean4
@Fleurlean4 Рік тому
I have a project that has a disposable battery pack with 4 AAs, but also can be powered by 5v from USB. How to make a simple power selector circuit that prioritizes the USB 5v when present, and protects the batteries from any discharge or applied voltage, but selects them when USB is gone?
@RalphBacon
@RalphBacon Рік тому
There are modules out there that do this, or you can design your own with a MOSFET. Basically, if the USB voltage is present it will turn off the P-channel MOSFET that allows the battery to connect to the circuit. When the USB voltage is absent, the gate to the MOSFET will be LOW and thus allow the battery current to flow. Because the (5v TTL Gate Voltage) MOSFET is such a low resistance when turned on you lose nothing from the battery power pack (unlike a diode that drops up to 1v).
@Fleurlean4
@Fleurlean4 Рік тому
@@RalphBacon Superb answer, thank you. We are making a cost sensitive product so probably going with your individual mosfet suggestion rather than a module or an ideal diode IC.
@cmuller1441
@cmuller1441 3 роки тому
You can transform a LED into a bidirectional device by putting it behind a full bridge rectifier...
@Roy_Tellason
@Roy_Tellason 3 роки тому
A second LED connected the other way around would be simpler.
@RalphBacon
@RalphBacon 3 роки тому
As I mentioned elsewhere I didn't want the LED diode's forward voltage drop to interfere with anything. This kept it simple (like me). And what Mr. Einstein said.
@cmuller1441
@cmuller1441 3 роки тому
@@Roy_Tellason yes but the light comes from somewhere else
@LimbaZero
@LimbaZero 3 роки тому
@@cmuller1441 But if you do that dual led setup before reverse voltage protection and use green + red leds for power indicator. fast way to notice it's connected wrong.
@cmuller1441
@cmuller1441 3 роки тому
@@LimbaZero The led was supposed to be the load after the reverse protection... Making it work both way illustrates that the reverse protection works... Also LEDs have a limited reverse voltage breakdown. If you apply that to a large voltage you may kill them. You'll have to add a diode in series to protect them... You can find a full bridge in a single chip so my solution is simple. Here you have to add a second led and 2 diodes. This is a mess.
@nicolasjonasson4820
@nicolasjonasson4820 2 роки тому
How would a similar mosfet circuit look like on a negative rail?
@RalphBacon
@RalphBacon 2 роки тому
I've seen similar circuits using the negative rail (the TP4056 battery charger effectively does this, as it switches the battery negative in and out of circuit) but you must be careful with the ground potential changing; microcontrollers don't like that one bit.
@KW-ei3pi
@KW-ei3pi 9 місяців тому
Ralph, on a similar subject, I have a very important question that hasn't been discussed in any UKposts tutorial that I have yet found. That is switching Arduino pins connected to negative terminals (-) on what ever it is we are powering, to HIGH. This is very counter intuitive for someone familiar with something like an automotive electrical system. As an example, I followed a UKposts tutorial to connect my Stepper motor Driver. The positive pins (+) on the Driver are connected to 5v. The negative pins (-) are connected to a digital Arduino pin. To power the circuit, this Arduino pin is switched to HIGH. It works, but I don't understand it, and I have seen examples connected the opposite way. It seems like this would be a dead short. Doesn't this cause both the positive and negative pins on my Driver to be connected to 5v? Can you PLEASE make a video explaining how this works? Thank you so much! Regards.
@RalphBacon
@RalphBacon 9 місяців тому
Is your stepper motor a bipolar or unipolar type? That is, is it being controlled by an SN754410ne H-Bridge controller, or a 2004 Darlington Array (transistor)?
@KW-ei3pi
@KW-ei3pi 9 місяців тому
@@RalphBacon It's bipolar, and controlled by an DH860S Driver. Thanks
@RalphBacon
@RalphBacon 9 місяців тому
The controller you are using is quite sophisticated and would not allow you to connect the +ve to the -ve line, although you could do so with a "standard, homebrew" H-Bridge controller if your code is a bit rough (please don't ask me how I know this). For a good (and simple) explanation of how H-Bridges work see here: bit.ly/HBridgeSimple
@KW-ei3pi
@KW-ei3pi 9 місяців тому
@@RalphBacon Thanks Ralph, but I was looking for a more general explanation regarding switching a digital pin on the Arduino, that is connected to a negative pin on "what ever" to HIGH. The example I gave was just that, and it works. I was hoping that you could shed some light on "why" this works, and in what sort of situations sending HIGH to a digital pin connected to a negative terminal would be the correct connection.
@KW-ei3pi
@KW-ei3pi 9 місяців тому
@@RalphBacon The wiring diagram I have followed is in this UKposts video: ukposts.info/have/v-deo/oYmQaI-Go6ai2n0.html
@WagonLoads
@WagonLoads Рік тому
My last question made me think.... of a cheat to this.. ....... of course it uses a lot more power(not good for battery circuits) Just get a double pole, double throw relay wired a polarity reverser and power the coil with a diode that turns the relay on when the polarity is the wrong way Now, how would you do that without a relay or standard bridge rectifier?
@RalphBacon
@RalphBacon Рік тому
Would a relay be fast enough to protect the rest of the circuit? In theory, your idea works but I would want to detect (eg on a 'scope) for how long the incorrect polarity was present before the relay kicked in. There we are, your homework for this week!
@woodworking3815
@woodworking3815 3 роки тому
You could have used two LEDs anti parallel instead of an incandescent bulb.
@RalphBacon
@RalphBacon 3 роки тому
There is still the voltage drop across the diode to confuse matters - I've learned my lesson, keep it simple!
@jerm5772
@jerm5772 3 роки тому
Why not just use a diode? Can you explain the need for the mosfet? Because using a mosfet seems to complicate everything.
@RalphBacon
@RalphBacon 3 роки тому
And many cheap circuits do "just use a diode" but suffer the voltage drop across the diode as a result. So if you're hoping for 5v you have to supply 6v - not the standard phone charger wall wart voltage. Using a MOSFET ensures no voltage drop and no heat generated, all due to the incredibly low "on" resistance of the MOSFET. I don't agree with you, Jer, that the MOSFET complicates everything at all! It's just another transistor at the end of the day. Simples!
@imho2278
@imho2278 11 місяців тому
He just did. Go back and rewatch.
@jerm5772
@jerm5772 11 місяців тому
@imho2278 I asked this question 2 years ago. And someone answered it 2 years ago. I was asking why use a mosfet at all, and instead remove the fet and use a diode to prevent reverse polarity. But I know now that this video is not just about stopping reverse polarity. It is more about how a mosfet works, and voltage control. Im still learning. 😀
@dzidmail
@dzidmail 10 місяців тому
@@jerm5772 Also diode allows current only one way, while mosfet is like a switch so current can flow both ways (while providing voltage polarity protection). So for example if there was a motor and it would be hand-driven, then with diode blocking the current the BEMF voltage can be high and would need to be clamped on the board (e.g. using beefy TVS diode), however if you use mosfet then the BEMF voltage will be clamped at battery level and you get some charging. Additionally, in that example, going diode route could require actually quite large diode due to motor current x diode voltage drop.
@jstro-hobbytech
@jstro-hobbytech 3 роки тому
I've noticed they include mosfets in arduino kits now. I've been wondering why.
@RalphBacon
@RalphBacon 3 роки тому
They obviously watched my video and took it from there, Joey!
@jstro-hobbytech
@jstro-hobbytech 3 роки тому
@@RalphBacon proper thing haha.
@richardgrier4721
@richardgrier4721 3 роки тому
I use "ideal diodes" for this. E.g., www.ebay.com/sch/i.html?_from=R40&_nkw=ideal+diode&_sacat=0&LH_TitleDesc=0&_sop=15 Sure enough, 2-Pchan FETs in parallel (so that the individual power limits for these surface mount devices are honored) and misc. additional components (2 resistors and a zener). For $3 - $4, problem solved up to 15A load current.
@RalphBacon
@RalphBacon 3 роки тому
Well, well. With a name like "diode" you would not expect a P-Channel MOSFET to be lurking in there. For others, here's a quick link to one that supports 7A: www.electronicdesign.com/markets/automotive/article/21807223/ideal-diode-supports-battery-protection-to-7-a Pricing for 1000 starts at $2.55 so I suppose individually they are twice that price.
@jstro-hobbytech
@jstro-hobbytech Рік тому
I usually put in a little snubber network in parallel
@RalphBacon
@RalphBacon Рік тому
You can do that too, yes, should work.
@clifforddicarlo9178
@clifforddicarlo9178 3 роки тому
Ralph, why not just use a Germanium Diode (Vf ~ 0.2 v)?
@davidwillmore
@davidwillmore 3 роки тому
For one, they are hard to find anymore and; two, they can't handle much current.
@RalphBacon
@RalphBacon 3 роки тому
David beat me to the two huge reasons! Find me a germanium diode, Clifford, that can take at least 1A and is available at somewhere like DigiKey, Mouser, RS Components! You can only find "new old stock" diodes like the OA81 (ah, memories) from eBay! And that allows about 5mA before it melts. Anyway, even if germanium diodes were available the MOSFET design is still more efficient with next to zero voltage drop across it (as you saw).
@soerenraudonis
@soerenraudonis Рік тому
I used diodes as a child to burn wood and stuff run by a battery… pretty hot
@RalphBacon
@RalphBacon Рік тому
That's called the Alternative Diode Use for Fire Making. Well known. 🤷
@GermanMythbuster
@GermanMythbuster 9 місяців тому
...or if you are Lazy or need a Small Package use a Smart Bypass Diode. Problem solved :D
@RalphBacon
@RalphBacon 9 місяців тому
What's the forward voltage drop of a Bypass Diode though?
@normcaissie5598
@normcaissie5598 3 роки тому
love it. I'm a complete noob. I killed my first 3D printer (Anet a8) by wiring it backwards. That was before I started in Arduino world. Then when the new board came in I found the power supply dead also. It just died because they are cheap.
@RalphBacon
@RalphBacon 3 роки тому
So there we are, a Real Life example of how things can go wrong. Sorry for your 3D printer, Norm, but thanks for sharing that rather unfortunate turn of events. This circuit could protect things in future.
@tubeDude48
@tubeDude48 3 роки тому
Voltage drop is 0.7V for the 1N400x
@RalphBacon
@RalphBacon 3 роки тому
Yes, about that. The in-built diode in the MOSFET drops closer to 1V though.
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
My apologies too Ralph. Send me a message on that other app and I can properly explain myself. The issue lay solely with me. It happens from time to time and as much as I try ptsd is rough. So many people fake it these days that most don't believe when you tell them. I warn most people and had someone call me neurodivergent just like everyone else recently. I shut up and let this person have their wave off aka I'm lying thing. I only do it to warn as I should've done better to you. I'm sorry. It's an acronym which gets overused but it's the lesser known underlying ones which make life hell sometimes and you don't know why and I happen to lose time and self sabotage by saying things I don't mean to people I respect alot. Half of north America has it now because someone doesn't see 5he world from their uneducated point of view. Here I am trying my hardest to be useful to someone but I always mess it up and you can't blame people for not believing my reason when half their coworkers claim to have it. Anyway. Sorry brother.
@RalphBacon
@RalphBacon 10 місяців тому
Don't worry about it, I wish you well and hope you get the PTSD treated or medicated so that you feel better.
@jstro-hobbytech
@jstro-hobbytech 10 місяців тому
@RalphBacon I'm doing better the last year believe it or not. I'm finished with trying new meds. I've been on every ssri and antipsychotic med you can imagine over the past decade. I've went with an out of pocket solution which costs me 200 a week but I'm not poor so it's worth it. Workers comp would pay half but they want free access to my personal files and there's alot there of no concern to them and when people have that access across all facets of life they weaponize it. The best man at my wedding and I at his held me under his thumb and also bullied me with it for years until I stood up to him. Something I could have sweet, sweet revenge if I wanted because I do not break confidence and he would at best be without a pension or job. He's such a coward he looks the other way if I see him and must feel guilt as I was told he had me removed from wedding photos. Hahaha how fucked is that. Oops sorry. I am not embarrassed of what I am as I do what I can to help people and I'm fiercely honest and always make amends, even if I've done nothing wrong. Being forging and kind is rare and from personal experience, also not something people look for in a person anymore which I find so counterintuitive to how I was taught to behave. I was recently accused for trying to take advantage of someone when trying to help and as a result gave up alot of money at once which I had obtained by selling an item dear to me as a musician. I'm many things but dishonest as you've seen is not one. On an unrelated note you should develop a pure programming related principles course that you put behind a paywall. Most makers are kings of nested if statements. It reminds me of a time in university when a friend was taking a visual basic course and wrote a card shuffling block of code that was over 300 lines long. When he left the room to shower I rewrote the shuffle code in about 30 lines without any predictable behavior because of how horrible random numbers were at the time back in 01 and he snapped when he came back in because I told him I deleted his code but I had just unchecked the box to make it visible. He ended up getting his first A and became a better programmer instead of being a know it all like his whole family were haha. He thanked me later as I took the time to explain it to him. Teach a man to fish right haha. Pcs were so slow back then and the exe brought his amd 300 to its knees when he hit the deal button. What a horrible language that was. I always wrote everything in borland c beforehand when it came to learning then I'd have the logic nailed down. We hadn't adopted c++ 98 stl at that time in university. All I did at home was code then stopped for almost 20 years. Sorry. My point is most makers suck at coding because it's so easy to stitch together blocks from other's work. I don't do that and you don't either unless it's pointless not to. I know you're busy but people are taught that pointers and such are no longer needed because they write using interpreted languages which were written in c haha. I'd pay for it too. I'm not perfect. You have a lifetime of experience.
@lezbriddon
@lezbriddon 3 роки тому
how could you miss the common car stereo/cb radio supply-parallel 'idiot diode' configuration..... way more common than series diode....
@Chrisamic
@Chrisamic 3 роки тому
In the old days, yes. I've replaced many diodes in friend's equipment when they let the magic smoke out of the diode. The idiot diode relies on the diode junction failing short circuit, which they do 99% of the time, and taking the fuse out before any serious harm is done. It's that 1% that makes this a really poor choice, plus the fact that it requires a part replacement to get the equipment operational again (not necessarily a bad thing, consider some of my friends).
@RalphBacon
@RalphBacon 3 роки тому
A diode wired in reverse across the supply is a cheap (but bad) design IMHO. It depends on a fuse blowing somewhere (do you put fuses into your Arduino project? I thought not). If I didn't know better I'd say this would be prevalent in Asian designs. And as others have mentioned it then requires a fix! Hmm, return to base, and pay $20 to have a 10c diode replaced. Ironically, in a car you have sufficient volts to waste one across a (high power) diode but even so a MOSFET is a better design!
@lezbriddon
@lezbriddon 3 роки тому
@@RalphBacon actually its a very American thing. Unless it's just that a lot of American car radios and CBs were Asian imported, that I don't know, but all my CB gear had the diode fitted, and I have repaired many of other people's who were obviously colour blind.
@Chrisamic
@Chrisamic 3 роки тому
@@lezbriddon Yes, I think it was used in every CB radio made in the 1970's (some great radios came from that era). It wasn't just an American thing though, I've done this fix on more Unidens than I care to think about. I think the reason it was so popular is that it only cost the manufacturers a few cents to implement, whereas a more sophisticated approach that didn't limit voltage or current was very expensive in 1970. @Ralph S Bacon Actually the fuse usually blew before the diode did, so quite often the user could figure it out and get it working themselves. For those that hooked it up in reverse with no fuse, at least the equipment was repairable and not a total write-off. Selection of the fuse was critical - pick a value that was too high or a 'slow' version by mistake, or simply have some really bad luck and you were in a world of hurt. Very often when I did this repair I would change the blown 10 amp fuse for a 2 amp fast one, which is all a 15 watt radio really needed.
@yogeshitaliya473
@yogeshitaliya473 3 роки тому
Nice none again
@RalphBacon
@RalphBacon 3 роки тому
Thanks for posting, Yogesh.
@flemmingchristiansen2462
@flemmingchristiansen2462 3 роки тому
Great video. Stay true to your bloopers. It only that you are no (sorry to inform you) God or wizard. Also, it makes you channel believable and interesting. You don't have to go as far as JayzTwoCents (ukposts.info/the/kWQ0gDrqOCarmUKmppD7GQ.html), He is funny and informative with a lot of bloopers.
@RalphBacon
@RalphBacon 3 роки тому
Hang on, Flemming, I'm not a god? And not a wizard either? Gee, that sucks. 😔 I guess I'm just a lowly UKposts maker. Oh. 😀 That's alright then! Phew! It did teach me a lesson though, to watch my own video through! And not to rush things.
@flemmingchristiansen2462
@flemmingchristiansen2462 3 роки тому
@@RalphBacon Sorry to ruin your "self image", or selfie as they might call it today 😂
#193 Smart Phone Charger (done) & PICkit 2 & 3 under Win10 - FIXED!
30:38
Ralph S Bacon
Переглядів 4,1 тис.
#BB4 MOSFETs - From an Arduino Perspective
15:10
Ralph S Bacon
Переглядів 21 тис.
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Переглядів 3,6 млн
0% Respect Moments 😥
00:27
LE FOOT EN VIDÉO
Переглядів 40 млн
😱СНЯЛ СУПЕР КОТА НА КАМЕРУ⁉
00:37
OMG DEN
Переглядів 1,6 млн
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
Designing Power MOSFET Circuits - Circuit Tips and Tricks
20:10
MicroType Engineering
Переглядів 322 тис.
How MOSFET Works - Ultimate guide, understand like a PRO
20:14
The Engineering Mindset
Переглядів 723 тис.
How to protect circuits from reversed voltage polarity!
6:46
Afrotechmods
Переглядів 2,1 млн
7 awesome applications of transistors in circuits
27:12
Electronic Wizard
Переглядів 120 тис.
Рекламная уловка Apple 😏
0:59
Яблык
Переглядів 745 тис.
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 398 тис.
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 216 тис.