Transistor as a switch - low side or high side

  Рет қаралды 26,225

learnelectronics

learnelectronics

Күн бұрын

Transistor as a switch - low side or high side
www.pcbway.com/ Get 5 boards in about a week for $22!
In this video we look at transistor as a switch. That means the transistor goes from fully off (cutoff) to fully on (saturation). As we look at this use of the transistor we look at where in the circuit relative to the load should we place the transistor. Before or after the load. Finally we look at using a BJT NPN to switch. an N channel MOSFET.
Yes!! I now have merch: teespring.com/stores/learnele... Electronics themed T-Shirts!
HEY YOU ABOUT TO POST SOMETHING STUPID:
Yes, I know my hands are large/fat. It's because of a heart condition I suffer from called Congestive Heart Failure. Here's a link to some information about CHF: cle.clinic/2TdS2Ux
One of the symptoms is that is causes fluid retention, mostly in the hands, feet/ankles, and face.
It will kill me one day. I'm doing ok right now, but someday...
--------------------------------------------------------------------------------------------------------------------
If you are shopping for electronic components, test gear or consumables please consider visiting my Amazon shop @ amazon.com/shop/learnelectronics
Please check out www.patreon.com/learnelectronics and pledge a dollar if you can. It will go a long way to keeping the channel alive. It costs a bit of money to buy all the items and produce these videos. You help is appreciated.
---------------------------------------------------------------------------------------------------------------------
Or....if you'd like to send a one-time donation you can use this link: paypal.me/learnelectronics
----------------------------------------------------------------------------------------------------------------------
Geaqr I use:
DMM: Owon B33+ - amzn.to/3qQgH20
Power Supply: Matrix 3206 - amzn.to/37C0fL9
Portable O'scope: YEAPOOK ADS1013D - amzn.to/2ZG4G3x
Bench O'Scope: Hantek DSO5072P - amzn.to/3pUl2jL
Soldering Station - KSGER T12 - amzn.to/2NuNdby
Multimeter leads: Probemaster - amzn.to/2ZJ0BLK

Пікірлер: 80
@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.
@johnrichards270
@johnrichards270 2 жыл бұрын
I wanted a brief into to what low/high side switching was all about and you , nailed it! Many thanks.
@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! : )
@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!
@agstechnicalsupport
@agstechnicalsupport Жыл бұрын
Brief and to the point. Thank you for sharing !
@propagating-radio
@propagating-radio 3 жыл бұрын
Very informative video. Thanks!
@dannyjensen4954
@dannyjensen4954 3 жыл бұрын
Thanks. I’ve had issues with this topic. Very helpful.
@adammills4099
@adammills4099 2 жыл бұрын
Amazing, I had the question, you had the answer clear and concise! thanks!
@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 😁
@ronaldjorgensen6839
@ronaldjorgensen6839 3 жыл бұрын
great stuff thanks as always
@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
@ajoyz124
@ajoyz124 3 жыл бұрын
You should also consider using PNP BJT.
@frankowalker4662
@frankowalker4662 3 жыл бұрын
Useful to know, Cheers Paul.
@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)
@electronic7979
@electronic7979 3 жыл бұрын
Helpful video
@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.
@lovrinjo6783
@lovrinjo6783 3 жыл бұрын
Thank you this is going to help me a lot
@t1d100
@t1d100 3 жыл бұрын
Great point about the current going to ground.
@Bianchi77
@Bianchi77 3 жыл бұрын
Nice info, thanks :)
@melplishka5978
@melplishka5978 3 жыл бұрын
Awsome vid bud.
@fertilizerspike
@fertilizerspike 3 жыл бұрын
Very informative
@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 :)
@michaeljoshuamanallo1742
@michaeljoshuamanallo1742 2 жыл бұрын
Thank you sir this helps a lot for a begginer like me
@stevetobias4890
@stevetobias4890 3 жыл бұрын
Cool video, thanks mate
@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.
@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!!
@TheBoss0110101001
@TheBoss0110101001 3 жыл бұрын
Thanks 👍
@AK-yn4br
@AK-yn4br 2 жыл бұрын
would be nice to see more about driving MOSFET on high side
@atomictraveller
@atomictraveller 2 жыл бұрын
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.
@jeffersonavila7275
@jeffersonavila7275 3 жыл бұрын
thankz, now im already aware why pir sensor has high side switching
@loucinci3922
@loucinci3922 3 жыл бұрын
Thank you
@planktonfun1
@planktonfun1 2 жыл бұрын
still V-0.7 if using BJTs for the load fully saturated, this is called Sziklai Darlington Pair
@albertodecaro5290
@albertodecaro5290 3 жыл бұрын
Very interesting
@rampr4225
@rampr4225 3 жыл бұрын
Excellent 👌👍👏
@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 👍👍
@ronm6585
@ronm6585 3 жыл бұрын
Thanks.
@louisroux8517
@louisroux8517 3 жыл бұрын
simplicity is the ultimate sophistication
@fefafafe5059
@fefafafe5059 3 жыл бұрын
Dear Sir, Would you please explain more about mosfet & about its pin ??? Thanks
@chichung2243
@chichung2243 3 ай бұрын
thanks
@jscons7424
@jscons7424 6 ай бұрын
Thanks, Elohim bless you for this knowledge been shared
@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"?
@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?
@beverlykid6019
@beverlykid6019 3 жыл бұрын
Any chance you can make a tutorial on how to control galvo motors using an arduino ty
@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?
@northtrader
@northtrader 7 ай бұрын
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.
@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.
@windowsxseven
@windowsxseven 2 жыл бұрын
the virgin npn vs the Chad pnp
@jobsillavlog6921
@jobsillavlog6921 3 жыл бұрын
sir for auto mition that also driver to operate switching
@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 ☮️
@elliotcruz7821
@elliotcruz7821 Жыл бұрын
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.
@eadge1999
@eadge1999 9 ай бұрын
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
@XPFTP
@XPFTP 3 жыл бұрын
wish we could build a band condtion switch hahahha... been so crappy past few weeks lol
@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.
@melplishka5978
@melplishka5978 3 жыл бұрын
It’s a “ marlington pair “ lmfao.
@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. :-)
@Derived_One
@Derived_One 3 жыл бұрын
Is this the same thing as the emitter-follower?
@timbrown9961
@timbrown9961 3 жыл бұрын
No cause he is using the transistor as a switch in saturation mode meaning its just on or off google saturation mode.
@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.
Computer Outputs: High-Side and Low-Side Drivers
6:56
Justin Miller
Рет қаралды 21 М.
NPN vs. PNP Transistors as Common-Emitter Switches
8:58
Kevin Patterson
Рет қаралды 605 М.
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 181 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 19 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 3,8 МЛН
The Two Transistor Latch
6:21
learnelectronics
Рет қаралды 23 М.
How an NPN Transistor Works as a Switch?
7:58
ElectroTec
Рет қаралды 52 М.
MOSFETs: High-Side vs Low-Side Switching
6:57
Jonathan Currie
Рет қаралды 89 М.
MOSFET vs BJT, Unforgivable misunderstandings about them
9:02
Electronic Wizard
Рет қаралды 24 М.
2N2222 NPN Transistor as a switch - Arduino example with LED Flash
14:47
ULN2803 Low-Side Drivers and UDN2983 High-Side Drivers
20:34
KainkaLabs
Рет қаралды 37 М.
Classic Circuits You Should Know: Constant Current Source
7:05
learnelectronics
Рет қаралды 114 М.
Designing Power MOSFET Circuits - Circuit Tips and Tricks
20:10
MicroType Engineering
Рет қаралды 329 М.
SSD с кулером и скоростью 1 ГБ/с
0:47
Rozetked
Рет қаралды 592 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 35 МЛН