Sale!

MOC3022 DIP-6

Original price was: 2,56 €.Current price is: 1,97 €. Excluding VAT

The MOC3022 DIP-6 is an excellent component for Arduino. It is used to control relays and power circuits.

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

Tutorial: How to Use MOC3022 DIP-6

The MOC3022 is a TRIAC optocoupler used for controlling low-power AC circuits. It is ideal for electronics enthusiasts who want to incorporate light or motor control functionalities into Arduino projects. This component is particularly useful in projects where isolation is needed between the control circuit and the mains. It is suitable for beginners and intermediates who want to explore the concepts of AC current control safely.

What you need

  • Arduino Uno or compatible
  • 5V LED
  • 220 ohm resistor
  • connection cable

Steps

  1. Connect the VCC pin of the MOC3022 to 5V of the Arduino.
  2. Connect the IN pin of the MOC3022 to digital pin 7 of the Arduino through a 1k ohm resistor.
  3. Connect the TRIAC (OUT pin) to the control circuit, verifying the correct power supply and maximum power from the datasheet.
  4. Connect an LED to ground through a 220 ohm resistor.
  5. Connect the other end of the LED resistor to the OUT pin of the MOC3022 to display the state control.
  6. Write and upload the Arduino sketch provided in the tutorial.

Example code

void setup() {
  pinMode(7, OUTPUT);
}

void loop() {
  digitalWrite(7, HIGH); // Accende l'LED collegato al MOC3022
  delay(1000);
  digitalWrite(7, LOW); // Spengere l'LED
  delay(1000);
}

Mini project

Create an Arduino-based lighting control system using the MOC3022. The project involves managing a 220V lamp via a button connected to the Arduino.

Common mistakes

  • Do not verify the correct power supply and maximum circuit power before use.
  • Connect the TRIAC directly to the network without isolation.
  • Use a resistor that is too low or too high for the LED.
  • Ignore the temperature limits specified in the datasheet.

Recommended accessories

  • Arduino Uno R3
  • Basic Arduino Starter Kit
  • LEDs of various colors and intensities
  • Electricity Protection Kit

Frequently asked questions

What is the difference between MOC3021 and MOC3022?
The MOC3022 includes an integrated snubber circuit, while the MOC3021 does not.

Can I use the MOC3022 to control AC motors?
Yes, but check the datasheet to ensure the motor power does not exceed the maximum of the optocoupler TRIAC.

Reviews

There are no reviews yet.

Be the first to review “MOC3022 DIP-6”

Your email address will not be published. Required fields are marked *