Stufin
Home Quick Cart Profile

8 Channel 5V Relay Board

Buy Now on Stufin

Component Name

8 Channel 5V Relay Board

Overview

The 8 Channel 5V Relay Board is a versatile and widely used Internet of Things (IoT) component that enables the control of high-voltage and high-current devices using low-voltage signals from microcontrollers, single-board computers, or other digital systems. This relay board provides eight individual relay channels, each capable of switching up to 250V AC or 120V DC loads, making it an ideal solution for a broad range of applications, including home automation, industrial control, and robotics.

Functionality

The primary function of the 8 Channel 5V Relay Board is to act as an electronic switch, allowing low-voltage digital signals to control high-voltage loads. Each relay channel consists of a normally open (NO) and normally closed (NC) contact, which can be individually toggled using digital input signals. When a digital signal is applied to a relay channel, the corresponding NO contact closes, and the NC contact opens, allowing the load to be energized or de-energized.

Key Features

  • Number of Channels: 8 individual relay channels, each with a normally open (NO) and normally closed (NC) contact.
  • Voltage Rating: Each relay channel can switch up to 250V AC or 120V DC loads.
  • Trigger Voltage: 5V DC, compatible with most microcontrollers and single-board computers.
  • Output Current: Up to 10A per channel, suitable for a wide range of applications.
  • Relay Type: Electromagnetic relays with a long lifespan (up to 100,000 cycles).
  • Board Dimensions: Compact design with a size of approximately 124mm x 64mm x 18mm.
  • Mounting Options: Screw terminal blocks for easy connection of loads and power supplies.
  • Indicator LEDs: Built-in LEDs on each relay channel to indicate the relay status (ON/OFF).
  • Optical Isolation: Each relay channel is optically isolated from the input signals, ensuring electrical isolation and safety.
  • Power Supply: Requires a 5V DC power supply, typically provided by a microcontroller or single-board computer.

Applications

  • Home automation systems
  • Industrial control and automation
  • Robotics and mechatronics
  • Smart building systems
  • IoT projects and prototypes
  • Remote monitoring and control systems

Technical Specifications

| Parameter | Value |

| --- | --- |

| Relay Type | Electromagnetic |

| Voltage Rating | 250V AC, 120V DC |

| Trigger Voltage | 5V DC |

| Output Current | Up to 10A per channel |

| Relay Lifespan | Up to 100,000 cycles |

| Board Dimensions | 124mm x 64mm x 18mm |

| Operating Temperature | -40C to 85C |

| Storage Temperature | -40C to 125C |

Certifications and Compliance

The 8 Channel 5V Relay Board complies with relevant industry standards and regulations, including

RoHS (Restriction of Hazardous Substances)

CE (Conformit Europene)

FCC (Federal Communications Commission)

Warranty and Support

The 8 Channel 5V Relay Board is backed by a limited warranty and dedicated technical support, ensuring reliable performance and assistance when needed.

Pin Configuration

  • 8 Channel 5V Relay Board Pinout Guide
  • The 8 Channel 5V Relay Board is a popular IoT component used to control high-voltage devices with low-voltage signals. This document provides a detailed explanation of each pin on the relay board, including their functions and connection guidelines.
  • Pinout Structure:
  • The 8 Channel 5V Relay Board has a total of 18 pins, divided into three rows. The pins are labeled as follows:
  • Top Row (5 pins):
  • VCC (5V Power Supply): Provides power to the relay board. Connect to a 5V power source.
  • GND (Ground): Ground pin, connected to the negative terminal of the power source.
  • IN1-3 (Input Pins): Control inputs for relays 1-3. These pins are active low, meaning a logical low signal (0V) turns the relay ON, and a logical high signal (5V) turns it OFF.
  • Middle Row (6 pins):
  • IN4-6 (Input Pins): Control inputs for relays 4-6. These pins are active low, meaning a logical low signal (0V) turns the relay ON, and a logical high signal (5V) turns it OFF.
  • IN7-8 (Input Pins): Control inputs for relays 7-8. These pins are active low, meaning a logical low signal (0V) turns the relay ON, and a logical high signal (5V) turns it OFF.
  • Bottom Row (7 pins):
  • NC1-8 (Normally Closed): Normally closed contacts for each relay. These pins are connected to the normally closed terminal of the relay.
  • COM1-8 (Common): Common pins for each relay. These pins are connected to the common terminal of the relay.
  • NO1-8 (Normally Open): Normally open contacts for each relay. These pins are connected to the normally open terminal of the relay.
  • Connection Guidelines:
  • 1. Power Connection:
  • Connect the VCC pin to a 5V power source (e.g., an Arduino board or a separate 5V power supply).
  • Connect the GND pin to the negative terminal of the power source.
  • 2. Signal Connection:
  • Connect the control signal (e.g., from a microcontroller) to the corresponding IN pins (IN1-8).
  • Ensure the control signal is a digital signal (0V or 5V) to avoid damage to the relay board.
  • 3. Relay Connection:
  • Connect the device to be controlled (e.g., a lamp, motor, or valve) to the NC and NO pins of the corresponding relay channel.
  • The COM pin should be connected to the power source of the device being controlled.
  • Example Connection Diagram:
  • Suppose we want to control a lamp using relay channel 1. We can connect the lamp's positive terminal to the NO1 pin and the negative terminal to the COM1 pin. The control signal from the microcontroller is connected to the IN1 pin.
  • | Pin | Connection |
  • | --- | --- |
  • | VCC | 5V Power Supply |
  • | GND | Negative Terminal of Power Supply |
  • | IN1 | Control Signal from Microcontroller |
  • | NC1 | Lamp's Negative Terminal |
  • | COM1 | Lamp's Positive Terminal |
  • | NO1 | Lamp's Positive Terminal |
  • Remember to use proper wiring and follow safety guidelines when working with electrical components.

Code Examples

8 Channel 5V Relay Board
Overview
The 8 Channel 5V Relay Board is a versatile and compact board designed to control and switch high-power devices using low-power signals from a microcontroller or other digital devices. This board features 8 SPDT (Single Pole Double Throw) relays, each capable of handling up to 250VAC or 30VDC loads, making it an ideal solution for home automation, industrial control, and IoT applications.
Pinout and Connections
The relay board has the following pinout:
VCC: 5V power supply
 GND: Ground
 IN1-IN8: Digital input pins for controlling the relays
 COM1-COM8: Common pins for the relays
 NC1-NC8: Normally Closed pins for the relays
 NO1-NO8: Normally Open pins for the relays
Example 1: Controlling a Relay using Arduino
In this example, we will use an Arduino Uno to control one of the relays on the board.
```c++
const int relayPin = 2;  // Choose any digital pin on the Arduino
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, HIGH);  // Turn the relay ON
  delay(1000);                // Wait for 1 second
  digitalWrite(relayPin, LOW); // Turn the relay OFF
  delay(1000);                // Wait for 1 second
}
```
Connect the Arduino's digital pin 2 to the IN1 pin on the relay board, and connect the load (e.g., a LED or a lamp) to the COM1, NC1, and NO1 pins on the relay board.
Example 2: Controlling Multiple Relays using Raspberry Pi (Python)
In this example, we will use a Raspberry Pi to control multiple relays on the board using Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
relay_pins = [17, 23, 24, 25]  # Choose any 4 GPIO pins on the Raspberry Pi
for pin in relay_pins:
  GPIO.setup(pin, GPIO.OUT)
while True:
  for pin in relay_pins:
    GPIO.output(pin, GPIO.HIGH)  # Turn the relays ON
    time.sleep(1)
  for pin in relay_pins:
    GPIO.output(pin, GPIO.LOW)  # Turn the relays OFF
    time.sleep(1)
```
Connect the Raspberry Pi's GPIO pins 17, 23, 24, and 25 to the IN1, IN2, IN3, and IN4 pins on the relay board, respectively. Connect the loads (e.g., LEDs or lamps) to the corresponding COM, NC, and NO pins on the relay board.
Example 3: Controlling Relays using ESP8266 (MicroPython)
In this example, we will use an ESP8266 board to control a relay on the board using MicroPython.
```python
import machine
relay_pin = machine.Pin(2, machine.Pin.OUT)
while True:
  relay_pin.value(1)  # Turn the relay ON
  time.sleep(1)
  relay_pin.value(0)  # Turn the relay OFF
  time.sleep(1)
```
Connect the ESP8266's digital pin 2 to the IN1 pin on the relay board, and connect the load (e.g., a LED or a lamp) to the COM1, NC1, and NO1 pins on the relay board.
Note: Make sure to use a level shifter or a voltage divider if the voltage levels of the microcontroller and the relay board are different.