2 CH 12V Relay Board
2 CH 12V Relay Board
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.
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.
| ### Electrical Characteristics |
2x SPDT (Single Pole Double Throw) relays
12V DC
12V DC
10A/250V AC, 10A/30V DC
1200W (10A x 120V AC)
| ### Control and Interface |
5V DC (compatible with 3.3V and 5V systems)
2x channels with built-in pull-down resistors
High-level trigger (HIGH signal turns relay ON, LOW signal turns relay OFF)
2x LEDs indicating relay status (ON or OFF)
| ### Mechanical and Physical Characteristics |
55mm x 35mm (2.17" x 1.38")
4x M2.5 screw holes for secure mounting
-40C to 85C (-40F to 185F)
-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)
control lights, fans, and appliances remotely
switch motors, solenoids, and valves in industrial settings
control devices using sensors, Wi-Fi, or Bluetooth connectivity
control motors, pumps, and other devices in robotic applications
RoHS (Restriction of Hazardous Substances) compliant
CE (Conformit Europene) certified
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.
2 CH 12V Relay Board DocumentationOverviewThe 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 ConnectionsThe 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 SpecificationsRelay type: 2-channel, 12V, 10A/250VAC
Control signal: Active low
Operating voltage: 12V DC
Operating temperature: -40C to 85CExample 1: Controlling a Lamp using ArduinoIn 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 1Arduino code:
```c
const int relayPin = 2; // Pin connected to IN1 of relay boardvoid 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 PiIn 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 2Python code (using RPi.GPIO library):
```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)
relayPin = 17 # GPIO 17GPIO.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 ESP32In 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 1C code (using ESP-IDF framework):
```c
#include <esp_system.h>
#include <gpio.h>#define RELAY_PIN 18void 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.