Transistor as a switch - low side or high side

  Рет қаралды 27,435

learnelectronics

learnelectronics

Күн бұрын

Пікірлер: 78
@nigeljohnson9820
@nigeljohnson9820 3 жыл бұрын
Why are you not using complementary transistors for high side switching? I would use an PNP transistor on the high side, to avoid the complication of a Vbe drop, by allowing the collector always to be connected to the load. A similar situation with enhancement mode mosfets, I would use a P channel mosfet. There are considerations of finding fets with the necessary speed or Ids current that may limit the choice, but in general the complimentary transistor is the first choice. Personally, I like to use open collector ( open drain ) transistors for interfacing between circuit boards. This is because the one voltage which is not subject to voltage regulation tolerance is zero volts. The ground can have noise on it, but in general it is a well defined logic signal. For similar reasons, high side switching is a preference. It is possible to design circuits fail safe and to be tolerate to at least one fault. I try and design my circuits so that a simple fault will not let out the magic smoke and force a component replacement. One simple example is when driving an LED, it is always best to connect the current limit resistor to the supply rail and the LED in series to the load. The reason is that an accidental connection to ground by a scope probe will not destroy the current limit resistor, but would most likely instantly destroy an LED connected directly to the supply rail. By using high side switching and open collector drives, it's possible to engineer the interface to survive a short to either rail. This is achieved, simply by dividing the drive circuit limit resistors into two separate resistors. One in the collector feeding the high side switch, and one in the base or gate bias to the high side switch. Both resistors limit the current and can usually survive a momentary short to rail, either because the current flow is limited or because the short is to their respective passive rail. (Nothing happens when an open collector is shorted to ground.) Fault mode analysis is always worth doing on any new design, as minor changes in circuit topology can result in a circuit that is fault tolerant and thus far more reliable. During my time as an industrial circuit designer, I attended many circuit peer review meetings. In these, the designer was required to justify the inclusion of every component and explain why a particular value had been chosen. In some cases, this came down to the component being required, but it's value chosen simply to reduce the number of different values included on the bill of materials.
@davethedaemon9024
@davethedaemon9024 3 жыл бұрын
Thanks for this. For a future episode, perhaps investigate PNP Transistors and P-Channel MOSFETs for high side switching (and how a logic zero turns them on). For NPN and N-Channel - high side switching requires a voltage HIGHER than VCC to FULLY turn them on. For NPN transistors, it's about 0.6 volts higher and possibly several volts higher for N-Channel (depending on type and current). For reference, you described Emitter-Follower (a.k.a. Common Collector) and Common Drain (a.k.a. Source-Follower) circuits. Again, the downside is you cannot switch fully to the positive rail with these circuits, therefore causing higher heat and a lower voltage than expected. The downside to PNP and P-Channel is they are typically less common and more expensive - although I don't think that was always the case. I remember pulling apart radios in the '60s that had positive ground and PNP transistors (yea, I'm old).
@josepalacid
@josepalacid 3 жыл бұрын
Not only old. You're savvy too. Two conditions that aren't always related!
@unregistereduser2
@unregistereduser2 3 жыл бұрын
Yeah, I'd definitely use pnp or p channel for high side switching. Way more efficient.
@kychemclass5850
@kychemclass5850 3 жыл бұрын
I faced this situation some time ago when self-learning about transistors. My natural 'instinct' was to put the load on the emitter (high side). But it didn't give the behaviour I was expecting nor wanted. I put the load on the collector (low side) and hey presto, the transistor did exactly what I was hoping it to do. I couldn't rationalise the difference. To try and understand why is it different, I read more on the NPN junction. After wading through people just repeating the usual bland 'base level' info about transistors (;)) I came across source of information (;)) that the NPN junction isn't actually symmetrical. That helped me understand there'd be a difference between high and low side configurations. Anyway, since that time I've always put loads on the collector (low side) and never had a problem since. I suspect that if the load on the emitter line has too high of a resistance then the possibility exists where a back-current may force its way from the collector through the base! (diode breakdown scenario) which wouldn't end well I suspect. So dropping voltage on the collector line entering the diode junction will reduce any chance of a back-current. Thanks for all your videos.
@ajoyz124
@ajoyz124 3 жыл бұрын
You should also consider using PNP BJT.
@johnrichards270
@johnrichards270 2 жыл бұрын
I wanted a brief into to what low/high side switching was all about and you , nailed it! Many thanks.
@James-cb7nb
@James-cb7nb 3 жыл бұрын
You didn't mention a huge part of using a high side switch which is your gate potential has to be a lot higher than your drain since the source voltage is no longer 0 volts. Which is why it's easier to just use a pnp or p channel transistor.
@kungfumaster8171
@kungfumaster8171 3 жыл бұрын
Really useful info. You’d be surprised how often this comes up. Most new users always reach for a npn right away then try to switch an common cathode and wonder why it doesn’t work as expected. Likewise, for PNP. One of your best videos. Thank you
@learnelectronics
@learnelectronics 3 жыл бұрын
Glad it was helpful!
@tablatronix
@tablatronix 3 жыл бұрын
I always use open collector for variable vcc swithcing, but I have never considered the ground v drop! Very good note I need to start considering
@keithking1985
@keithking1985 3 жыл бұрын
i was just watching a video about 20min's ago switching the load on the high side(collector side) or the low side(emitter side) but it was utilizing a MOSFET INSTEAD.. (an N channel one too.) very well explained Paul.. You hit all the pit fall's one would come across using this circuit. WELL DONE! : )
@jost459
@jost459 3 жыл бұрын
Hi Could you please make more about Mosfet driver for High Side and Low Side Switch? Also for N channel and P channel. And please show cheap Mosfet driver IC or other solution as boots trap. Thank you!!
@agstechnicalsupport
@agstechnicalsupport 2 жыл бұрын
Brief and to the point. Thank you for sharing !
@t1d100
@t1d100 3 жыл бұрын
Great point about the current going to ground.
@AK-yn4br
@AK-yn4br 2 жыл бұрын
would be nice to see more about driving MOSFET on high side
@atomictraveller
@atomictraveller 3 жыл бұрын
if it helps, still struggling conceptually decades after the forrest mims booklets, i've never conceived of low side switching. amazing. following + to perform tasks seems logical. hopefuly i'll understand other people more now.
@propagating-radio
@propagating-radio 3 жыл бұрын
Very informative video. Thanks!
@michaelpadovani9566
@michaelpadovani9566 3 жыл бұрын
Great topic for a video, sometimes I'm stumped on which to use as it's not always clear (at least to me lol)
@dannyjensen4954
@dannyjensen4954 3 жыл бұрын
Thanks. I’ve had issues with this topic. Very helpful.
@victorchiemerie9963
@victorchiemerie9963 Жыл бұрын
For pulse switching applications.....the gate of the mosfet needs be pulled to ground to fully turn off the mosfet nd full vcc(9-12v) at the gate to fully turn on the mosfet.using a BJT driver... Which of the circuits is best for dat......high side or low side??? Thanks 👍👍
@fefafafe5059
@fefafafe5059 3 жыл бұрын
Dear Sir, Would you please explain more about mosfet & about its pin ??? Thanks
@friedmule5403
@friedmule5403 3 жыл бұрын
Great explanation, so you would use a high-side before a rail to rail opamp, just to givee it a bit of "wiggle room"?
@planktonfun1
@planktonfun1 2 жыл бұрын
still V-0.7 if using BJTs for the load fully saturated, this is called Sziklai Darlington Pair
@northtrader
@northtrader Жыл бұрын
If i understand your NPN driving the MOSFET - it is inverted, right? GPIO HIGH will create a LOW at the MOSFET gate and 'turn it off'. Just want to confirm I am seeing this correctly.
@louisroux8517
@louisroux8517 3 жыл бұрын
simplicity is the ultimate sophistication
@adammills4099
@adammills4099 2 жыл бұрын
Amazing, I had the question, you had the answer clear and concise! thanks!
@jvon3885
@jvon3885 2 жыл бұрын
Question. If I was to connect a magnetic sensor to respond when a magnetic field is detected to shut off the circuit would it work?
@jeffersonavila7275
@jeffersonavila7275 3 жыл бұрын
thankz, now im already aware why pir sensor has high side switching
@michaeljoshuamanallo1742
@michaeljoshuamanallo1742 3 жыл бұрын
Thank you sir this helps a lot for a begginer like me
@SlyerFox666
@SlyerFox666 3 жыл бұрын
You use low or hi side switching or as I was taught sink or sourcing to drive loads that require more current, due to the volt drop across the load, if low resistance then not enough current to drive it, so you need to do it the other way around to get the current without the voltage drop from the source.
@ronaldjorgensen6839
@ronaldjorgensen6839 3 жыл бұрын
great stuff thanks as always
@waynegram8907
@waynegram8907 3 жыл бұрын
When looking at a mosfet rds data sheet how do you know which driver transistor to choose based on the RDS specs of the mosfet?
@bblod4896
@bblod4896 3 жыл бұрын
Driving the FET: If the transistor is off, the voltage on the gate will be Vcc. If the transistor is on, the voltage on the gate will be about 1.4 vdc. Correct? Would that be a low enough voltage to turn off the FET? Thanks Paul ☮️
@erygion
@erygion 3 жыл бұрын
Did you say "switch-uation"? lmao good one Paul, you had me laughing with that one.
@stuffandjunkanduhh5049
@stuffandjunkanduhh5049 3 жыл бұрын
i was about to comment on that too haha
@BrucesWorldofStuff
@BrucesWorldofStuff 3 жыл бұрын
That;s what I heard too! Played it 3 time to make sure... :-) LLAP
@erygion
@erygion 3 жыл бұрын
@@stuffandjunkanduhh5049 that's the first time I've heard that 😁
@electronic7979
@electronic7979 3 жыл бұрын
Helpful video
@MagicSmoke11
@MagicSmoke11 3 жыл бұрын
The Mosfet shown in last diagram is a P-channel MosFet right ? When the Transister pulls ground to Gate then it will work..Isn't it ?
@timbrown9961
@timbrown9961 3 жыл бұрын
He did say p channel BJT so you would assume that anyway
@jost459
@jost459 3 жыл бұрын
No it shown an N channel type When transistor pull GND to Gate the Mosfet is off, if voltage is approx. 10V higher as Source the Mosfet switch on.
@frankowalker4662
@frankowalker4662 3 жыл бұрын
Useful to know, Cheers Paul.
@beverlykid6019
@beverlykid6019 3 жыл бұрын
Any chance you can make a tutorial on how to control galvo motors using an arduino ty
@eadge1999
@eadge1999 Жыл бұрын
I have problem npn c1815 vcc 12 connected with 1k to bace it work but when i conect the bace to ground it didnt turn off what thec reason of that he is not digital transistor
@elliotcruz7821
@elliotcruz7821 2 жыл бұрын
Hello, i have an arduino that has a 5V pin, when i connect the USB to program it, this pin has voltage, but if i connect 5V to the pin, the board turns on. The problem is that I want to connect a battery to the 5V pin and make an auto selector that can select between battery power and USB power. The battery has to be cut off and cannot be charged from the 5V pin when USB is connected. The idea is to program the arduino WITHOUT disconnect the battery and the returning voltage don't affect the PC port or any board that it was connected. I hope understand the idea, sorry my english. THANKS-GIVING.
@lovrinjo6783
@lovrinjo6783 3 жыл бұрын
Thank you this is going to help me a lot
@jobsillavlog6921
@jobsillavlog6921 3 жыл бұрын
sir for auto mition that also driver to operate switching
@RixtronixLAB
@RixtronixLAB 3 жыл бұрын
Nice info, thanks :)
@jscons7424
@jscons7424 10 ай бұрын
Thanks, Elohim bless you for this knowledge been shared
@stevetobias4890
@stevetobias4890 3 жыл бұрын
Cool video, thanks mate
@XPFTP
@XPFTP 3 жыл бұрын
wish we could build a band condtion switch hahahha... been so crappy past few weeks lol
@TheBoss0110101001
@TheBoss0110101001 3 жыл бұрын
Thanks 👍
@fertilizerspike
@fertilizerspike 3 жыл бұрын
Very informative
@firstlast8252
@firstlast8252 3 жыл бұрын
Using transistors. Is it possible to get that spike when turning things on. For example. when I turn on my saw it draws allot of current the very instant it turns on. I want to utilize that spike of power for something. Is it possible to get those spikes when turning on my circuit with transistors?
@friedmule5403
@friedmule5403 3 жыл бұрын
Your question intrigues me, what do you mean by using the spike-current / spike-power? You can use it as a trigger but I do not think you have excess current. :-)
@davethedaemon9024
@davethedaemon9024 3 жыл бұрын
@@friedmule5403 Inductive loads cause a reverse voltage spike when you suddenly turn off the load. This is why you almost always see diodes connected across a relay in reverse polarity (to protect the switching circuit). This is also how DC-DC voltage converters work. A MOSFET charges and discharges an inductor causing a voltage spike. Diodes redirect the spike to a capacitor allowing you to change the voltage up or down depending on duty cycle.
@davethedaemon9024
@davethedaemon9024 3 жыл бұрын
What you are describing is how DC-DC converters work. Your saw is an inductive load and causes spikes when suddenly turned on or off (depending on when in the AC cycle you do this).
@friedmule5403
@friedmule5403 3 жыл бұрын
@@davethedaemon9024 Yes that's when you turn something OFF but he is asking about power-spike when he turns the unit ON. I suspect he may talk about inrush current. That he then will use to power something else. :-)
@ronm6585
@ronm6585 3 жыл бұрын
Thanks.
@windowsxseven
@windowsxseven 2 жыл бұрын
the virgin npn vs the Chad pnp
@loucinci3922
@loucinci3922 3 жыл бұрын
Thank you
@albertodecaro5290
@albertodecaro5290 3 жыл бұрын
Very interesting
@melplishka5978
@melplishka5978 3 жыл бұрын
Awsome vid bud.
@rampr4225
@rampr4225 3 жыл бұрын
Excellent 👌👍👏
@chichung2243
@chichung2243 8 ай бұрын
thanks
@melplishka5978
@melplishka5978 3 жыл бұрын
It’s a “ marlington pair “ lmfao.
@abhijithanilkumar4959
@abhijithanilkumar4959 3 жыл бұрын
Can someone please say WHAT MUST BE THE VALUE OF THE RESISTOR CONNECTED TO BASE? This doubt haunts me
@SlyerFox666
@SlyerFox666 3 жыл бұрын
It's in the datasheet for each transistor so something like a 2n2222 wants 10ma on the base to turn on so using ohm's law you work it out. Just be aware that's not the full story as you will probably need to calc the resistor on the collector/ emitter to which due to the characteristics of different types of transistors and gain an all that good stuff leads into the other calculations depending on what you are doing.
@abhijithanilkumar4959
@abhijithanilkumar4959 3 жыл бұрын
@@SlyerFox666 Thank you so much man
@brixlaptoprepair127
@brixlaptoprepair127 3 жыл бұрын
Shout out brix laptop repair and subscribe done..
@felsinferguson1125
@felsinferguson1125 2 жыл бұрын
Good content, but turn off whatever it is on your camera that's causing the image to "pulse" in and out. Looks almost like you have a kid running the camera and doing 1/2 second "zoom in, zoom out, zoom back in" cycles. This is *EXTREMELY* unpleasant to try to watch.
@jdmccorful
@jdmccorful 3 жыл бұрын
Great refresher!Thanks.
@marcelsincere9933
@marcelsincere9933 3 жыл бұрын
i realize I'm pretty randomly asking but do anybody know a good website to stream new series online ?
@rylandira9298
@rylandira9298 3 жыл бұрын
@Marcel Sincere I use flixzone. You can find it on google :)
@titusarthur9770
@titusarthur9770 3 жыл бұрын
@Marcel Sincere i watch on flixzone. You can find it on google :)
The Two Transistor Latch
6:21
learnelectronics
Рет қаралды 25 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 14 МЛН
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
7 awesome applications of transistors in circuits
27:12
Electronic Wizard
Рет қаралды 131 М.
Using MOSFETs with an Arduino
8:01
learnelectronics
Рет қаралды 28 М.
This Should Be Impossible... Steel and Titanium Damascus!
23:05
Alec Steele
Рет қаралды 39 М.
How to match transistors
11:18
learnelectronics
Рет қаралды 35 М.
#1517 Are Darlington Transistors Obsolete?
10:40
IMSAI Guy
Рет қаралды 11 М.
Designing Power MOSFET Circuits - Circuit Tips and Tricks
20:10
MicroType Engineering
Рет қаралды 352 М.
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 14 МЛН