MOC3021Random-phase optotriac driver
Send a trigger across the optical barrier.
MOC3021 is an optically isolated triac-driver family. An infrared LED transfers a command to a bilateral output switch without a conductive signal connection between the two sides. The selected onsemi MOC3021M has a 400 V peak off-state output rating. It has no zero-cross detector, allowing the controller to choose the trigger point. The 15 mA maximum input trigger-current test is specified at 3 V across the main terminals and 25°C; it does not guarantee the same margin at every temperature. Both DIP MOC3021M and gullwing MOC3021SR2M SMD versions retain all six physical pins. Pin 3 is unused and pin 5 is a substrate connection that must remain open. The example uses a small isolated AC source and resistor load to explain optical switching without a mains connection.
Pin diagram
Select a pin to explore its connection
Click a lead or use the arrow keys. Top view · dot marks LED anode pin 1
A
Function
Positive terminal of the optical input emitter.
How to connect
Use a buffered 5 V source through 220 Ω.
Electrical note
Drive above the required trigger current with temperature and tolerance margin.
K
Function
Input-side return for the emitter current.
How to connect
Return to GND_A.
Electrical note
Do not join the input return to the isolated output domain.
NC
Function
No intended internal connection.
How to connect
Leave unconnected.
MT
Function
One terminal of the light-triggered bilateral switch.
How to connect
Connect to the isolated AC source return in the example.
Electrical note
This is a triac driver, not a high-power load switch.
DNC
Function
Internal triac substrate lead.
How to connect
Leave open; do not route a signal through this pin.
Electrical note
NC in the manufacturer symbol does not authorize connecting this substrate lead.
MT
Function
Other terminal of the light-triggered bilateral switch.
How to connect
Connect through the pulse/load resistor to the isolated AC source.
Electrical note
No zero-cross detector: trigger timing follows the optical input and available output voltage.
Key specifications
The LED activates a bilateral output path. A larger power triac normally handles the final load; the optocoupler supplies its trigger.
Package details
MOC3021M · DIP-6
| Property | Details |
|---|---|
| Manufacturer | onsemi |
| Part number | MOC3021M |
| Package | DIP-6 |
| Connections | 6 pins |
| Mounting | Through-hole |
| Lead pitch | 2.54 mm |
| Package code | 646BX |
| Thermal reference | Apply separate input, detector and total package power limits. |
Device and pin connections
Selected onsemi family
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Through-hole / surface-mount | MOC3021M / MOC3021SR2M | 646BX / formed 646BY |
| Input | 1 anode · 2 cathode | Current limiting required |
| Output | Main terminals 4 and 6 | Bilateral triac-driver output |
| Leave open | Pin 3 NC · pin 5 substrate | Never use pin 5 as a wiring junction |
| Trigger type | Random-phase | No built-in zero-cross detector |
No specifications match. Try a parameter name or a unit.
Read the selected manufacturer’s variant rather than assuming all similar part names match.
Absolute maximum ratings
Ambient 25°C unless noted
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Emitter continuous / reverse | 60 mA / 3 V | Separate stress limits |
| Output blocking | 400 V peak | Either direction |
| Output surge | 1 A, 100 µs at 120 pulses/s | Not continuous load current |
| Input / detector dissipation | 100 / 300 mW | Derate above 25°C |
| Total dissipation | 330 mW | Combined input and detector limit |
| Ambient / junction max. | −40 to +85°C / +100°C | Storage −40 to +125°C |
No specifications match. Try a parameter name or a unit.
A driver output must not be used as a mains power switch.
Electrical characteristics
TA 25°C; selected device
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| LED forward voltage | 1.15 V typical; 1.5 V maximum | IF 10 mA |
| LED trigger current | 15 mA maximum | Main-terminal voltage 3 V |
| Peak on-state voltage | 1.8 V typical; 3 V maximum | ITM 100 mA; IF at rated trigger |
| Holding current | 100 µA typical | Either direction |
| Off-state leakage | 10 nA typical; 100 nA maximum | Rated blocking voltage; input off |
| Static dV/dt | 1000 V/µs minimum | Input off; specified rated-voltage test |
No specifications match. Try a parameter name or a unit.
The low-current demonstration uses an explicit drop assumption.
Isolation and mounting
Device certification does not certify the assembled board
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Input-output dielectric test | 4170 Vrms · 1 minute | Test condition, not continuous working voltage |
| External creepage / clearance | ≥7 mm / ≥7 mm | Selected standard package; check installed board |
| Body | 8.51 × 6.35 mm nominal | 2.54 mm pitch; 3.40 mm nominal mould height |
| DIP footprint | 7.62 mm rows | Original 1 mm holes, 1.8 mm pads |
| SMD recommended lands | 1.525 × 1.78 mm | 9.015 mm rows; 10.54 mm outer span |
| Isolation layout | Keep both domains separate | Slots, copper, contamination and enclosure affect the system |
No specifications match. Try a parameter name or a unit.
Use the relevant safety approval option and complete system insulation design.
Isolated low-current AC demonstration
Buffered input and separate isolated output source
Scroll sideways to see all columns.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Input source / resistor | 5 V_A / 220 Ω | Input switch or buffer must source the LED current |
| Nominal LED current | 17.50 mA | Assumed VF 1.15 V |
| At 1.5 V LED drop | 15.91 mA | Nominal supply/resistor only; temperature and tolerance remain |
| Output source / load | 12 V RMS isolated / 2.2 kΩ | Resistor ≥0.25 W |
| Approximate peak load | 6.90 mA | (12√2−1.8)/2200; assumed output drop |
| Resistor power upper bound | 65.5 mW | 12²/2200; neglects device drop |
| Returns | GND_A isolated from AC_B | No wire crosses the barrier |
No specifications match. Try a parameter name or a unit.
Calculated teaching values, not a measured switching waveform.
Connections by function
Select a pin for its function, connection guidance and electrical notes.
Infrared input2 pins
Not connected1 pin
Isolated bilateral output2 pins
Leave open1 pin
Infrared input2 pins
Not connected1 pin
Isolated bilateral output2 pins
Leave open1 pin
MOC3021 at a glance
Follow the labeled connections and functional stages
How it works
3 stages · Explore one step at a time
Drive the emitter
The buffered source and resistor set infrared LED current.
Transfer the trigger
The optical detector activates the bilateral output without zero-cross inhibition.
Allow current commutation
The output remains conducting until current falls sufficiently; removing LED drive prevents later retriggering.
MOC3021 in a circuit
Physical six-pin package with both no-connect leads marked.
Connect it, step by step
Follow the component values and pin connections
Set input current
Use 220 Ω from the buffered 5 V source to pin 1.
Keep returns separate
Input cathode goes only to GND_A; the AC source stays isolated.
Observe output
A 2.2 kΩ resistor limits the output current to a few milliamps.
Inside MOC3021
Infrared emitter and light-triggered bilateral switch.
Explore the circuit
Select a stage to see its role and connections
Optical input
The LED converts current into infrared light.
Insulating barrier
Only the optical signal crosses the package barrier.
Bilateral output
The bilateral output responds to the optical trigger and available circuit current.
Pin reference
Signal names, electrical functions and connection guidance
Scroll within the table to see all columns and rows.
| Pin | Signal | Type | Function & connection |
|---|---|---|---|
| A | Infrared LED anode | Positive terminal of the optical input emitter.Connection guidanceUse a buffered 5 V source through 220 Ω. Drive above the required trigger current with temperature and tolerance margin. | |
| K | Infrared LED cathode | Input-side return for the emitter current.Connection guidanceReturn to GND_A. Do not join the input return to the isolated output domain. | |
| NC | Not connected | No intended internal connection.Connection guidanceLeave unconnected. | |
| MT | Main output terminal | One terminal of the light-triggered bilateral switch.Connection guidanceConnect to the isolated AC source return in the example. This is a triac driver, not a high-power load switch. | |
| DNC | Do not connect | Internal triac substrate lead.Connection guidanceLeave open; do not route a signal through this pin. NC in the manufacturer symbol does not authorize connecting this substrate lead. | |
| MT | Main output terminal | Other terminal of the light-triggered bilateral switch.Connection guidanceConnect through the pulse/load resistor to the isolated AC source. No zero-cross detector: trigger timing follows the optical input and available output voltage. |
No pins match these filters. Try another signal name or reset the filters.
Device and pin connections
Selected onsemi family
Scroll within the table to see all columns and rows.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Through-hole / surface-mount | MOC3021M / MOC3021SR2M | 646BX / formed 646BY |
| Input | 1 anode · 2 cathode | Current limiting required |
| Output | Main terminals 4 and 6 | Bilateral triac-driver output |
| Leave open | Pin 3 NC · pin 5 substrate | Never use pin 5 as a wiring junction |
| Trigger type | Random-phase | No built-in zero-cross detector |
No specifications match. Try a parameter name or a unit.
Read the selected manufacturer’s variant rather than assuming all similar part names match.
Absolute maximum ratings
Ambient 25°C unless noted
Scroll within the table to see all columns and rows.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Emitter continuous / reverse | 60 mA / 3 V | Separate stress limits |
| Output blocking | 400 V peak | Either direction |
| Output surge | 1 A, 100 µs at 120 pulses/s | Not continuous load current |
| Input / detector dissipation | 100 / 300 mW | Derate above 25°C |
| Total dissipation | 330 mW | Combined input and detector limit |
| Ambient / junction max. | −40 to +85°C / +100°C | Storage −40 to +125°C |
No specifications match. Try a parameter name or a unit.
A driver output must not be used as a mains power switch.
Electrical characteristics
TA 25°C; selected device
Scroll within the table to see all columns and rows.
| Parameter | Value | Conditions / notes |
|---|---|---|
| LED forward voltage | 1.15 V typical; 1.5 V maximum | IF 10 mA |
| LED trigger current | 15 mA maximum | Main-terminal voltage 3 V |
| Peak on-state voltage | 1.8 V typical; 3 V maximum | ITM 100 mA; IF at rated trigger |
| Holding current | 100 µA typical | Either direction |
| Off-state leakage | 10 nA typical; 100 nA maximum | Rated blocking voltage; input off |
| Static dV/dt | 1000 V/µs minimum | Input off; specified rated-voltage test |
No specifications match. Try a parameter name or a unit.
The low-current demonstration uses an explicit drop assumption.
Isolation and mounting
Device certification does not certify the assembled board
Scroll within the table to see all columns and rows.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Input-output dielectric test | 4170 Vrms · 1 minute | Test condition, not continuous working voltage |
| External creepage / clearance | ≥7 mm / ≥7 mm | Selected standard package; check installed board |
| Body | 8.51 × 6.35 mm nominal | 2.54 mm pitch; 3.40 mm nominal mould height |
| DIP footprint | 7.62 mm rows | Original 1 mm holes, 1.8 mm pads |
| SMD recommended lands | 1.525 × 1.78 mm | 9.015 mm rows; 10.54 mm outer span |
| Isolation layout | Keep both domains separate | Slots, copper, contamination and enclosure affect the system |
No specifications match. Try a parameter name or a unit.
Use the relevant safety approval option and complete system insulation design.
Isolated low-current AC demonstration
Buffered input and separate isolated output source
Scroll within the table to see all columns and rows.
| Parameter | Value | Conditions / notes |
|---|---|---|
| Input source / resistor | 5 V_A / 220 Ω | Input switch or buffer must source the LED current |
| Nominal LED current | 17.50 mA | Assumed VF 1.15 V |
| At 1.5 V LED drop | 15.91 mA | Nominal supply/resistor only; temperature and tolerance remain |
| Output source / load | 12 V RMS isolated / 2.2 kΩ | Resistor ≥0.25 W |
| Approximate peak load | 6.90 mA | (12√2−1.8)/2200; assumed output drop |
| Resistor power upper bound | 65.5 mW | 12²/2200; neglects device drop |
| Returns | GND_A isolated from AC_B | No wire crosses the barrier |
No specifications match. Try a parameter name or a unit.
Calculated teaching values, not a measured switching waveform.
No matching rowsTry a pin name, parameter, unit or test condition, or reset the filters.
Phase-controlled triggers
Use controlled trigger timing with a separately rated triac and load circuit.
Manufacturer application guideIsolated triac gates
Separate the low-voltage controller from the power-side trigger network.
Manufacturer application guideTeaching optical isolation
Observe a small isolated AC load while keeping both return domains separate.
Manufacturer application guideTake it into ProTech
Find MOC3021 in the Components Library to place its schematic symbol and connect its pins.
Reference page · circuit simulation model not yet availableOpen ProTech
