Stufin
Home Quick Cart Profile

4 Channel 12V Relay Board

Buy Now on Stufin

The relay board can be used to

Control lights, fans, motors, and other appliances

Switch power sources or circuits

Isolate high-power circuits from low-power control systems

Implement automated control systems in industrial, commercial, or residential settings

Key Features

  • Four Isolated Relays: The board features four SPDT (Single Pole Double Throw) relays, each with a maximum switching capacity of 10A at 12V.
  • 12V Operating Voltage: The relay board is designed to operate at a nominal voltage of 12V, making it compatible with a wide range of power supplies and systems.
  • VCC and GND Terminals: The board provides separate VCC and GND terminals for easy connection to a power source and microcontroller.
  • Digital Input Terminals: The relay board features four digital input terminals, marked as IN1, IN2, IN3, and IN4, which receive the control signals from the microcontroller or other digital device.
  • NO (Normally Open) and NC (Normally Closed) Terminals: Each relay has a set of NO and NC terminals, allowing for flexible circuit configuration and easy connection to the controlled devices or loads.
  • Indicators and Status LEDs: The board features built-in LEDs to indicate the status of each relay, providing visual feedback and facilitating troubleshooting.
  • Compact Design: The relay board is designed to be compact and space-efficient, making it ideal for use in confined spaces or enclosed systems.
  • Relay Specification: The relays used on the board are UL, CE, and RoHS compliant, ensuring high reliability and safety.

Technical Specifications

Relay Type

SPDT (Single Pole Double Throw)

Maximum Switching Capacity

10A at 12V

Operating Voltage

12V

Operating Temperature

-40C to 85C

Storage Temperature

-40C to 125C

Dimensions

65mm x 55mm x 20mm

Applications

The 4 Channel 12V Relay Board is suitable for a wide range of applications, including

Home automation and smart building systems

Industrial control systems and automation

Robotics and mechatronics projects

IoT prototyping and development

Security and surveillance systems

Medical device control systems

Important Notes

The relay board should be used in accordance with the recommended operating voltage and switching capacity to ensure reliable operation and prevent damage.

Proper insulation and electrical safety precautions should be taken when working with high-power circuits.

The relay board is not intended for use in hazardous or explosive environments.

Pin Configuration

  • 4 Channel 12V Relay Board Pinout Explanation
  • The 4 Channel 12V Relay Board is a widely used IoT component that allows users to control up to 4 external devices, such as lights, fans, or motors, using digital signals from a microcontroller or other digital devices. The board consists of 4 relays, each with a normally open (NO) and normally closed (NC) contact, and 4 digital input pins to control the relays.
  • Pinout Structure:
  • The 4 Channel 12V Relay Board has a total of 14 pins, organized into three rows: VCC, Signal, and GND. Here's a point-by-point explanation of each pin:
  • Row 1: VCC (Power Supply)
  • 1. VCC (12V): This pin supplies power to the relay board. It requires a 12V DC power supply, which is used to energize the relays.
  • Row 2: Signal (Digital Input)
  • 2. IN1: This is the digital input pin for Relay 1. When a high signal (3.3V or 5V) is applied to this pin, Relay 1 is activated, and the normally open (NO) contact is closed.
  • 3. IN2: This is the digital input pin for Relay 2. When a high signal (3.3V or 5V) is applied to this pin, Relay 2 is activated, and the normally open (NO) contact is closed.
  • 4. IN3: This is the digital input pin for Relay 3. When a high signal (3.3V or 5V) is applied to this pin, Relay 3 is activated, and the normally open (NO) contact is closed.
  • 5. IN4: This is the digital input pin for Relay 4. When a high signal (3.3V or 5V) is applied to this pin, Relay 4 is activated, and the normally open (NO) contact is closed.
  • Row 3: GND (Ground)
  • 6. GND: This pin is the common ground for the relay board and must be connected to the ground of the power supply.
  • 7. GND: This pin is also a ground pin and can be used to connect additional circuits or devices to the relay board's ground.
  • Relay Output Pins
  • 8. NO1 (Normally Open) and NC1 (Normally Closed) for Relay 1
  • 9. NO2 (Normally Open) and NC2 (Normally Closed) for Relay 2
  • 10. NO3 (Normally Open) and NC3 (Normally Closed) for Relay 3
  • 11. NO4 (Normally Open) and NC4 (Normally Closed) for Relay 4
  • Jumpers
  • 12. JD-VCC: This jumper connects the VCC pin to the relay coil voltage. When the jumper is in place, the relay coil voltage is tied to the VCC pin. Remove the jumper to use an external voltage source.
  • 13. JD-GND: This jumper connects the GND pin to the relay coil ground. When the jumper is in place, the relay coil ground is tied to the GND pin. Remove the jumper to use an external ground source.
  • 14. No Connection: This pin is not connected to any internal circuitry and can be left unconnected.
  • Connecting the Pins:
  • To connect the pins, follow these steps:
  • 1. Connect the 12V power supply to the VCC pin.
  • 2. Connect the GND pin to the ground of the power supply.
  • 3. Connect the digital input pins (IN1-IN4) to the corresponding digital output pins of your microcontroller or other digital device.
  • 4. Connect the normally open (NO) and normally closed (NC) contacts of each relay to the devices you want to control (e.g., lights, fans, or motors).
  • 5. Make sure to remove the JD-VCC and JD-GND jumpers if you're using an external voltage source or ground connection.
  • Remember to handle the relay board with care, as the high voltage and current-carrying capabilities of the relays can cause electrical shock or injury if not handled properly.

Code Examples

4 Channel 12V Relay Board Documentation
Overview
The 4 Channel 12V Relay Board is a widely used IoT component that allows you to control four independent relays using a microcontroller or a single-board computer. This module is suitable for a wide range of applications, including home automation, industrial control, and robotics. Each relay is capable of switching a load up to 10A, 250VAC or 30VDC.
Pins and Connectors
The module has the following pins and connectors:
VCC: Power supply input (12V)
 GND: Ground
 IN1, IN2, IN3, IN4: Digital input pins for relay control (TTL level)
 Relay output terminals (NC, COM, NO)
Working Principle
The relay board works by using digital input signals to control the four relays. When a digital input pin (IN1-IN4) is set high (5V), the corresponding relay is activated, connecting the COM terminal to the NO terminal. When the digital input pin is set low (0V), the relay is deactivated, and the COM terminal is connected to the NC terminal.
Code Examples
### Example 1: Controlling Relays using Arduino
In this example, we will use an Arduino Uno to control the 4 Channel 12V Relay Board.
```cpp
// Define the relay control pins
const int relay1 = 2;  // Pin 2 for relay 1
const int relay2 = 3;  // Pin 3 for relay 2
const int relay3 = 4;  // Pin 4 for relay 3
const int relay4 = 5;  // Pin 5 for relay 4
void setup() {
  // Initialize relay control pins as outputs
  pinMode(relay1, OUTPUT);
  pinMode(relay2, OUTPUT);
  pinMode(relay3, OUTPUT);
  pinMode(relay4, OUTPUT);
}
void loop() {
  // Turn on relay 1
  digitalWrite(relay1, HIGH);
  delay(1000);
// Turn off relay 1 and turn on relay 2
  digitalWrite(relay1, LOW);
  digitalWrite(relay2, HIGH);
  delay(1000);
// Turn off relay 2 and turn on relay 3
  digitalWrite(relay2, LOW);
  digitalWrite(relay3, HIGH);
  delay(1000);
// Turn off relay 3 and turn on relay 4
  digitalWrite(relay3, LOW);
  digitalWrite(relay4, HIGH);
  delay(1000);
// Turn off all relays
  digitalWrite(relay1, LOW);
  digitalWrite(relay2, LOW);
  digitalWrite(relay3, LOW);
  digitalWrite(relay4, LOW);
  delay(1000);
}
```
### Example 2: Controlling Relays using Raspberry Pi (Python)
In this example, we will use a Raspberry Pi to control the 4 Channel 12V Relay Board using Python.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define the relay control pins
relay1 = 17
relay2 = 23
relay3 = 24
relay4 = 25
# Set up relay control pins as outputs
GPIO.setup(relay1, GPIO.OUT)
GPIO.setup(relay2, GPIO.OUT)
GPIO.setup(relay3, GPIO.OUT)
GPIO.setup(relay4, GPIO.OUT)
try:
    while True:
        # Turn on relay 1
        GPIO.output(relay1, GPIO.HIGH)
        time.sleep(1)
# Turn off relay 1 and turn on relay 2
        GPIO.output(relay1, GPIO.LOW)
        GPIO.output(relay2, GPIO.HIGH)
        time.sleep(1)
# Turn off relay 2 and turn on relay 3
        GPIO.output(relay2, GPIO.LOW)
        GPIO.output(relay3, GPIO.HIGH)
        time.sleep(1)
# Turn off relay 3 and turn on relay 4
        GPIO.output(relay3, GPIO.LOW)
        GPIO.output(relay4, GPIO.HIGH)
        time.sleep(1)
# Turn off all relays
        GPIO.output(relay1, GPIO.LOW)
        GPIO.output(relay2, GPIO.LOW)
        GPIO.output(relay3, GPIO.LOW)
        GPIO.output(relay4, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    # Clean up GPIO on exit
    GPIO.cleanup()
```
These examples demonstrate how to control the 4 Channel 12V Relay Board using both Arduino and Raspberry Pi. You can modify the code to suit your specific application requirements.