Stufin
Home Quick Cart Profile

12V 8-Channel Relay board

Buy Now on Stufin

Component Documentation

12V 8-Channel Relay Board

Overview

The 12V 8-Channel Relay Board is a modular, electronic component designed to control and switch high-power devices, such as lights, motors, and appliances, remotely using low-power signals from a microcontroller or other control systems. This relay board is an essential component in various IoT applications, home automation systems, and industrial control systems.

Functionality

The 12V 8-Channel Relay Board acts as an electronic switch, enabling the connection and disconnection of high-power circuits using low-power control signals. Each of the eight channels on the board can be controlled independently, allowing for the manipulation of multiple devices simultaneously. The board's relays are triggered by digital input signals, which activate the corresponding normally open (NO) and normally closed (NC) contacts to facilitate the flow of power to the connected devices.

Key Features

  • 8-Channel Relay: The board features eight independent relay channels, each capable of controlling a separate device or circuit.
  • 12V Operating Voltage: The relay board operates on a 12V DC power supply, making it suitable for a wide range of applications.
  • High-Power Switching: Each relay channel can handle up to 10A of current, making it suitable for controlling high-power devices.
  • Digital Input Control: The relay board accepts digital input signals (0-5V) from microcontrollers, sensors, or other control systems to trigger the relays.
  • Optical Isolation: The board features optical isolation between the input control signals and the relay outputs, ensuring electrical isolation and preventing interference.
  • LED Indicators: Each relay channel has a built-in LED indicator to visually indicate the relay's status (ON/OFF).
  • Compact Design: The relay board is designed to be compact and lightweight, making it ideal for integration into IoT projects, automation systems, and other space-constrained applications.
  • Screw Terminal Connectors: The board features screw terminal connectors for easy connection of power supply, control signals, and relay outputs.
  • Heat Sink: A heat sink is integrated into the board to dissipate heat generated by the relays during operation.

Technical Specifications

Operating Voltage

12V DC

Relay Type

Electromagnetic Relay

Contact Rating

10A/24V DC

Input Signal

0-5V DC

Operating Temperature

-40C to +85C

Dimensions

114x77x25mm (4.5x3x1 inches)

Typical Applications

  • Home Automation Systems
  • Industrial Control Systems
  • IoT Projects (e.g., smart home devices, robotics, and automation)
  • Remote Monitoring and Control Systems
  • Security Systems

Conclusion

The 12V 8-Channel Relay Board is a versatile and reliable component for controlling high-power devices in various IoT applications. Its compact design, high-power switching capability, and optical isolation make it an ideal choice for a wide range of projects and systems.

Pin Configuration

  • 12V 8-Channel Relay Board Pinout Explanation
  • The 12V 8-Channel Relay Board is a versatile and compact module designed to control multiple loads using a microcontroller or other digital devices. This documentation provides a detailed explanation of each pin on the board, helping users to properly connect and utilize the relays.
  • Pinout Structure:
  • The relay board has three rows of pins: VCC, Signal, and GND. Each row serves a specific purpose, and understanding the pinout is crucial for correct connections.
  • VCC Row (Power Supply):
  • VCC (12V): This pin supplies power to the relay board. Connect a stable 12V DC power source to this pin.
  • GND (Ground): This pin is the ground connection for the power supply. Connect the negative terminal of the 12V DC power source to this pin.
  • Signal Row (Inputs):
  • IN1: This pin controls Relay 1. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN2: This pin controls Relay 2. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN3: This pin controls Relay 3. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN4: This pin controls Relay 4. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN5: This pin controls Relay 5. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN6: This pin controls Relay 6. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN7: This pin controls Relay 7. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • IN8: This pin controls Relay 8. Apply a logic high (3.3V or 5V) to activate the relay, and a logic low (0V) to deactivate it.
  • GND Row (Ground):
  • GND (Ground): This pin is the ground connection for the signal inputs. Connect the ground terminal of your microcontroller or digital device to this pin.
  • Relay Outputs:
  • Each relay has three terminals: COM (Common), NC (Normally Closed), and NO (Normally Open).
  • COM is connected to the load's power supply.
  • NC is connected to the load and is normally closed (connected) when the relay is inactive.
  • NO is connected to the load and is normally open (disconnected) when the relay is inactive.
  • Example Connection:
  • To control a lamp using Relay 1:
  • 1. Connect the 12V power supply to VCC and GND on the VCC row.
  • 2. Connect the microcontroller's digital output (e.g., Arduino's digital pin) to IN1 on the Signal row.
  • 3. Connect the lamp's positive terminal to NO (Normally Open) on Relay 1.
  • 4. Connect the lamp's negative terminal to COM (Common) on Relay 1.
  • 5. Connect the COM terminal to the 12V power supply's positive terminal.
  • When the microcontroller sends a logic high signal to IN1, the relay will activate, connecting the lamp's positive terminal to the COM terminal, turning the lamp on. When the microcontroller sends a logic low signal to IN1, the relay will deactivate, disconnecting the lamp's positive terminal from the COM terminal, turning the lamp off.

Code Examples

12V 8-Channel Relay Board Documentation
Overview
The 12V 8-Channel Relay Board is a compact and versatile module that allows you to control up to 8 devices or circuits using a microcontroller or other logic devices. The relay board is powered by a 12V DC supply and features 8 SPDT (Single Pole Double Throw) relays, each capable of switching up to 10A of current.
Pinout
The relay board has three rows of pins:
VCC: 12V power input
 GND: Ground
 IN1-IN8: Input pins for controlling the relays (active low)
 COM1-COM8: Common pins for the relays
 NO1-NO8: Normally Open pins for the relays
 NC1-NC8: Normally Closed pins for the relays
Example 1: Controlling a Relay using an Arduino Board
In this example, we will use an Arduino Uno board to control one of the relays on the 12V 8-Channel Relay Board.
Hardware Connections:
Connect the 12V power supply to the VCC and GND pins on the relay board
 Connect the Arduino Uno's digital pin 2 to the IN1 pin on the relay board
 Connect the load (e.g., a LED) to the COM1 and NO1 pins on the relay board
Arduino Code:
```c
const int relayPin = 2;  // Choose a digital pin on the Arduino board
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, LOW);  // Turn the relay ON
  delay(1000);
  digitalWrite(relayPin, HIGH);  // Turn the relay OFF
  delay(1000);
}
```
Example 2: Controlling Multiple Relays using a Raspberry Pi
In this example, we will use a Raspberry Pi to control multiple relays on the 12V 8-Channel Relay Board.
Hardware Connections:
Connect the 12V power supply to the VCC and GND pins on the relay board
 Connect the Raspberry Pi's GPIO pins 17, 23, and 24 to the IN1, IN2, and IN3 pins on the relay board, respectively
 Connect the loads (e.g., LEDs) to the COM1-COM3 and NO1-NO3 pins on the relay board
Python Code:
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins as outputs
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
while True:
    # Turn relay 1 ON, relay 2 OFF, and relay 3 ON
    GPIO.output(17, GPIO.LOW)
    GPIO.output(23, GPIO.HIGH)
    GPIO.output(24, GPIO.LOW)
    time.sleep(1)
# Turn relay 1 OFF, relay 2 ON, and relay 3 OFF
    GPIO.output(17, GPIO.HIGH)
    GPIO.output(23, GPIO.LOW)
    GPIO.output(24, GPIO.HIGH)
    time.sleep(1)
```
Example 3: Controlling Relays using a MicroPython Board (e.g., ESP32/ESP8266)
In this example, we will use a MicroPython board (e.g., ESP32/ESP8266) to control multiple relays on the 12V 8-Channel Relay Board.
Hardware Connections:
Connect the 12V power supply to the VCC and GND pins on the relay board
 Connect the MicroPython board's GPIO pins 0, 2, and 4 to the IN1, IN2, and IN3 pins on the relay board, respectively
 Connect the loads (e.g., LEDs) to the COM1-COM3 and NO1-NO3 pins on the relay board
MicroPython Code:
```python
import machine
# Set up GPIO pins as outputs
relay1 = machine.Pin(0, machine.Pin.OUT)
relay2 = machine.Pin(2, machine.Pin.OUT)
relay3 = machine.Pin(4, machine.Pin.OUT)
while True:
    # Turn relay 1 ON, relay 2 OFF, and relay 3 ON
    relay1.value(0)
    relay2.value(1)
    relay3.value(0)
    time.sleep(1)
# Turn relay 1 OFF, relay 2 ON, and relay 3 OFF
    relay1.value(1)
    relay2.value(0)
    relay3.value(1)
    time.sleep(1)
```
These examples demonstrate how to control the 12V 8-Channel Relay Board using various microcontrollers and programming languages. By modifying the code and hardware connections, you can customize the relay board to suit your specific application requirements.