Stufin
Home Quick Cart Profile

2 CH 12V Relay Board

Buy Now on Stufin

Component Name

2 CH 12V Relay Board

Description

The 2 CH 12V Relay Board is a compact, dual-channel relay module designed to control and switch high-power devices using low-power signals from microcontrollers, Arduino, Raspberry Pi, or other compatible development boards. This relay board is ideal for IoT applications, home automation, and industrial control systems.

Functionality

The 2 CH 12V Relay Board acts as an electronic switch that can be controlled remotely using digital signals. It allows low-power devices to control high-power loads, making it an essential component in various IoT projects. The relay board can be used to switch AC or DC loads, such as lights, fans, motors, solenoids, and valves, among others.

Key Features

### Electrical Characteristics

Relay Type

2x SPDT (Single Pole Double Throw) relays

Power Supply

12V DC

Relay Coil Voltage

12V DC

Contact Rating

10A/250V AC, 10A/30V DC

Maximum Power

1200W (10A x 120V AC)

### Control and Interface

Input Voltage

5V DC (compatible with 3.3V and 5V systems)

Digital Input

2x channels with built-in pull-down resistors

Input Trigger

High-level trigger (HIGH signal turns relay ON, LOW signal turns relay OFF)

Indicator LEDs

2x LEDs indicating relay status (ON or OFF)

### Mechanical and Physical Characteristics

Board Size

55mm x 35mm (2.17" x 1.38")

Mounting Holes

4x M2.5 screw holes for secure mounting

Operating Temperature

-40C to 85C (-40F to 185F)

Storage Temperature

-40C to 125C (-40F to 257F)

### Package Contents

1x 2 CH 12V Relay Board

1x Jumper wire set (for connecting to microcontrollers or development boards)

Home automation

control lights, fans, and appliances remotely

Industrial control

switch motors, solenoids, and valves in industrial settings

IoT projects

control devices using sensors, Wi-Fi, or Bluetooth connectivity

Robotics

control motors, pumps, and other devices in robotic applications

Certifications and Compliance

RoHS (Restriction of Hazardous Substances) compliant

CE (Conformit Europene) certified

Warranty and Support

1-year limited warranty

Dedicated technical support team for assistance and guidance

By integrating the 2 CH 12V Relay Board into your IoT project, you can easily control high-power devices with low-power signals, making it an essential component for a wide range of applications.

Pin Configuration

  • 2 CH 12V Relay Board Documentation
  • Pinout Explanation
  • The 2 CH 12V Relay Board has a total of 10 pins, which can be divided into three categories: Power Supply, Relay Control, and Relay Output. Here's a detailed explanation of each pin:
  • Power Supply Pins
  • 1. VCC (V+): This pin provides the power supply to the relay board. It should be connected to a 12V DC power source. The recommended current rating is 500mA.
  • 2. GND (V-): This pin is the ground connection for the relay board and should be connected to the negative terminal of the power source.
  • Relay Control Pins
  • 3. IN1: This pin controls the first relay. When a HIGH signal (3.3V to 5V) is applied to this pin, the corresponding relay will be energized, and the normally open (NO) contact will connect to the common (COM) contact. When a LOW signal (0V) is applied, the relay will be de-energized, and the normally closed (NC) contact will connect to the COM contact.
  • 4. IN2: This pin controls the second relay. It works similarly to IN1, but controls the second relay.
  • Relay Output Pins
  • 5. COM1: This pin is the common contact for the first relay. It is connected to either the normally open (NO) contact or the normally closed (NC) contact, depending on the state of the relay.
  • 6. NO1: This pin is the normally open contact for the first relay. It is connected to the COM1 pin when the relay is energized.
  • 7. NC1: This pin is the normally closed contact for the first relay. It is connected to the COM1 pin when the relay is de-energized.
  • 8. COM2: This pin is the common contact for the second relay. It is connected to either the normally open (NO) contact or the normally closed (NC) contact, depending on the state of the relay.
  • 9. NO2: This pin is the normally open contact for the second relay. It is connected to the COM2 pin when the relay is energized.
  • 10. NC2: This pin is the normally closed contact for the second relay. It is connected to the COM2 pin when the relay is de-energized.
  • Connection Structure
  • Here's a general connection structure for the 2 CH 12V Relay Board:
  • Connect VCC to a 12V DC power source.
  • Connect GND to the negative terminal of the power source.
  • Connect IN1 and IN2 to the digital output pins of a microcontroller or other control device.
  • Connect COM1 to the device you want to control (e.g., a lamp, fan, or Solenoid valve).
  • Connect NO1 and NC1 to the device's power supply lines (e.g., +V and -V).
  • Repeat the above connections for the second relay using COM2, NO2, and NC2.
  • Important Notes
  • Ensure the relay board is properly powered before applying control signals to the IN1 and IN2 pins.
  • Use a voltage level converter if your control device operates at a voltage level different from the relay board's input voltage (3.3V to 5V).
  • Handle the relay board with care to avoid damage from static electricity or excessive mechanical stress.

Code Examples

2 CH 12V Relay Board Documentation
Overview
The 2 CH 12V Relay Board is a module designed to control two high-power devices or appliances using low-power signals from a microcontroller or other controlling devices. The relay board is suitable for a wide range of applications, including home automation, industrial control, and IoT projects.
Pinout and Connections
The relay board has the following pinout:
VCC: 12V power supply
 GND: Ground
 IN1: Input for relay 1 (active low)
 IN2: Input for relay 2 (active low)
Technical Specifications
Relay type: 2-channel, 12V, 10A/250VAC
 Control signal: Active low
 Operating voltage: 12V DC
 Operating temperature: -40C to 85C
Example 1: Controlling a Lamp using Arduino
In this example, we will use the 2 CH 12V Relay Board to control a lamp using an Arduino board.
Hardware connections:
Connect the VCC pin of the relay board to the 12V power supply
 Connect the GND pin of the relay board to the GND pin of the Arduino board
 Connect the IN1 pin of the relay board to digital pin 2 of the Arduino board
 Connect the lamp to the normally open (NO) contact of relay 1
Arduino code:
```c
const int relayPin = 2;  // Pin connected to IN1 of relay board
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, LOW);  // Turn on the lamp
  delay(1000);
  digitalWrite(relayPin, HIGH);  // Turn off the lamp
  delay(1000);
}
```
Example 2: Controlling a Fan using Raspberry Pi
In this example, we will use the 2 CH 12V Relay Board to control a fan using a Raspberry Pi.
Hardware connections:
Connect the VCC pin of the relay board to the 12V power supply
 Connect the GND pin of the relay board to the GND pin of the Raspberry Pi
 Connect the IN2 pin of the relay board to GPIO 17 of the Raspberry Pi
 Connect the fan to the normally open (NO) contact of relay 2
Python code (using RPi.GPIO library):
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
relayPin = 17  # GPIO 17
GPIO.setup(relayPin, GPIO.OUT)
while True:
  GPIO.output(relayPin, GPIO.LOW)  # Turn on the fan
  time.sleep(1)
  GPIO.output(relayPin, GPIO.HIGH)  # Turn off the fan
  time.sleep(1)
```
Example 3: Controlling a Solenoid Valve using ESP32
In this example, we will use the 2 CH 12V Relay Board to control a solenoid valve using an ESP32 board.
Hardware connections:
Connect the VCC pin of the relay board to the 12V power supply
 Connect the GND pin of the relay board to the GND pin of the ESP32 board
 Connect the IN1 pin of the relay board to GPIO 18 of the ESP32 board
 Connect the solenoid valve to the normally open (NO) contact of relay 1
C code (using ESP-IDF framework):
```c
#include <esp_system.h>
#include <gpio.h>
#define RELAY_PIN 18
void initrelay(void) {
  gpio_pad_select_gpio(RELAY_PIN);
  gpio_set_direction(RELAY_PIN, GPIO_MODE_OUTPUT);
}
void toggleRelay(void) {
  gpio_set_level(RELAY_PIN, 0);  // Turn on the solenoid valve
  vTaskDelay(1000);
  gpio_set_level(RELAY_PIN, 1);  // Turn off the solenoid valve
  vTaskDelay(1000);
}
void app_main(void) {
  initrelay();
  while (1) {
    toggleRelay();
  }
}
```
These examples demonstrate how to use the 2 CH 12V Relay Board to control different devices using various microcontrollers. The relay board is a versatile module that can be used in a wide range of applications, from home automation to industrial control systems.