Description
What it is
The 4 Channel 5V Relay Shield is an electronic module that allows you to control electrical devices via an Arduino. It offers four independent channels, each with a relay capable of handling a load up to 10A. Each channel is equipped with an integrated LED to indicate the relay status (on or off).
Features
- 4 channels of control
- Operating voltage 5V
- Low level
- Status LED for each channel
- Maximum load capacity per channel: check the datasheet
What it is for
The 4 Channel 5V Relay Shield is ideal for automation and control projects of electrical devices. For example, it can be used to: turn lights on and off, manage motors, control solenoids, etc. It is compatible with Arduino and other 5V microcontrollers.
Tutorial: How to use the 4 Channel 5V Relay Shield with LED
This relay shield allows you to control electrical devices with an Arduino. Useful for projects that require turning electrical items on and off.
What you need
- Arduino
- Dual cable
- Single cables
- Electrical components (e.g., lamp)
Steps
- 1. Install the relay shield on the Arduino.
- 2. Connect the relays to the Arduino with dual cable.
- 3. Connect the relay channels to the electrical components.
- 4. Check the datasheet for the maximum current for each channel.
- 5. Write an Arduino sketch to control the relays.
- 6. Load the sketch onto the Arduino.
- 7. Check that the relays activate correctly.
- 8. Verify the system stability.
Example code
```
void setup() {
for (int i = 0; i < 4; i++) {
pinMode(i+8, OUTPUT);
}
}
void loop() {
for (int i = 0; i < 4; i++) {
digitalWrite(i+8, HIGH);
delay(1000);
digitalWrite(i+8, LOW);
}
}
```
Mini project
Create an automatic lighting system. Connect a lamp to each relay and program the Arduino to turn the lamps on and off in sequence.
Common mistakes
- Connect the relays to a 3.3V Arduino instead of a 5V one.
- Ignore the maximum current indicated in the datasheet.
- Omit the system verification.
- Do not use a resistor with the LED.
Recommended accessories
- Arduino UNO
- LED lamp
- Resistor
- Dual cable
Frequently asked questions
Can I use this relay shield with an Arduino Mega?
Yes, but check the pin compatibility.
How long can a relay stay on?
Check the datasheet for the maximum operating duration.
What should I do if a relay does not activate?
Check the current, connections, and compatibility with the Arduino.







Reviews
There are no reviews yet.