Transistor as a switch - low side or high side

Sdílet
Vložit
  • čas přidán 2. 07. 2024
  • 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
  • Věda a technologie

Komentáře • 80

  • @nigeljohnson9820
    @nigeljohnson9820 Před 3 lety +6

    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.

  • @johnrichards270
    @johnrichards270 Před 2 lety

    I wanted a brief into to what low/high side switching was all about and you , nailed it! Many thanks.

  • @propagating-radio
    @propagating-radio Před 3 lety +2

    Very informative video. Thanks!

  • @agstechnicalsupport
    @agstechnicalsupport Před rokem

    Brief and to the point. Thank you for sharing !

  • @davethedaemon9024
    @davethedaemon9024 Před 3 lety +5

    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 Před 3 lety +2

      Not only old. You're savvy too. Two conditions that aren't always related!

    • @unregistereduser2
      @unregistereduser2 Před 3 lety

      Yeah, I'd definitely use pnp or p channel for high side switching. Way more efficient.

  • @keithking1985
    @keithking1985 Před 3 lety +1

    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! : )

  • @ronaldjorgensen6839
    @ronaldjorgensen6839 Před 3 lety +2

    great stuff thanks as always

  • @dannyjensen4954
    @dannyjensen4954 Před 3 lety

    Thanks. I’ve had issues with this topic. Very helpful.

  • @adammills4099
    @adammills4099 Před 2 lety

    Amazing, I had the question, you had the answer clear and concise! thanks!

  • @kungfumaster8171
    @kungfumaster8171 Před 3 lety +1

    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

  • @t1d100
    @t1d100 Před 3 lety

    Great point about the current going to ground.

  • @frankowalker4662
    @frankowalker4662 Před 3 lety

    Useful to know, Cheers Paul.

  • @tablatronix
    @tablatronix Před 3 lety +1

    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

  • @jdmccorful
    @jdmccorful Před 3 lety +3

    Great refresher!Thanks.

    • @marcelsincere9933
      @marcelsincere9933 Před 3 lety

      i realize I'm pretty randomly asking but do anybody know a good website to stream new series online ?

    • @rylandira9298
      @rylandira9298 Před 3 lety

      @Marcel Sincere I use flixzone. You can find it on google :)

    • @titusarthur9770
      @titusarthur9770 Před 3 lety

      @Marcel Sincere i watch on flixzone. You can find it on google :)

  • @lovrinjo6783
    @lovrinjo6783 Před 3 lety

    Thank you this is going to help me a lot

  • @fertilizerspike
    @fertilizerspike Před 3 lety

    Very informative

  • @Bianchi77
    @Bianchi77 Před 3 lety

    Nice info, thanks :)

  • @michaeljoshuamanallo1742

    Thank you sir this helps a lot for a begginer like me

  • @ajoyz124
    @ajoyz124 Před 3 lety +1

    You should also consider using PNP BJT.

  • @electronic7979
    @electronic7979 Před 3 lety +1

    Helpful video

  • @erygion
    @erygion Před 3 lety +10

    Did you say "switch-uation"? lmao good one Paul, you had me laughing with that one.

    • @stuffandjunkanduhh5049
      @stuffandjunkanduhh5049 Před 3 lety +1

      i was about to comment on that too haha

    • @BrucesWorldofStuff
      @BrucesWorldofStuff Před 3 lety +1

      That;s what I heard too! Played it 3 time to make sure... :-)
      LLAP

    • @erygion
      @erygion Před 3 lety

      @@stuffandjunkanduhh5049 that's the first time I've heard that 😁

  • @stevetobias4890
    @stevetobias4890 Před 3 lety

    Cool video, thanks mate

  • @TheBoss0110101001
    @TheBoss0110101001 Před 3 lety +1

    Thanks 👍

  • @michaelpadovani9566
    @michaelpadovani9566 Před 3 lety +2

    Great topic for a video, sometimes I'm stumped on which to use as it's not always clear (at least to me lol)

  • @melplishka5978
    @melplishka5978 Před 3 lety

    Awsome vid bud.

  • @kychemclass5850
    @kychemclass5850 Před 3 lety

    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.

  • @ronm6585
    @ronm6585 Před 3 lety

    Thanks.

  • @loucinci3922
    @loucinci3922 Před 3 lety

    Thank you

  • @rampr4225
    @rampr4225 Před 3 lety

    Excellent 👌👍👏

  • @James-cb7nb
    @James-cb7nb Před 3 lety +2

    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.

  • @albertodecaro5290
    @albertodecaro5290 Před 3 lety

    Very interesting

  • @AK-yn4br
    @AK-yn4br Před 2 lety

    would be nice to see more about driving MOSFET on high side

  • @atomictraveller
    @atomictraveller Před 2 lety

    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 Před 3 lety

    thankz, now im already aware why pir sensor has high side switching

  • @chichung2243
    @chichung2243 Před 4 měsíci

    thanks

  • @louisroux8517
    @louisroux8517 Před 3 lety

    simplicity is the ultimate sophistication

  • @jscons7424
    @jscons7424 Před 6 měsíci

    Thanks, Elohim bless you for this knowledge been shared

  • @jost459
    @jost459 Před 3 lety +1

    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!!

  • @fefafafe5059
    @fefafafe5059 Před 3 lety

    Dear Sir,
    Would you please explain more about mosfet & about its pin ???
    Thanks

  • @planktonfun1
    @planktonfun1 Před 2 lety

    still V-0.7 if using BJTs for the load fully saturated, this is called Sziklai Darlington Pair

  • @waynegram8907
    @waynegram8907 Před 3 lety

    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?

  • @jobsillavlog6921
    @jobsillavlog6921 Před 3 lety

    sir for auto mition that also driver to operate switching

  • @jvon3885
    @jvon3885 Před 2 lety

    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?

  • @victorchiemerie9963
    @victorchiemerie9963 Před rokem

    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 👍👍

  • @beverlykid6019
    @beverlykid6019 Před 3 lety

    Any chance you can make a tutorial on how to control galvo motors using an arduino ty

  • @friedmule5403
    @friedmule5403 Před 3 lety

    Great explanation, so you would use a high-side before a rail to rail opamp, just to givee it a bit of "wiggle room"?

  • @SlyerFox666
    @SlyerFox666 Před 3 lety +1

    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.

  • @bblod4896
    @bblod4896 Před 3 lety

    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 ☮️

  • @northtrader
    @northtrader Před 7 měsíci

    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.

  • @eadge1999
    @eadge1999 Před 9 měsíci

    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

  • @windowsxseven
    @windowsxseven Před 2 lety +1

    the virgin npn vs the Chad pnp

  • @elliotcruz7821
    @elliotcruz7821 Před rokem

    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.

  • @Derived_One
    @Derived_One Před 3 lety

    Is this the same thing as the emitter-follower?

    • @timbrown9961
      @timbrown9961 Před 3 lety

      No cause he is using the transistor as a switch in saturation mode meaning its just on or off google saturation mode.

  • @MagicSmoke11
    @MagicSmoke11 Před 3 lety

    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 Před 3 lety

      He did say p channel BJT so you would assume that anyway

    • @jost459
      @jost459 Před 3 lety +1

      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.

  • @XPFTP
    @XPFTP Před 3 lety

    wish we could build a band condtion switch hahahha... been so crappy past few weeks lol

  • @firstlast8252
    @firstlast8252 Před 3 lety

    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 Před 3 lety

      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 Před 3 lety

      @@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 Před 3 lety

      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 Před 3 lety

      @@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. :-)

  • @melplishka5978
    @melplishka5978 Před 3 lety +1

    It’s a “ marlington pair “ lmfao.

  • @abhijithanilkumar4959
    @abhijithanilkumar4959 Před 3 lety

    Can someone please say WHAT MUST BE THE VALUE OF THE RESISTOR CONNECTED TO BASE?
    This doubt haunts me

    • @SlyerFox666
      @SlyerFox666 Před 3 lety

      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 Před 3 lety

      @@SlyerFox666 Thank you so much man

  • @brixlaptoprepair127
    @brixlaptoprepair127 Před 3 lety

    Shout out brix laptop repair and subscribe done..

  • @felsinferguson1125
    @felsinferguson1125 Před 2 lety

    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.