This opto-isolated 2 Channel relay module allows you to control high voltage devices using 5 V signal, it is capable to work with voltages up to 250 VAC.
Low level trigger.
It can handle up to 10 A.
It is ideal for home automation projects.
0 Item Items
This product is no longer in stock
Warning: Last items in stock!
This module allows you to control high voltage devices, like the home appliances, using a 5V signal. The relay module is capable to work with voltages up to 250 VAC and supports currents up to 10 A, making it ideal for home automation.
Note: The nominal voltage for the coil of the relay is 5 V.
1. Connect the loads the to relays.
Loads should be connected to the screw terminals.
Each relay has the following configuration:
Normally Open - Common - Normally Closed
The "Normally Closed" terminal is connected to the "Common" terminal when no voltage is applied to the control pin and the "Normally Open" terminal is disconnected. When voltage is applied to the control pin, "Normally Closed" is disconnected, connecting the "Common" and "Normally Open" terminals.
CAREFUL!!! Connect the loads when they are not powered by the mains voltage to avoid accidents.
CAREFUL!!! Check that the loads wires are not short-circuit after securing them to the screw terminals.
2. Write the code to control the relays.
Activating / deactivating the relays is very easy because all you have to do is to apply a voltage of 5 V on the pin corresponding to the relays. If you are using an Arduino compatible development board, you need to follow the steps below to use the module:
In the "void setup ()" function you have to declare the digital pins that you use as output. Example: "pinMode (digitalPin, OUTPUT);" , where "digitalPin" is the digital pin you use to control the relay.
BONUS: If you run out of available digital pins, you can also use the analog pins as digital.
In the "void loop ()" function you must use the following instruction to activate the "digitalWrite (digitalPin, HIGH) ;" and to disable it "digitalWrite (digitalPin, LOW);"
When you have finished writing the code, press the compile button to check for syntax errors.
3. Power on the module.
Powering the mode can be done in two ways:
from an external source: Remove the jumper on the bottom right and connect VCC to the JD-VCC pin and GND to the GND pin. To work properly, also connect the 5 V pin of the development board to the VCC pin in the center of the module. This power supply is useful for keeping the development board isolated.
From the development board: Connect the VCC and JD-VCC pins using the jumper. Connect the VCC and GND pins in the center of the module to the 5V and GND pins of the development board used. The second GND pin on the right must also be connected to a GND pin on the development board.
4. Connect the digital pins to the control pins on the module.
Identifying a pin that controls a certain relay.
5. Power up the development board and upload the code.
The final step is to upload the code.
If you are powering the module from an external source, make sure that the power is on.
Power Button with White LED
This sensor with 0.5m cable is for precision...
This kit includes all the components needed to...
Black 2.54 mm Jumper (open top)
This 2-channel bidirectional level translator...
This development board is based on the 32-bit...
Automated Plant Watering System
The KCD1-11-2P rocker switch is basically used...
Mini Wire Stripper Tool
This mini servo motor is designed for radio...