A lamp dimmer is the most familiar power-electronics circuit in any home — and it is built on one component, the TRIAC. This morning's SCR article showed a silicon controlled rectifier switching one half-cycle of the AC mains. A TRIAC is two SCRs back to back in a single package, so it conducts in both directions and controls both half-cycles. Add a DIAC and a resistor-capacitor network to fire its gate at the right moment, and you have a dimmer. This article works out a 60 W lamp dimmer on 230 V mains with real BT136 and DB3 numbers.
Figure 1: A TRIAC lamp dimmer (a) — the lamp is in series with the TRIAC, and the VR1–C network with the DB3 DIAC fires the gate once per half-cycle. At a firing angle of 90° (b) the lamp sees only the second half of each half-cycle, so it takes half its full power. (Schematic, not to scale.)
TRIAC vs SCR — one device, both half-cycles
An SCR conducts in one direction only, so the half-wave circuit in the morning's article threw away every negative half-cycle. A TRIAC has two main terminals, T1 and T2, and conducts in either direction once its gate is pulsed. Like the SCR it latches on and the gate then loses control — it turns off only when the load current falls below the holding current, which happens at every mains zero crossing. The difference is that the DIAC in the trigger circuit fires the gate in both half-cycles, so the lamp gets a slice of the positive half-cycle and an equal slice of the negative one. The firing angle α is the delay from each zero crossing to the gate pulse, and it sets the power: α = 0° is full brightness, α = 180° is off.
Worked example — a 60 W lamp dimmed to half power
Take a 60 W lamp on 230 V, 50 Hz mains. Treated as a fixed resistor, the lamp is:
R = 230² / 60 = 881.7 Ω
The peak of the mains voltage is Vm = 230 × √2 = 325.27 V. For full-wave phase control, the RMS voltage the lamp sees at firing angle α is:
Vrms = (Vm / √2) × √[(Ï€ − α + sin 2α / 2) / Ï€]
At α = 90°, sin 2α = sin 180° = 0, so the bracket is (Ï€ − Ï€/2) / Ï€ = 0.5:
Vrms = 230 × √0.5 = 162.6 V → P = 162.6² / 881.7 = 30.0 W
Half the angle gives exactly half the power — that is why 90° is the natural "half brightness" setting. At 50 Hz a half-cycle lasts 10 ms, so a 90° firing angle means the gate pulse arrives 10 × 90 / 180 = 5.0 ms after each zero crossing, and the TRIAC conducts for the remaining 180° − 90° = 90° of each half-cycle. The table shows the whole dimming range:
α = 0°: 230.0 V, 60.0 W | α = 45°: 219.3 V, 54.6 W | α = 90°: 162.6 V, 30.0 W | α = 135°: 69.3 V, 5.5 W | α = 180°: 0 V, 0 W
Notice the power falls slowly at first and then fast — most of the dimming happens in the last 45°. The peak load current at α = 90° is the full mains peak minus the TRIAC's on-state drop of about 1.5 V, divided by the lamp resistance: (325.27 − 1.5) / 881.7 ≈ 0.37 A, while the RMS load current is 162.6 / 881.7 = 0.184 A. One honest caveat: a real lamp filament is not a fixed resistor — its resistance rises as it heats — so at half voltage the cooler filament has a lower resistance and the lamp actually takes a little more than 30 W. The table is the fixed-resistor model, which is good enough to show how the firing angle controls the power.
How the DIAC fires the gate — the RC trigger
The gate pulse comes from the VR1–C network wired across the TRIAC, with the DB3 DIAC between the middle of the network and the gate. While the TRIAC is off, the capacitor charges through the potentiometer and the lamp; when the capacitor voltage reaches the DIAC's breakover voltage, the DIAC snaps on and dumps the capacitor's charge into the gate. The DB3 breaks over at 28–36 V (typically 32 V), with a breakover current of at most 50 µA — so it stays off while the capacitor is charging and fires sharply once it reaches about 32 V. Because the DIAC is bidirectional, it fires at +32 V in the positive half-cycle and at −32 V in the negative one, so both half-cycles are dimmed equally and the lamp does not flicker from asymmetry.
The potentiometer sets how fast the capacitor charges, and therefore the firing angle. With C = 0.1 µF and a 3.3 kΩ fixed resistor in series with the 100 kΩ pot, the time constant ranges from:
RC = 3.3 kΩ × 0.1 µF = 0.33 ms (pot at minimum) to RC = 103.3 kΩ × 0.1 µF = 10.33 ms (pot at maximum)
A half-cycle lasts 10 ms, so the pot sweeps the firing point across the whole half-cycle: minimum resistance fires the gate almost at the zero crossing (full brightness), maximum resistance fires it near the end (nearly off). The capacitor's reactance at 50 Hz is 1 / (2Ï€ × 50 × 0.1 µF) = 31.8 kΩ, so the trigger branch draws only about 2–7 mA from the mains. The charge the capacitor holds at breakover is Q = 0.1 µF × 32 V = 3.2 µC — the gate needs only about 10 mA for a few microseconds, a few hundredths of a microcoulomb, so the pulse triggers the TRIAC with a wide margin.
Checking the BT136 ratings
Before trusting the circuit, check the TRIAC against its datasheet (NXP BT136-600E). The RMS load current is 0.184 A against a 4 A rating, and the peak mains voltage it must block is 325 V against a 600 V rating — both with a wide margin. The gate needs at most 10 mA to trigger and the device holds on with a holding current of at most 15 mA (typically 2.2 mA); the 60 W lamp draws 260 mA at full voltage and 184 mA RMS even when dimmed to half power, so the load current is far above the holding current and the TRIAC never drops out mid-cycle. The TRIAC itself dissipates only about its 1.3 V on-state drop times the average current, roughly 0.15 W — barely warm, no heatsink needed for a 60 W lamp. The one number that needs respect is the switch-on surge: a cold filament has a much lower resistance than the hot 882 Ω, so the first half-cycle after switch-on can pull several amps — still well inside the 25 A non-repetitive surge rating, but it is why the lamp and the TRIAC should be fused.
Safety note: this circuit connects directly to the 230 V mains — it can kill. Build it only in a proper insulated enclosure, with a fuse in series with the live wire, and never touch any part of it while it is powered. The TRIAC's metal tab is connected to terminal T2, so any heatsink bolted to it is live at mains voltage. If you want to drive the dimmer from a microcontroller, do not connect the gate directly — use an optocoupler with a built-in zero-crossing TRIAC driver, which keeps the low-voltage side safely isolated.
Key points to remember
- A TRIAC is two SCRs back to back: it conducts in both directions, latches on when its gate is pulsed, and turns off at each mains zero crossing when the current falls below the holding current.
- Worked example: 60 W lamp (R = 882 Ω) on 230 V mains, α = 90° → Vrms = 230 × √0.5 = 162.6 V, P = 30.0 W; firing 5.0 ms after each zero crossing, conduction 90° per half-cycle; peak current 0.37 A, RMS current 0.184 A.
- Dimming range: α = 0° gives 230 V / 60 W, 45° gives 219.3 V / 54.6 W, 90° gives 162.6 V / 30 W, 135° gives 69.3 V / 5.5 W, 180° gives 0 — the power falls slowly at first, then fast.
- Trigger: the DB3 DIAC breaks over at 28–36 V (typically 32 V) and fires symmetrically in both half-cycles; VR1 (100 kΩ) + 3.3 kΩ with C = 0.1 µF gives RC = 0.33–10.33 ms against a 10 ms half-cycle, so the pot sweeps the full dimming range.
- Rating check: BT136-600E — RMS current 0.184 A vs 4 A, peak blocking 325 V vs 600 V, gate trigger at most 10 mA, holding current at most 15 mA, TRIAC dissipation about 0.15 W; the metal tab is connected to T2, so any heatsink is live — build mains circuits only in an insulated enclosure with a fuse.
