Description
What it is
2 Channel 5V High Level Relay Module with Built-in LED Compatible with Arduino. Allows controlling electrical devices with Arduino, managing high currents, and signaling status through integrated LEDs.
Features
- 2 relay channels
- 5V power supply
- Control signal type: High Level
- Integrated status LED for each channel
- Compatible with Arduino
What it is for
Ideal for controlling electrical devices with Arduino, such as lights, motors, solenoids. Useful for automation, alarm, and remote control projects. Example use: create an alarm system with a button that activates a light and a sound.
Tutorial: How to use the 2 Channel 5V High Level Relay Module
This relay is ideal for controlling electrical devices with Arduino, allowing the management of high currents. Useful for beginners and intermediate users.
What you need
- Arduino UNO or compatible
- Connection cable
- Power supply
- Short circuit protection
Steps
- 1. Download the relay driver from the Arduino website.
- 2. Connect the relay to the Arduino: VCC to 5V, GND to GND, OUT1 and OUT2 to pins 8 and 9.
- 3. Connect the power supply to the relay.
- 4. Upload the following code to the Arduino.
- 5. Check the datasheet for the maximum current of the relay.
- 6. Turn on the relay using a button or through code.
- 7. Check that the LED on the relay lights up when the output is high.
- 8. Verify that the relay correctly turns on and off connected devices.
Example code
```
void setup() {
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}
void loop() {
digitalWrite(8, HIGH);
delay(2000);
digitalWrite(8, LOW);
digitalWrite(9, HIGH);
delay(2000);
digitalWrite(9, LOW);
}
```
Mini project
Create an alarm system based on a button that activates a light and a sound.
Common mistakes
- Do not check the maximum current on the datasheet.
- Connect the relay directly to the microcontroller without protection.
- Omit the power supply.
- Do not use a pin other than 8 and 9 for the relay.
Recommended accessories
- Button
- LED Light
- Speaker
- 5V Power Supply
Frequently asked questions
How can I protect the relay from short circuits?
Connect a fuseset between VCC and GND.
Which relay pins to use?
Use only pins 8 and 9.
Can I use a relay other than 5V?
Check compatibility with the relay’s output voltage.
Can the relay handle high currents?
Check the maximum current on the datasheet.







Reviews
There are no reviews yet.