Description
What it is
The MY2N-J AC220/240 relay is an electronic device used to control 220/240 VAC electrical circuits through a small control current. It is ideal for Arduino projects that require the activation or deactivation of high-voltage devices.
Features
- Type: DPDT (Double Pole Double Throw)
- Volt AC: 220/240 VAC
- Maximum Current: 5A
What it is for
Used to control 220/240 VAC electrical devices with an Arduino. Can be used in various applications such as lamp regulation, motors, or other electrical loads. Suitable for both beginners and experts.
Tutorial: How to use MY2N-J AC220 / 240
The MY2N-J AC220 / 240 relay is ideal for controlling 220/240 VAC electrical devices with an Arduino. Useful for beginners and intermediates.
What you need
- MY2N-J AC220 / 240
- Arduino
- Electrical Flex
- 1kΩ Resistor
Steps
- Check the datasheet for relay specifications.
- Connect the relay to the circuit, make sure the poles are correctly identified.
- Connect the +5V of the relay to the VCC of the Arduino.
- Connect the GND of the relay to the GND of the Arduino.
- Connect the COM contact to an Arduino output pin.
- Connect the NO contact to a 1kΩ resistor, then to GND.
- Write a simple sketch to control the relay.
- Test the relay with a button to control the current.
Example code
```
int relayPin = 9;
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
digitalWrite(relayPin, HIGH);
delay(5000);
digitalWrite(relayPin, LOW);
delay(5000);
}
```
Mini project
Create an on/off system for a lamp using the relay and a switch.
Common mistakes
- Connect the relay poles correctly.
- Check that the relay supports the circuit voltage.
- Use a resistor to protect the Arduino output pin.
- Do not use an Arduino with insufficient output voltage.
Recommended accessories
- 220/240 VAC lamp
- Switch
- Connection cable
- Flexible wires
Frequently asked questions
Does the relay support devices at 220/240 VAC?
Yes, the relay is designed to work with 220/240 VAC voltages.
What additional components are required?
Flexible wires, 1kΩ resistor and Arduino are required.
Can I use an Arduino with a 5V output voltage?
Yes, but make sure to use a resistor to protect the output pin.
Does the relay support DPDT contacts?
Yes, the relay is DPDT (Double Pole Double Throw).







Reviews
There are no reviews yet.