TRIAC GATE DRIVER (OPTO COUPLER )

Photo of author

By Jackson Taylor

Home » Hardware » TRIAC GATE DRIVER (OPTO COUPLER )

As an Amazon Associate we earn from qualifying purchases.

A microcontroller pin cannot switch a mains load directly, and it should never be wired to the AC line. A triac driver optocoupler solves this. It lets a low-voltage logic signal trigger a power triac while keeping the control side electrically isolated from the mains side.

This page covers how an optocoupler triac driver works, the difference between random phase and zero crossing types, and three common parts: the MOC3021, the MOC3083 and the FOD4118.

How an optocoupler triac driver works

Inside the 6-pin package there are two parts that never touch each other. On the input side is an infrared LED. On the output side is a light-activated bilateral switch that behaves like a small triac.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

When current flows through the LED, the light turns on the output switch. That small switch then supplies gate current to a larger, discrete power triac, which carries the load current. Because the only link between the two sides is light, the logic circuit stays isolated from the AC line.

The optocoupler is only a driver. It is not meant to carry the load current itself, so you always pair it with a power triac such as a BT136 triac or a larger device, depending on the load.

Random phase vs zero crossing

This is the most important choice when picking a part.

  • Random phase drivers can switch on at any point in the AC cycle. Use them when you need phase-angle control, such as dimming a lamp or controlling fan speed.
  • Zero crossing drivers only turn on when the AC voltage is close to zero. This reduces conducted and radiated line noise and suits simple on/off switching, such as solid-state relays and heaters.

A zero crossing driver cannot be used for phase control. It will only fire near the zero point, so you cannot choose a firing angle. If you want to fire the triac at a chosen angle, you also need to know where each half-cycle begins. A simple zero crossing detector circuit gives the microcontroller that timing.

See also
A Cascaded Multilevel Inverter (9 level )Based on Switched-Capacitor -SIMULATION MATLAB

MOC3021: 6-pin DIP 400V random phase triac driver

MOC3021 6-pin DIP random phase triac driver optocoupler

The MOC301XM and MOC302XM series are optically isolated triac driver devices. They contain a GaAs infrared emitting diode and a light-activated silicon bilateral switch, which functions like a triac. They are designed for interfacing between electronic controls and power triacs to control resistive and inductive loads for 115 VAC operation.

Features

  • Excellent IFT stability: the IR emitting diode has low degradation
  • Peak blocking voltage of 400 V

Because it is a random phase part, the MOC3021 is the usual choice for dimmers and speed controllers on 115 VAC lines.

MOC3083: 6-pin DIP 800V zero crossing triac driver

MOC3083 6-pin DIP zero crossing triac driver optocoupler chip

The MOC3081M, MOC3082M and MOC3083M devices consist of a GaAs infrared emitting diode optically coupled to a monolithic silicon detector. The detector performs the function of a zero voltage crossing bilateral triac driver.

They are designed for use with a discrete power triac in the interface of logic systems to equipment powered from 240 VAC lines, such as solid-state relays, industrial controls, motors, solenoids and consumer appliances.

Features

  • Simplifies logic control of 240 VAC power
  • Zero voltage crossing to minimize conducted and radiated line noise
  • 800 V peak blocking voltage

The higher blocking voltage matters on 240 VAC lines, because the peak of a 240 V sine wave is well above 300 V. A 400 V part leaves little margin there, so an 800 V part is the safer choice.

FOD4118: 6-pin DIP 800V zero crossing triac driver

FOD4118 6-pin DIP zero crossing triac driver optocoupler

The FOD4118 consists of an infrared emitting diode coupled to a hybrid triac formed with two inverse parallel SCRs. Together they form the triac function and can drive discrete triacs. It uses a high efficiency infrared emitting diode, which gives improved trigger sensitivity. The device is housed in a standard 6-pin dual in-line (DIP) package.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Features

  • 300 mA on-state current
  • Zero-voltage crossing
  • High blocking voltage of 800 V

Quick comparison

  • MOC3021: random phase, 400 V, intended for 115 VAC operation.
  • MOC3083: zero crossing, 800 V, intended for 240 VAC lines.
  • FOD4118: zero crossing, 800 V, 300 mA on-state current.
See also
9 design chaser with speed control (200 watts per channel,4 channels)

Basic wiring

The connections are similar for all three parts. Always confirm the pinout and limits in the manufacturer’s datasheet for your exact part number.

  1. Input side: connect the LED anode (pin 1) to the logic output through a series resistor. The resistor sets the LED current, which must be at least the trigger current (IFT) of your part. The cathode (pin 2) goes to ground. Part numbers within a series differ in trigger current, so check which one you have.
  2. Output side: the two output pins (4 and 6 on these 6-pin parts) sit between the triac gate and the triac’s main terminal, with a resistor in series. Pin 3 is not connected inside the package, and pin 5 should be left unconnected.
  3. Power triac: the load goes in series with the triac’s main terminals across the AC line.

The series resistor on the output side limits the surge current through the optocoupler. A common way to size it is to divide the peak line voltage by the optocoupler’s peak surge current rating, then round up to a standard value.

For inductive loads such as motors and solenoids, add a snubber circuit across the power triac. This reduces false triggering from fast voltage changes and protects the triac.

Using it with a microcontroller

If you want to build a dimmer or speed controller, see our guide on power control using a triac and Arduino. For the basics of firing angle and triggering, read about AC power control with a triac and diac.

Safety

These circuits connect to mains voltage, which can cause serious injury. Use properly rated components, keep creepage distances on the board, enclose the circuit and never touch it while it is powered. Isolation only protects the control side if the layout and parts are correct.

FAQ

What does a triac driver optocoupler do?

It takes a low-voltage logic signal and triggers a power triac through light, so the control circuit stays electrically isolated from the AC line.

See also
AD620

Should I choose random phase or zero crossing?

Choose random phase, such as the MOC3021, for dimming or phase-angle speed control. Choose zero crossing, such as the MOC3083 or FOD4118, for on/off switching where lower switching noise is useful.

Can the optocoupler drive the load directly?

Generally no. It is designed to drive the gate of a discrete power triac, and the power triac carries the load current.

Which part suits a 240 VAC line?

The MOC3083 is designed for 240 VAC lines, and its 800 V blocking voltage leaves a margin above the line peak. The FOD4118 also has an 800 V rating.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works