Skip to datasheet
The Engineering ProjectsAI Interactive Datasheet

MOC3021Random-phase optotriac driver

Send a trigger across the optical barrier.

Manufacturer-referenced

onsemi · MOC3021M

DIP-6MOC3023M/D · Rev. 3 · June 2023

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.

Real View

MOC3021M black six-pin optocoupler with bright formed silver DIP shoulders and tapered legs.
MOC3021M · DIP-6Package illustration

Pinout

MOC3021MDIP-6Top view · dot marks LED anode pin 1
Select a pin to see its functionDIP-6 · 6 pins

PCB Footprint

Loading footprint…
Powered by
Finding DIP-6 packageTop view · mm

3D View

Preparing 3D preview…
3D packageDrag to rotate · Scroll to zoom
6Physical pins MOC3021MDIP-6 Manufacturer-referencedonsemi

Pin diagram

Select a pin to explore its connection

Package map
Highlight
MOC3021MDIP-6Top view · dot marks LED anode pin 1

Click a lead or use the arrow keys. Top view · dot marks LED anode pin 1

1
PIN 1 · Infrared input

A

Infrared LED anode

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.

Key specifications

The LED activates a bilateral output path. A larger power triac normally handles the final load; the optocoupler supplies its trigger.

Output blocking400 V peak · absolute
LED trigger max.15 mA · specified conditions
Ambient range−40–85 °C
Isolation test4.17 kVrms · one minute

Operating profile

Supply, signals and operating conditions

MOC3021 operating profile
ParameterValueConditions / notes
Selected packageDIP-6MOC3021M
Turn-on controlRandom-phaseNo zero-cross detector
Nominal LED drive17.50 mABuffered 5 V through 220 Ω
Use these values with the stated grade and test conditions.

Package details

MOC3021M · DIP-6

Selected package
Selected MOC3021 physical package
PropertyDetails
Manufactureronsemi
Part numberMOC3021M
PackageDIP-6
Connections6 pins
MountingThrough-hole
Lead pitch2.54 mm
Package code646BX
Thermal referenceApply separate input, detector and total package power limits.

Device and pin connections

Selected onsemi family

Scroll sideways to see all columns.

ParameterValueConditions / notes
Through-hole / surface-mountMOC3021M / MOC3021SR2M646BX / formed 646BY
Input1 anode · 2 cathodeCurrent limiting required
OutputMain terminals 4 and 6Bilateral triac-driver output
Leave openPin 3 NC · pin 5 substrateNever use pin 5 as a wiring junction
Trigger typeRandom-phaseNo built-in zero-cross detector

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.

ParameterValueConditions / notes
Emitter continuous / reverse60 mA / 3 VSeparate stress limits
Output blocking400 V peakEither direction
Output surge1 A, 100 µs at 120 pulses/sNot continuous load current
Input / detector dissipation100 / 300 mWDerate above 25°C
Total dissipation330 mWCombined input and detector limit
Ambient / junction max.−40 to +85°C / +100°CStorage −40 to +125°C

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.

ParameterValueConditions / notes
LED forward voltage1.15 V typical; 1.5 V maximumIF 10 mA
LED trigger current15 mA maximumMain-terminal voltage 3 V
Peak on-state voltage1.8 V typical; 3 V maximumITM 100 mA; IF at rated trigger
Holding current100 µA typicalEither direction
Off-state leakage10 nA typical; 100 nA maximumRated blocking voltage; input off
Static dV/dt1000 V/µs minimumInput off; specified rated-voltage test

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.

ParameterValueConditions / notes
Input-output dielectric test4170 Vrms · 1 minuteTest condition, not continuous working voltage
External creepage / clearance≥7 mm / ≥7 mmSelected standard package; check installed board
Body8.51 × 6.35 mm nominal2.54 mm pitch; 3.40 mm nominal mould height
DIP footprint7.62 mm rowsOriginal 1 mm holes, 1.8 mm pads
SMD recommended lands1.525 × 1.78 mm9.015 mm rows; 10.54 mm outer span
Isolation layoutKeep both domains separateSlots, copper, contamination and enclosure affect the system

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.

ParameterValueConditions / notes
Input source / resistor5 V_A / 220 ΩInput switch or buffer must source the LED current
Nominal LED current17.50 mAAssumed VF 1.15 V
At 1.5 V LED drop15.91 mANominal supply/resistor only; temperature and tolerance remain
Output source / load12 V RMS isolated / 2.2 kΩResistor ≥0.25 W
Approximate peak load6.90 mA(12√2−1.8)/2200; assumed output drop
Resistor power upper bound65.5 mW12²/2200; neglects device drop
ReturnsGND_A isolated from AC_BNo wire crosses the barrier

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

Read the conditions with every value

Typical values describe stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Official PDF datasheet

MOC3021 at a glance

Follow the labeled connections and functional stages

MOC3021 working principle: illustrated functional stages, basic circuit and connections
Select the diagram to read it at full resolution.

How it works

3 stages · Explore one step at a time

Step 1 / 3

Drive the emitter

The buffered source and resistor set infrared LED current.

Step 2 / 3

Transfer the trigger

The optical detector activates the bilateral output without zero-cross inhibition.

Step 3 / 3

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.

MOC30215VAthrough220ohmtoLED1,2GNDA,3and5open;6through2.2kohmto12VACisolatedsource,4ACreturn.
Isolated low-voltage demonstration; a practical mains load needs an independently engineered power stage.

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.

MOC3021 compact cutaway inputLED1and2,output4and6,pins3and5leftopen.
Functional organization, not a die photograph. Input and output have no conductive signal link.

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.

Selected packageDIP-6MOC3021M
Physical connections6 pinsPackage-specific numbering
Reference collection6 tables30 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

DIP-6
Physical pin numbers6 pins

Scroll within the table to see all columns and rows.

MOC3021 pin functions and connections
PinSignalTypeFunction & connection
AInfrared LED anodePositive terminal of the optical input emitter.
Connection guidance

Use a buffered 5 V source through 220 Ω.

Drive above the required trigger current with temperature and tolerance margin.

KInfrared LED cathodeInput-side return for the emitter current.
Connection guidance

Return to GND_A.

Do not join the input return to the isolated output domain.

NCNot connectedNo intended internal connection.
Connection guidance

Leave unconnected.

MTMain output terminalOne terminal of the light-triggered bilateral switch.
Connection guidance

Connect to the isolated AC source return in the example.

This is a triac driver, not a high-power load switch.

DNCDo not connectInternal triac substrate lead.
Connection guidance

Leave open; do not route a signal through this pin.

NC in the manufacturer symbol does not authorize connecting this substrate lead.

MTMain output terminalOther terminal of the light-triggered bilateral switch.
Connection guidance

Connect through the pulse/load resistor to the isolated AC source.

No zero-cross detector: trigger timing follows the optical input and available output voltage.

DIP-6 · Top view · dot marks LED anode pin 1 · Select a pin number to open its interactive pinout.

Device and pin connections

Selected onsemi family

Manufacturer-referenced values5 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Through-hole / surface-mountMOC3021M / MOC3021SR2M646BX / formed 646BY
Input1 anode · 2 cathodeCurrent limiting required
OutputMain terminals 4 and 6Bilateral triac-driver output
Leave openPin 3 NC · pin 5 substrateNever use pin 5 as a wiring junction
Trigger typeRandom-phaseNo built-in zero-cross detector

Read the selected manufacturer’s variant rather than assuming all similar part names match.

Absolute maximum ratings

Ambient 25°C unless noted

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Emitter continuous / reverse60 mA / 3 VSeparate stress limits
Output blocking400 V peakEither direction
Output surge1 A, 100 µs at 120 pulses/sNot continuous load current
Input / detector dissipation100 / 300 mWDerate above 25°C
Total dissipation330 mWCombined input and detector limit
Ambient / junction max.−40 to +85°C / +100°CStorage −40 to +125°C

A driver output must not be used as a mains power switch.

Electrical characteristics

TA 25°C; selected device

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
LED forward voltage1.15 V typical; 1.5 V maximumIF 10 mA
LED trigger current15 mA maximumMain-terminal voltage 3 V
Peak on-state voltage1.8 V typical; 3 V maximumITM 100 mA; IF at rated trigger
Holding current100 µA typicalEither direction
Off-state leakage10 nA typical; 100 nA maximumRated blocking voltage; input off
Static dV/dt1000 V/µs minimumInput off; specified rated-voltage test

The low-current demonstration uses an explicit drop assumption.

Isolation and mounting

Device certification does not certify the assembled board

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Input-output dielectric test4170 Vrms · 1 minuteTest condition, not continuous working voltage
External creepage / clearance≥7 mm / ≥7 mmSelected standard package; check installed board
Body8.51 × 6.35 mm nominal2.54 mm pitch; 3.40 mm nominal mould height
DIP footprint7.62 mm rowsOriginal 1 mm holes, 1.8 mm pads
SMD recommended lands1.525 × 1.78 mm9.015 mm rows; 10.54 mm outer span
Isolation layoutKeep both domains separateSlots, copper, contamination and enclosure affect the system

Use the relevant safety approval option and complete system insulation design.

Isolated low-current AC demonstration

Buffered input and separate isolated output source

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Input source / resistor5 V_A / 220 ΩInput switch or buffer must source the LED current
Nominal LED current17.50 mAAssumed VF 1.15 V
At 1.5 V LED drop15.91 mANominal supply/resistor only; temperature and tolerance remain
Output source / load12 V RMS isolated / 2.2 kΩResistor ≥0.25 W
Approximate peak load6.90 mA(12√2−1.8)/2200; assumed output drop
Resistor power upper bound65.5 mW12²/2200; neglects device drop
ReturnsGND_A isolated from AC_BNo wire crosses the barrier

Calculated teaching values, not a measured switching waveform.

Read each value with its conditions

Typical values describe the stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

onsemi · MOC3023M/D · Rev. 3 · June 2023
Official PDF datasheet

Take 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

Component view