Description
What it is
The 2-channel 5V relay with opto-isolator is a device for Arduino and other microcontrollers that allows for safe and isolated control of external electrical devices.
Features
- 2 channels 5V
- Opto-isolator on each channel
- High/Low level support
What it is for
Ideal for protecting circuits and controlling external devices. It can be used to create automatic control systems such as activating a small fan when the temperature exceeds a certain threshold.
Tutorial: How to use Dual Channel Relay with Opto-isolator
This dual-channel relay is ideal for controlling electrical devices from Arduino or other microcontrollers. It is particularly useful when you want to isolate the control circuit from the load circuit, reducing the risk of damage.
What you need
- Arduino Uno
- Jumper wire
- Dual Channel Relay (SKU: ARD001329)
- Device to control
Steps
- Connect the relay to the Arduino using jumper wires.
- Check the operating voltage of the relay and ensure it is compatible with the Arduino output (5V).
- Configure the Arduino’s digital interfaces to control the relay channels.
- Write an Arduino sketch to test the functionality of the two channels separately.
- Verify that each channel can correctly activate and deactivate the power supply of the controlled device.
- If necessary, add a fuse protection between the relay and the device to prevent damage in case of overload.
Example code
void setup() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH); // Attiva canale 1
delay(5000);
digitalWrite(2, LOW); // Disattiva canale 1
delay(5000);
}
Mini project
Create an automatic control system for a small fan with this relay. The fan will turn on when the temperature exceeds a certain threshold.
Common mistakes
- Do not check the voltage compatibility between the Arduino and the relay.
- Omit protecting the circuit with a fuse.
- Configure multiple channels on the same digital pin.
Recommended accessories
- Thermistor
- DHT11 Temperature and Humidity Module
- Variable Fuses
- Insulating Washers
Frequently asked questions
Which devices can it control?
Devices that require a maximum voltage of 250VAC/30VDC and a maximum energy rating as per the datasheet.
How do you connect the relay to an external device?
Use the COM, NO, and NC contacts of the relay to connect them to the load circuit.





Reviews
There are no reviews yet.