Interactive PNP Transistor Simulation
Visualize current flow and real-time voltage/current graphing based on Base voltage control.
Working Principle of a Transistor
A Bipolar Junction Transistor (BJT) is a three-terminal semiconductor device primarily used for amplifying or switching electrical signals. The two main types are NPN and PNP. In a PNP transistor, a thin layer of N-type semiconductor material (the Base) is sandwiched between two thicker layers of P-type material (the Emitter and the Collector).
The working principle of a PNP transistor relies on the movement of “holes” as the majority charge carriers. For the transistor to turn on and conduct current from the Emitter to the Collector, the Emitter-Base junction must be forward-biased, while the Collector-Base junction is reverse-biased.
In practical terms, this means the voltage at the Base must be lower than the voltage at the Emitter (typically by about 0.7V for a standard silicon transistor). When this required voltage drop is achieved, holes from the heavily doped P-type Emitter are pushed across the depletion region into the narrow N-type Base. Because the Base is very thin and lightly doped, most of these holes do not recombine with electrons there. Instead, they are swept across the reverse-biased Collector-Base junction and into the Collector region.
By controlling a very small flow of current out of the Base, you can control a much larger current flowing from the Emitter to the Collector. This mechanism is why transistors are fundamental to modern electronics, acting as the primary building blocks for logic gates in microprocessors and amplifiers in analog circuitry.
The Simulation Circuit
The interactive simulation above demonstrates a PNP transistor biased using a voltage divider network. This is one of the most common and thermally stable ways to set the operating point (or Q-point) of a transistor.
In this specific setup, two resistors (R1 and R2) are connected in series across the supply voltage (VCC) and ground. The Base of the transistor is connected to the node between these two resistors. The voltage at the Base (Vb) is determined by the ratio of these resistors according to the standard voltage divider formula: Vb = VCC * (R2 / (R1 + R2)).
In the simulation, the interactive slider acts as a variable resistor (R2) in this divider network, allowing you to manually adjust the Base voltage. The Emitter is tied directly to the positive supply voltage (VCC = 5V).
When you adjust the slider so that the Base voltage is near 5V, the Emitter-Base junction is not forward-biased (since the potential difference is roughly 0V). The transistor remains in the cutoff region (fully off), and no current flows through the load. Consequently, the voltage drop across the transistor from Emitter to Collector (Vec) is equal to the full supply voltage, and the current (Ic) is zero.
As you lower the Base voltage via the slider, the potential difference between the Emitter and the Base increases. Once this difference exceeds the threshold of approximately 0.7V, the transistor enters the active region and begins to conduct. Lowering the Base voltage further drives the transistor into the saturation region (fully on), where it acts almost like a closed switch. When saturated, it drops Vec to a minimum value (typically around 0.2V) and allows maximum current to flow through the load. The real-time graph dynamically captures both the voltage transition and the resulting current flow as you run the simulation.
Interactive N-Channel MOSFET Simulation
Visualize voltage-controlled switching, full internal current flow paths, and real-time graphing.
Working Principle of a MOSFET
A Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) is a crucial component in modern electronics, utilized heavily for switching and amplifying signals. Unlike a Bipolar Junction Transistor (BJT) which is driven by current, a MOSFET is voltage-controlled. It features three primary terminals: the Gate, the Drain, and the Source.
The simulation above features an N-channel enhancement-mode MOSFET. In this device, the Gate is electrically insulated from the main conductive channel by a very thin layer of oxide (visible in the cross-section view). Because of this insulation, virtually zero current flows into the Gate. Instead, applying a positive voltage to the Gate creates an electric field that attracts electrons, artificially "enhancing" or forming a conductive N-type channel between the Drain and the Source.
For the transistor to turn on, the voltage difference between the Gate and the Source (V_GS) must exceed a specific threshold voltage (V_th). Below this threshold, the channel does not exist, and the transistor acts like an open switch (Cutoff region).
The Simulation Circuit (Low-Side Switch)
This interactive simulation demonstrates a classic low-side switching configuration. The Load is connected between the positive supply voltage (VCC = 5V) and the Drain, while the Source is tied directly to Ground (0V). The Gate voltage is controlled via a voltage divider network, mimicking a signal coming from a microcontroller like an Arduino.
When the slider is at 0V, V_GS is 0V. Because this is below the threshold voltage (e.g., 2.0V), the MOSFET is in the Cutoff region. The channel in the substrate layer is closed, no Drain current (I_D) flows, and the entire 5V supply is dropped across the Drain and Source (V_DS = 5V).
As you increase the Gate voltage past the threshold of ~2.0V, you can visibly see the N-channel form and begin to conduct. It briefly passes through the Saturation region (where it acts as a voltage-controlled current source) before fully turning on. When you push the Gate voltage towards 5V, the channel reaches maximum width and the MOSFET enters the Triode or Ohmic region. Here, it acts almost like a closed switch with very low resistance. Maximum current (I_D) flows through the load, passing continuously through the Drain metal contact, into the N+ well, across the channel, and out the Source. The voltage drop across the MOSFET (V_DS) falls to nearly 0V.
Interactive IGBT Simulation
Observe the hybrid voltage-control and bipolar conduction of an Insulated-Gate Bipolar Transistor.
The Best of Both Worlds: What is an IGBT?
The Insulated-Gate Bipolar Transistor (IGBT) is a hybrid semiconductor device that merges the most desirable characteristics of both MOSFETs and BJTs. It is heavily utilized in medium-to-high power applications like electric vehicle inverters, industrial motor drives, and power supplies.
At its input (the Gate), an IGBT looks exactly like a MOSFET. It uses an insulated gate structure, meaning it is voltage-controlled and requires virtually zero steady-state gate current to maintain conduction. This makes it incredibly easy to drive with standard microcontrollers.
At its output, however, an IGBT looks like a BJT. Notice the internal vertical structure in the simulation: it contains an extra P+ layer (the Collector) at the bottom. When the gate voltage exceeds the threshold and opens the N-channel, electrons flow downwards. These electrons forward-bias the bottom P+/N- junction, causing it to inject "holes" upward into the drift region. This phenomenon, called conductivity modulation, drastically lowers the resistance of the drift region, allowing the IGBT to conduct massive amounts of current with a relatively low forward voltage drop.
Understanding the Simulation
When the Gate-Emitter voltage (V_GE) is at 0V, the device is in the Cutoff region. The N-channel is closed, preventing any electron flow. The vertical structure blocks the full 5V supply, meaning the Collector-Emitter voltage (V_CE) is 5V and the Collector current (I_C) is zero.
As you increase V_GE past the threshold (approx. 2.0V), vertical channels begin to form alongside the gate oxide in the P-body. Electrons immediately flow from the Emitter (top), through these channels, down into the N- drift layer, triggering the hole injection from the Collector (bottom). The visual animation tracks the conventional current path: flowing UP from the bottom Collector contact, through the device, and out of the top Emitter contacts.
Unlike a MOSFET which can drop to nearly 0V when fully on, notice that an IGBT has a built-in diode drop due to its bipolar nature. Even at full saturation (V_GE = 5V), V_CE will not drop perfectly to 0V. It settles at a minimum saturation voltage (V_CE(sat)), which is typically around 1.0V to 2.0V depending on the device design. This is accurately reflected in the real-time graph.