A TRIAC is a three-terminal semiconductor device that can conduct current in both directions when triggered by a gate pulse, making it the standard solid-state switch for AC power control. Before the TRIAC, controlling AC power meant using bulky, spark-generating mechanical relays or highly inefficient rheostats that burned off excess energy as heat. The TRIAC changes this entirely by enabling phase-angle control—essentially chopping the AC sine wave to deliver only a fraction of the power to the load, all without moving parts and with minimal heat dissipation.

The One-Sentence Rule: If you need to switch or dim an AC load using a low-voltage DC microcontroller signal, a TRIAC paired with an opto-isolator is your default, most cost-effective topology.

The Core Mechanism: How a TRIAC Switches AC

Think of a TRIAC like a highly responsive, bidirectional water valve. The main water line (AC power) flows through the valve's main terminals (MT1 and MT2). The valve stays shut until you briefly turn the pilot handle (the Gate). Once the pilot is triggered, the main valve snaps open and allows full flow. Crucially, the valve automatically slams shut the moment the main water pressure drops to zero (the AC zero-crossing), requiring a new pilot trigger for the next cycle.

Internally, a TRIAC is equivalent to two Silicon Controlled Rectifiers (SCRs) connected in inverse parallel. It operates in four quadrants based on the polarity of MT2 and the Gate relative to MT1. While it can be triggered in all four quadrants, Quadrant IV (MT2 negative, Gate positive) is notoriously the least sensitive. For reliable bench designs, we almost always wire the circuit so the gate is driven negative relative to MT1, keeping operation in Quadrants I and III where the trigger current requirements are lowest and most predictable.

TRIAC vs. SCR vs. MOSFET: Clearing Up the Confusion

The most common mistake hobbyists make is confusing a TRIAC with an SCR or a power MOSFET. While all three are used for power switching, their domains are strictly separated by AC/DC physics and switching speeds.

FeatureTRIAC (e.g., BTA16)SCR / ThyristorLogic-Level MOSFET
Primary DomainAC Mains (50/60Hz)High-Power AC / DCDC Power / High-Freq AC
ConductionBidirectionalUnidirectionalBidirectional (with body diode)
Turn-Off MechanismAuto-commutates at zero-crossAuto-commutates at zero-crossActively turned off via Gate
Switching SpeedSlow (Line frequency)SlowExtremely Fast (kHz to MHz)
Phase ControlExcellent (Leading edge)Half-wave onlyPWM (Requires full-wave rectification for AC)

If you try to use a MOSFET to directly switch 120V AC, you will destroy it on the negative half-cycle due to the internal body diode conducting uncontrollably. If you use an SCR, you will only get half-wave rectification, resulting in a DC offset that can saturate and burn out AC motor windings. The TRIAC is uniquely built for full-wave AC control.

Where You Meet This in Practice

You interact with TRIACs constantly in residential and industrial environments, even if you do not see them:

  • Leading-Edge Dimmers: The standard rotary or slide wall dimmers for incandescent and dimmable LED bulbs use a TRIAC (often a BT136 or similar) to chop the leading edge of the AC sine wave.
  • Solid State Relays (SSRs): Panel-mount SSRs rated for AC loads (like the Fotek SSR-25DA) hide a TRIAC and an opto-isolator inside a potted epoxy block, providing safe galvanic isolation between your Arduino/PLC and the mains.
  • Appliance Motor Control: Washing machines and HVAC blower motors use TRIACs driven by microcontrollers to vary motor speed without the acoustic whine and inefficiency of tapped reactors.

Worked Numeric Example: Sizing the Gate Resistor

Let us design the gate drive for a BTA16-600BW TRIAC switching a 120V AC, 1500W resistive space heater. We are driving the opto-isolator (like an MOC3021) from an ESP32 GPIO.

  1. Identify Peak Voltage: The RMS voltage is 120V, but the TRIAC must handle the peak sine wave voltage. $V_{peak} = 120V \times \sqrt{2} \approx 170V$.
  2. Check Datasheet $I_{GT}$: The BTA16-600BW has a maximum gate trigger current ($I_{GT}$) of 50mA in Quadrants I-III. We design for the worst-case maximum to ensure it always fires.
  3. Calculate Gate Resistor ($R_g$): Using Ohm's Law: $R = V_{peak} / I_{GT} = 170V / 0.05A = 3400\Omega$. The nearest standard E12 value is 3.3k$\Omega$.
  4. Verify Resistor Wattage: The peak pulse power is $I^2R = (0.05)^2 \times 3300 = 8.25W$. However, this pulse only lasts for microseconds before the TRIAC latches and the voltage across the gate drops to roughly 1.5V. The average power dissipation is well under 0.1W, so a standard 1/4W carbon film resistor is perfectly adequate, though a 1/2W metal film resistor provides a better margin for long-term thermal cycling.

Bench War Story: The dV/dt False Trigger Catastrophe

Theory is clean; the bench is messy. Here is a real-world scenario that highlights the most common TRIAC failure mode: commutating $dV/dt$ false triggering.

Safety Warning: Working with 120V/240V AC mains is lethal. Always de-energize the circuit, lock out the breaker, and verify dead with a CAT III rated multimeter before touching any PCB traces. Local electrical codes may require a licensed electrician for permanent mains installations.

The Setup: I was building a smart ceiling fan controller using an ESP32 generating a phase-cut signal, driving an MOC3021 opto-triac, which in turn fired a standard MAC15 TRIAC to control the fan's induction motor.

The Numbers: 120V AC, 60Hz line. The fan motor drew 0.8A RMS. It is a highly inductive load with a power factor of roughly 0.6. I set the ESP32 to fire the TRIAC at a 50% phase angle to achieve medium fan speed.

The Outcome: Upon powering up, the fan immediately ramped to 100% full speed. The TRIAC case temperature spiked to 85°C within minutes, and the ESP32 began experiencing random brownout resets due to severe EMI on the 3.3V rail.

What Went Wrong: Inductive loads cause the current waveform to lag behind the voltage waveform. When the AC current finally crosses zero, the TRIAC attempts to commutate (turn off). However, because the voltage is already far past zero at that exact moment, the voltage across the TRIAC instantly snaps back to the live line voltage. This creates a massive, instantaneous rate of voltage rise ($dV/dt$). The MAC15's internal parasitic capacitance coupled this voltage spike directly to the gate region, generating enough displacement current to falsely trigger the TRIAC back ON without any signal from the ESP32. The TRIAC latched permanently, bypassing my control logic entirely.

The Fix: I added an RC snubber network across MT1 and MT2 consisting of a 39$\Omega$ resistor and a 0.01$\mu$F X2-rated capacitor. The capacitor absorbs the voltage spike, slowing the $dV/dt$ to a safe level, while the resistor prevents the capacitor from dumping a massive inrush current into the TRIAC when it turns back on. For a deeper dive into snubber mathematics, refer to the All About Circuits semiconductor guide or standard application notes from manufacturers like STMicroelectronics.

Frequently Asked Questions

Do I need a heat sink for a 10A TRIAC on a 5A load?

Yes, usually. A TRIAC has a forward voltage drop of about 1.0V to 1.5V when conducting. At 5A RMS, that is roughly 5W to 7.5W of continuous heat dissipation. A standard TO-220 package without a heat sink has a thermal resistance of about 60°C/W to ambient. At 5W, the junction temperature will rise 300°C above ambient, instantly destroying the silicon. Always use a heat sink rated for at least 10°C/W for loads above 2A.

Why do LED bulbs flicker on my TRIAC dimmer?

Standard TRIAC dimmers are designed for resistive loads (incandescent filaments). LEDs use internal switching power supplies that draw current in sharp, narrow spikes rather than a smooth sine wave. This causes the current to drop below the TRIAC's 'holding current' threshold prematurely, causing it to turn off and rapidly re-trigger. The fix is to use 'TRIAC-dimmable' LED drivers that include active bleed resistors to maintain the holding current, or switch to a trailing-edge (MOSFET-based) dimmer.

Can I use a TRIAC to switch a DC load?

No. A TRIAC relies on the AC waveform crossing zero volts to naturally commutate (turn off). If you trigger a TRIAC on a DC circuit, it will latch ON permanently and will not turn off until you physically disconnect the DC power source. For DC switching, use a power MOSFET or a DC-rated Solid State Relay.

For further reading on AC power control topologies and opto-isolator selection, the Electronics Tutorials TRIAC guide provides excellent schematic references for both resistive and inductive load configurations.