• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Electronics Theory / Calculating Transistor as a Switch

Calculating Transistor as a Switch

Last Updated on January 3, 2024 by Swagatam 15 Comments

Although transistors (BJTs) are popularly used for making amplifier circuits, these can be also effectively used for switching applications.

Table of Contents
  • Calculating Saturation Levels
  • Solving a Practical Example
  • Calculating Switching Transistors

A transistor switch is a circuit in which the collector of the transistor is switched ON/OFF with relatively larger current in response to a correspondingly switching low current ON/OFF signal at its base emitter.

As an example, the following BJT configuration can be used as a switch for inverting an input signal for a computer logic circuit.

warning message: electricity is dangerous, proceed with caution

Here you can find that the output voltage Vc is opposite to the potential applied across the base/emitter of the transistor.

Also, the base is not connected with any fixed DC source, unlike amplifier based circuits. The collector has a DC source which corresponds to the supply levels of the system, for example 5 V and 0 V in this computer application case.

We will talk about how this voltage inversion could be designed to ensure that the operating point correctly switches from cut off to saturation along the load line as shown in the following figure:

For the present scenario, in the above figure we have assumed that IC = ICEO = 0 mA, when IB = 0 uA (a great approximation with regards to enhancing construction strategies). Additionally let's assume that VCE = VCE(sat) = 0 V, instead of the usual 0.1 to 0.3 V level.

Now, at Vi = 5 V the BJT will switch ON, and the design consideration must ensure that the configuration is highly saturated, by a magnitude of IB which may be more than the value associated with the IB curve seen close to the saturation level.

As can be witnessed in the above figure, this conditions calls for IB to be greater than 50 uA.

Calculating Saturation Levels

The collector saturation level for the shown circuit can be calculated using the formula:

IC(sat) = Vcc / Rc

The magnitude of base current in the active region just prior to the saturation level can be calculated using the formula:

IB(max) ≅ IC(sat) / βdc ----------Equation 1

This implies that, to implement the saturation level, the following condition must be met:

IB > IC(sat) / IC(sat) / βdc -------- Equation 2

In the graph discussed above, when Vi = 5 V, the resulting IB level can be evaluated in the following method:

If we test the the equation 2 with these results we get:

This appears to be perfectly satisfying the required condition. No doubt, any value of IB which is higher than 60 uA will be allowed to enter across Q-point over the load line situated extremely closely to the vertical axis.

Now, referring to the BJT network shown in the first diagram, while Vi = 0 V, IB = 0 uA, and asuming IC = ICEO = 0 mA, the voltage drop occurring across RC will be as per the formula:

VRC = ICRC = 0 V.

This gives us VC = +5 V for the first diagram above.

In addition to computer logic switching applications, this BJT configuration can be also implemented like a switch using the same extreme points of the load line.

When saturation takes place, the current IC tends to get quite high, which corresponding drops the voltage VCE to a lowest point.

This gives rise to a resistance level across the two terminals as depicted in the following figure and calculated using the following formula:

R(sat) = VCE(sat) / IC(sat) as indicated in the following figure.

If we assume a typical average value for the VCE(sat) such as 0.15 V in the above formula, we get:

This resistance value across the collector emitter terminals looks quite small when compared to a series resistance in kilo Ohms at the collector terminals of the BJT.

Now, when the input Vi = 0 V, the BJT switching will be cut off causing the resistance across the collector emitter to be:

R(cutoff) = Vcc / ICEO = 5 V / 0 mA = ∞ Ω

This gives rise to an open circuit kind of situation across the collector emitter terminals. If we consider a typical value 10 uA for the ICEO, the value of the cut off resistance will be as given below:

Rcutoff = Vcc / ICEO = 5 V / 10 uA = 500 k Ω

This value looks significantly large and an equivalent to an open circuit for most BJT configuration as a switch.

Solving a Practical Example

Calculate the values of RB and RC for a transistor switch configured like an inverter below, given that ICmax = 10mA

The formula for expressing collector saturation is:

ICsat = Vcc / Rc

∴ 10 mA = 10 V / Rc

∴ Rc = 10 V / 10 mA = 1 kΩ

Also, at saturation point

IB ≅ IC(sat) / βdc = 10 mA / 250 = 40 μA

For guaranteed saturation let's select IB = 60 μA, and by using the formula

IB = Vi - 0.7 V / RB, we get

RB = 10 V - 0.7 V / 60 μA = 155 kΩ ,

Rounding off the above result to 150 kΩ, and evaluating the above formula again we get:

IB = Vi - 0.7 V / RB

= 10 V - 0.7 V / 150 kΩ = 62 μA,

since IB = 62 μA > ICsat / βdc = 40 μA

This confirms the we have to use RB = 150 kΩ

Calculating Switching Transistors

You will find special transistors called switching transistors due to their fast rate of switching from one voltage level to another.

The following Figure compares the time periods symbolized as ts, td, tr, and tf with the collector current of the device.

The effect of the time periods on the collector speed response is defined by the collector current response as shown below:

The total time needed for the transistor to switch from the “off” to the “on” state is symbolized as t(on) and can be established by the formula:

t(on) = tr + td

Here td identifies the delay happening while the input switching signal is changing state and the transistor output is responding to the change. The time tr indicates the final switching delay from 10% to 90%.

The total time taken by a bJt from a turned ON state to turned OFF state is indicated as t(off), and expressed by the formula:

t(off) = ts + tf

ts determines the storage time, while tf identifies the fall time from 90% to 10% of the original value.

Referring to the above graph, for a general purpose BJT, if the collector current Ic = 10 mA, we can see that:

ts = 120 ns, td = 25 ns, tr = 13 ns, tf = 12 ns

which means t(on) = tr + td = 13 ns + 25 ns = 38 ns

t(off) = ts + tf = 120 ns + 12 ns = 132 ns

You'll also like:

  • 1.  How Wireless Power Transfer Works
  • 2.  How to Calculate Zener Diode Resistor
  • 3.  How to Cascade IC 4033 in Multiple Digit Counter Display
  • 4.  How Thyristors (SCR) Work – Tutorial
  • 5.  How to Design Simple LED Driver Circuits
  • 6.  Understanding SG3525 IC Pinouts

Filed Under: Electronics Theory Tagged With: Calculating, Switch, Transistor

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « How to Make PCB at Home (Easiest Method)
Next Post: Zener Diode Circuits, Characteristics, Calculations »

Reader Interactions

Comments

  1. Steve says

    February 13, 2023 at 2:00 am

    Hi Swagatam, hope you are well.

    I’ve been trying to get my head around calculating the base resistor value for a given load but I just can’t get it to sink in or get results that make sense…even after reading your tutorial above. I’m probably missing something really obvious but don’t know where I’m going wrong.

    I’m going to build an LED chaser based on your “Knight Rider” circuit but use 2 banks of 6 LED’s at each output to make a wide bar. Would you kindly look over my “test” schematic and tell me if the values quoted are correct and how to work out the base resistor (R1 in the circuit) from those values?

    You’ll find the schematic here: " rel="ugc">comment image

    Many thanks
    Steve

    Reply
    • Swagatam says

      February 13, 2023 at 9:38 am

      Hi Steve,
      The formula is very simple actually:

      R1 = (Supply Voltage at Transistor base – 0.7) x hFE / Total LED Current

      Reply
      • Steve says

        February 14, 2023 at 4:32 am

        Thanks for taking a look…much appreciated; thought I was missing something really simple. For the circuit attached, that formula gives me a value of 48.2k ohms using hFE=200…sounds very high?

        Reply
        • Swagatam says

          February 14, 2023 at 9:24 am

          Yes, it looks high but is is correct.
          Nevertheless the value is not critical at all. You an simply use a 10K resistor without any issues or worries.

          Reply
          • Steve says

            February 14, 2023 at 9:45 pm

            If I use a BC547A (hFE=110), a 10k resistor would limit collector current to about 95mA; which is far more than what I need but still within the parameters of the transistor. But I will be using a BC547B, as it’s the only one I can get locally, which has hFE=200. Would a 10k base resistor potentially allow more collector current than the transistor can supply; assuming a 12V supply rail?

            Reply
            • Swagatam says

              February 15, 2023 at 8:39 am

              Your LEDs have series resistors so the current can never increase above 40 mA for both the strings combined. So it is absolutely fine.

              Reply
              • Steve says

                February 15, 2023 at 7:43 pm

                Thank you so much for explaining; it is clear to me now.

                Reply
                • Swagatam says

                  February 16, 2023 at 8:47 am

                  You are welcome!

                  Reply
  2. Paresh Panchal says

    December 27, 2022 at 4:00 pm

    Hi ,
    I am using transistor(Two) ckt as level shifting of UART , Could you please help to calculate first transistor and second transistor collector output voltage ?

    Reply
    • Swagatam says

      December 27, 2022 at 7:07 pm

      Hi, can you please show me the link of the schematic. Without seeing it I cannot suggest a solution.

      Reply
  3. Geo says

    August 1, 2020 at 8:11 am

    Hi, Sorry for this dumb question.
    Can we build transistor as a switch with common base / common collector configuration?
    Thanks.

    Reply
    • Swagatam says

      August 1, 2020 at 10:45 am

      Hi, yes transistors are used as switches in DC circuits

      Reply
      • Geo says

        August 1, 2020 at 3:49 pm

        Can you show me what the circuit looks like?
        I’ve been searching on google, but I can’t find the circuit that use common base/collector configuration.

        Reply
        • Swagatam says

          August 2, 2020 at 9:51 am

          There are some good videos on youtube which you can watch and understand them thoroughly…

          Reply
  4. Victor simutowe says

    December 13, 2019 at 5:43 pm

    I would like to learn designing practical electronic circuits using PCBs. I want to start making Arc Welding Machines, Battery chargers and many more just to mention a few. I am not an Engineer but I have a Hamble knowledge of Electronics in general and I would like to improve that knowledge by interacting with High Powered Engineers like you. I will be sending you some requests and questions from time to time in this regard.

    Kind regards,

    Victor.

    Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

circuit simulator image

Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (89)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (106)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (88)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (102)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (40)
  • Water Controller (36)



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin


  • Recent Comments

    • Swagatam on Crystal Radio Sets with Amplifier Circuit
    • Lion on Crystal Radio Sets with Amplifier Circuit
    • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
    • suat kaleli on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
    • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence

    © 2025 · Swagatam Innovations