MOC3022 Optoisolator Triac 6 pins
đ MOC3022 Optoisolator â Triac Driver Output (DIP-6)
Overview
The MOC3021 is a 6-pin DIP optoisolator with triac driver output, designed to provide safe and reliable electrical isolation between low-voltage control circuits (e.g., Arduino, ESP32) and high-voltage AC loads. It uses an infrared LED as the input and a triac-like output device capable of triggering an external triac, commonly used in AC switching applications like dimmers, motors, and lighting.
Key Features
Isolation between input and output (up to ~5000âŻVrms)
Activates an external triac to switch AC loads
Random-phase outputâcan be used for non-zero-cross triggering
Compact DIP-6 package; pins spaced for standard PCBs
Low input LED currentâuse with a current-limiting resistor
Suitable for use up to 400âŻV peak AC on the output side
Arduino & AC Load Wiring Example
Connect anode (pinâŻ1) to an Arduino output pin through a ~330âŻÎ© resistor.
Cathode (pinâŻ2) goes to Arduino GND.
MT1 and MT2 connect to the gate and terminal of an external triac (e.g., BTA16) in series with the AC load.
Use a zero-cross detector (optional) for smoother dimming.
Ensure a snubber network or snubber-cap across the triac to suppress voltage spikes.
Power the Arduino from a separate low-voltage supply, keeping control and AC sides isolated.
Applications
AC lamp dimmers and fan speed controllers
Solid state relays and automated lighting
Motor control via microcontrollers
Any AC-load switching requiring isolation and safe interfacing
â Resources
đ„ YouTube Tutorial: https://www.youtube.com/watch?v=aUMKBWk7C_Q&list=PL4FdPemxE1U4vN9c4VQh3ujcr8YVQ9iF4