---
title: Thyristors and triacs
heading: Four layers that latch on, stay on, and switch mains power with a pulse
eyebrow: C5 · Lesson 25 · Thyristors and triacs
xp: 40
---

::: hook
Turn a wall dimmer and the lamp's brightness changes smoothly, yet the dimmer has no variable resistor wasting power. Inside is a **triac**, a switch that turns on partway through each half-cycle of the mains and turns itself off when the current crosses zero. It belongs to the thyristor family: four alternating layers of p and n silicon that behave like the two compound transistors of lesson 24 wired into a loop, so once triggered they hold themselves on. Thyristors switch the largest powers in electronics, from motor drives to the converter stations of high-voltage DC links, and they protect power supplies as crowbars. Their latching is also their hazard: a fast voltage edge can trigger one by accident.
:::

::: play
- A lamp on 120 V mains through a triac fired at angle α after each zero crossing. The curve is the fraction of full power the lamp receives against α, for a resistive load: $1 - \alpha/\pi + \sin 2\alpha/(2\pi)$.
- Firing at 90° delivers exactly half the power. Late firing angles trim the power gently, which is why dimmers feel smooth at the bottom of their range.
:::

```sim plot
view: graph
x: a = 0..180
y: P = 0..1
slider: f = 0..180 step 1 = 90
plot: 1 - a/180 + sin(2*a°)/(2*pi) | label: fraction of full power
point: f, 1 - f/180 + sin(2*f°)/(2*pi)
readout: power into a 100 W lamp, in W = 100*(1 - f/180 + sin(2*f°)/(2*pi))
readout: rms voltage in V = 120*sqrt(1 - f/180 + sin(2*f°)/(2*pi))
```

::: predict
## A triac dimmer fires a 100 W, 120 V lamp at 90° after each zero crossing. Treating the lamp as a fixed resistor, what power does it get?

- [ ] 71 W
- [x] 50 W
- [ ] 25 W
- [ ] 35 W

::: reveal
50 W. Firing at 90° passes the second half of each half-cycle, and $\sin^2$ has the same area in both quarters, so exactly half the energy gets through. The rms voltage is $120/\sqrt2$ = 85 V. A real filament's resistance falls as it dims, so it would draw somewhat more than 50 W.
:::
:::

::: nameit
## The SCR and its two-transistor model

A silicon-controlled rectifier (SCR) is a pnpn stack with three terminals: anode, cathode and gate. Split it down the middle and it's a pnp transistor whose collector drives the base of an npn, whose collector in turn drives the pnp's base. With common-base gains $\alpha_1$ and $\alpha_2$, a gate current $I_G$ and leakage $I_{CO}$, the anode current is

$$I_A = \frac{\alpha_2I_G + I_{CO}}{1 - (\alpha_1 + \alpha_2)}$$

The gains rise with current, so as $\alpha_1 + \alpha_2$ approaches 1 the current runs away and the device **latches**: both transistors saturate and hold each other on with no gate current at all. Once on, it drops about 1 to 2 V and stays on until the anode current falls below the **holding current**, which in an AC circuit happens at each zero crossing.

## Ratings that matter

- **Gate trigger current and voltage:** typically a few to tens of milliamps at about 1 V.
- **Latching current:** the anode current that must be reached before the gate pulse ends, or the device turns off again. It's larger than the holding current.
- **dv/dt:** a fast-rising anode voltage charges the internal junction capacitance, $i = C\,dv/dt$, and that current acts as a gate current. Above the rated dv/dt, the SCR triggers on its own. An RC **snubber** across it slows the edge.
- **di/dt:** at turn-on, conduction starts near the gate and spreads; too fast a current rise overheats that small area. A small series inductance limits it.

## Triacs and phase control

A triac is two SCRs in inverse parallel with a shared gate, so it conducts in both directions. Firing it at angle α after each zero crossing, into a resistive load from a sine of peak $V_m$, delivers

$$\frac{P}{P_{full}} = 1 - \frac{\alpha}{\pi} + \frac{\sin 2\alpha}{2\pi}, \qquad V_{rms} = \frac{V_m}{\sqrt2}\sqrt{\frac{P}{P_{full}}}$$

A single SCR in a half-wave circuit gives an average output of $\dfrac{V_m}{2\pi}(1 + \cos\alpha)$. Phase control is cheap and efficient, but its abrupt edges make harmonics and radio interference, so dimmers include a small LC filter.

## The crowbar

An SCR across a power rail, triggered by a Zener when the rail exceeds its limit, shorts the rail and blows a fuse in microseconds. It sacrifices the fuse to save everything downstream, and it keeps the short on until the power is removed, exactly what latching is good for.
:::

::: example
## A 100 W, 120 V lamp (treated as 144 Ω) is dimmed by a triac. Find its power and rms voltage at firing angles of 60° and 120°.

::: solution
1. **Power fraction at 60°.**
   $$\begin{aligned} \frac{P}{P_{full}} &= 1 - \frac13 + \frac{\sin 120°}{2\pi} \\ &= 0.667 + 0.138 \\ &= 0.804 \end{aligned}$$
2. **Power and voltage at 60°.** That's 80.4 W, and
   $$120\sqrt{0.804} = 107.6\ \text{V}$$
3. **Power fraction at 120°.**
   $$\begin{aligned} \frac{P}{P_{full}} &= 1 - \frac23 + \frac{\sin 240°}{2\pi} \\ &= 0.333 - 0.138 \\ &= 0.196 \end{aligned}$$
   so 19.6 W and 53.1 V.
4. **Why the control is uneven.** The power isn't linear in the angle: the first and last 30° of each half-cycle carry little energy, so the control is gentle at both ends and steep in the middle.

**Answer:** at 60° the lamp takes 80.4 W at 107.6 V rms; at 120°, 19.6 W at 53.1 V rms.
:::
:::

::: example
## An SCR's two transistors have $\alpha_1$ = 0.4 and $\alpha_2$ = 0.5 at low current, with $I_{CO}$ = 1 µA. What anode current does a 1 mA gate current produce, and what happens as the current grows?

::: solution
1. **Anode current.**
   $$\begin{aligned} I_A &= \frac{0.5 \times 10^{-3} + 10^{-6}}{1 - 0.9} \\ &= 5.01\ \text{mA} \end{aligned}$$
   The loop already multiplies the gate current tenfold.
2. **As the current grows.** Both α's rise; when their sum reaches 1 the denominator vanishes, the current is limited only by the external circuit, and the SCR stays on even after the gate current is removed.
3. **Why heat or leakage can trigger it.** Anything that raises $I_{CO}$ or the gains moves it toward the latching point.

**Answer:** 1 mA of gate current gives 5.01 mA of anode current, and as the current grows the α's rise until their sum reaches 1 and the SCR latches on.
:::
:::

::: example
## An SCR has 20 pF of junction capacitance and triggers with 200 µA of gate current. A 50 V/µs transient appears across it. Will it fire? What snubber slows the edge to 5 V/µs, if the source has 50 Ω of impedance?

::: solution
1. **Displacement current.**
   $$\begin{aligned} i &= C\,dv/dt \\ &= 20 \times 10^{-12} \times 50 \times 10^6 \\ &= 1\ \text{mA} \end{aligned}$$
   That's five times the trigger current, so it fires.
2. **How the snubber works.** A snubber capacitor across the device forms an RC with the source impedance. Approximating the edge as a step of amplitude $V$ into $R_sC_s$, the initial slope is $V/(R_sC_s)$.
3. **Size the RC.** For a 170 V step through 50 Ω, a 5 V/µs limit needs
   $$R_sC_s \ge 34\ \mu\text{s}$$
   so $C_s \approx$ 0.68 µF.
4. **Add a resistor.** Put a small series resistor with the capacitor to limit its discharge into the SCR at turn-on.

**Answer:** yes, it fires, since 1 mA flows against a 200 µA trigger; a snubber of about 0.68 µF (with a small series resistor) slows the edge to 5 V/µs.
:::
:::

::: check
given: a = 30 | 45 | 60 | 120 | 135
answer: 1 - a/180 + sin(2*a°)/(2*pi)
tolerance: 0.5%

## A triac fires a resistive load at {a}° after each zero crossing. What fraction of full power does the load get?

::: right
Right. $1 - \alpha/\pi + \sin 2\alpha/(2\pi)$ = {answer}.
:::

::: misses
- [1 - a/180] That's the fraction of time conducting. Power depends on where in the cycle that time falls.
- [(1 + cos(a°))/2] That's the half-wave SCR's average voltage fraction, not full-wave power.
- [any] Not yet. Integrate $\sin^2$ from α to π and divide by its integral from 0 to π.
:::
:::

::: check
given: Vm = 170 | 325; a = 30 | 60 | 120 | 135
answer: Vm/(2*pi)*(1 + cos(a°))
unit: V
tolerance: 0.5%

## A single SCR fires a resistive load at {a}° on each positive half-cycle of a {Vm} V peak sine. What is the average load voltage?

::: right
Right. $\frac{V_m}{2\pi}(1 + \cos\alpha)$ = {answer}.
:::

::: misses
- [Vm/pi*(1 + cos(a°))] That's full-wave. A single SCR conducts on one half-cycle only.
- [Vm/(2*pi)*(1 - cos(a°))] The integral of $\sin$ from α to π is $1 + \cos\alpha$.
- [any] Not yet. Average $V_m\sin\theta$ from α to π over a full $2\pi$.
:::
:::

::: check
kind: parts
given: a1 = 0.3 | 0.4; a2 = 0.4 | 0.5 | 0.55; IG = 0.5 | 1 | 2; ICO = 1 | 10

## An SCR has $\alpha_1$ = {a1}, $\alpha_2$ = {a2}, leakage {ICO} µA and gate current {IG} mA.

::: part
answer: (a2*IG*1e-3 + ICO*1e-6)/(1 - a1 - a2)*1e3
unit: mA
tolerance: 0.5%

### What anode current flows, in mA?

::: misses
- [(a2*IG*1e-3 + ICO*1e-6)*1e3] Divide by $1 - (\alpha_1 + \alpha_2)$: the loop gain multiplies it.
- [(IG*1e-3 + ICO*1e-6)/(1 - a1 - a2)*1e3] Only $\alpha_2$ of the gate current reaches the npn's collector.
- [any] Not yet. $I_A = (\alpha_2I_G + I_{CO})/(1 - \alpha_1 - \alpha_2)$.
:::
:::

::: part
answer: 1/(1 - a1 - a2)
tolerance: 0.5%

### By what factor does the loop multiply the current?

::: misses
- [a1 + a2] That's the loop's gain sum; the multiplier is $1/(1 - \alpha_1 - \alpha_2)$.
- [any] Not yet. $1/(1 - \alpha_1 - \alpha_2)$.
:::
:::

::: right
Right. As $\alpha_1 + \alpha_2 \to 1$ the multiplier diverges, and the SCR latches.
:::
:::

::: check
given: C = 10 | 20 | 50; dv = 10 | 50 | 200
answer: C*1e-12*dv*1e6*1e6
unit: µA
tolerance: 0.5%

## An SCR has {C} pF of junction capacitance. What current does a {dv} V/µs edge push through it, in µA?

::: right
Right. $C\,dv/dt$ = {answer}: compare it with the gate trigger current.
:::

::: misses
- [C*1e-12*dv*1e6] That's in amperes; give microamps.
- [any] Not yet. $i = C\,dv/dt$.
:::
:::

::: check
kind: parts
given: P = 40 | 60 | 100; a = 45 | 60 | 135

## A {P} W, 120 V lamp (a fixed resistance) on a triac dimmer fired at {a}°.

::: part
answer: P*(1 - a/180 + sin(2*a°)/(2*pi))
unit: W
tolerance: 0.5%

### What power does it receive?

::: misses
- [P*(1 - a/180)] Use the power fraction, which includes $\sin 2\alpha/2\pi$.
- [any] Not yet. Multiply the rated power by the phase-control fraction.
:::
:::

::: part
answer: 120*sqrt(1 - a/180 + sin(2*a°)/(2*pi))
unit: V
tolerance: 0.5%

### What rms voltage does it see?

::: misses
- [120*(1 - a/180 + sin(2*a°)/(2*pi))] Power goes as voltage squared: take the square root.
- [any] Not yet. $V_{rms} = 120\sqrt{P/P_{full}}$.
:::
:::

::: right
Right. The rms voltage is what sets a resistive load's power, and the meter must be true-rms to read it.
:::
:::

::: check
kind: choice

## An SCR controlling a DC motor from a DC supply turns on but won't turn off when the gate signal is removed. Why?

- [x] Once latched, an SCR stays on until its anode current falls below the holding current, which a DC supply never does
- [ ] The gate signal is still leaking through
- [ ] The motor's back EMF holds the gate on
- [ ] The SCR has failed short

::: right
Right. In AC circuits the current crosses zero every half-cycle and the SCR turns off naturally. On DC it needs a commutation circuit that forces the current to zero, or a different device, such as a gate turn-off thyristor or a transistor.
:::

::: misses
- [2] Removing the gate signal doesn't matter once it has latched.
- [3] The gate isn't involved once the device has latched.
- [4] This is normal operation for a latched SCR, not a failure.
:::
:::

::: check
kind: derivation
vars: a = 0..3.14

## Find the fraction of full power a triac passes into a resistive load when fired at angle α.

::: step
answer: (pi - a)/2 + sin(2*a)/4

### Evaluate $\int_\alpha^\pi\sin^2\theta\,d\theta$, using $\sin^2\theta = \frac{1 - \cos 2\theta}{2}$.
:::

::: step
answer: 1 - a/pi + sin(2*a)/(2*pi)

### Divide by the full integral, $\int_0^\pi\sin^2\theta\,d\theta = \pi/2$.
:::

::: right
Right. At α = 0 it's 1, at π/2 it's ½, and it falls to 0 at π.
:::
:::

::: check
kind: python
given: P = 0.25 | 0.5 | 0.75

## A dimmer needs to deliver a set fraction of full power. Write `power_fraction(a)` for firing angle `a` in radians, then find the angle `alpha` (in degrees) that gives `P` = {P} of full power by bisection to 1e-10 rad. Also set `slope`, the change in power fraction per degree at that angle (from the derivative, $-(1 - \cos 2\alpha)/\pi$ per radian).

```python starter
import math
def power_fraction(a):
    return 1 - a / math.pi
alpha = (1 - P) * 180
slope = -1 / 180
print(alpha)
```

```python solution
import math
def power_fraction(a):
    return 1 - a / math.pi + math.sin(2 * a) / (2 * math.pi)
lo, hi = 0.0, math.pi
while hi - lo > 1e-10:
    m = (lo + hi) / 2
    if power_fraction(m) > P: lo = m
    else: hi = m
a = (lo + hi) / 2
alpha = math.degrees(a)
slope = -(1 - math.cos(2 * a)) / math.pi * math.pi / 180
print(alpha, slope)
```

```python tests
import math
f = lambda a: 1 - a / math.pi + math.sin(2 * a) / (2 * math.pi)
assert abs(power_fraction(1.0) - f(1.0)) < 1e-12, "power_fraction should include the sin 2α/2π term."
assert abs(f(math.radians(alpha)) - P) < 1e-8, f"At α = {alpha:.6f}° the power fraction should be {P}."
ref = -(1 - math.cos(2 * math.radians(alpha))) / math.pi * math.pi / 180
assert abs(slope - ref) < 1e-12, "slope is the derivative per degree."
```

::: right
Right. The slope is steepest at 90°, about 1.1% of full power per degree, and falls to zero at both ends, so a knob mapped linearly to the angle feels coarse in the middle.
:::
:::

::: explain
## A designer uses an SCR crowbar to protect a 5 V logic rail: a Zener and resistor fire the SCR's gate if the rail exceeds 6 V. Explain how it protects the logic, why the SCR's latching is an advantage here, and what else the circuit must include.

::: model
If the regulator fails and the rail rises past about 6 V, the Zener conducts and drives gate current into the SCR, which turns on and shorts the rail to ground within microseconds, before the logic is damaged. Because the SCR latches, it keeps the rail shorted even after the voltage collapses and the gate signal disappears; a transistor clamp would release, the rail would rise again, and the circuit would oscillate between failing and protecting. The short has to end somewhere, so the circuit needs a fuse or a current-limited supply upstream that opens or folds back, and the SCR must be rated to carry the fault current until the fuse clears. A small capacitor on the gate keeps noise from firing it by accident.
:::
:::

::: practice

::: check
given: a = 30 | 60 | 150
answer: 1 - a/180 + sin(2*a°)/(2*pi)
tolerance: 0.5%

## What fraction of full power does a triac deliver at a firing angle of {a}°?

::: misses
- [1 - a/180] Include the $\sin 2\alpha/2\pi$ term.
- [any] $1 - \alpha/\pi + \sin 2\alpha/(2\pi)$.
:::
:::

::: check
given: a1 = 0.2 | 0.45; a2 = 0.3 | 0.5
answer: 1/(1 - a1 - a2)
tolerance: 0.5%

## An SCR's transistors have $\alpha_1$ = {a1} and $\alpha_2$ = {a2}. By what factor does its regenerative loop multiply current?

::: misses
- [a1 + a2] The multiplier is $1/(1 - \alpha_1 - \alpha_2)$.
- [any] $1/(1 - \alpha_1 - \alpha_2)$.
:::
:::
:::
