Stufin
Home Quick Cart Profile

Four CHANNEL 12V ULN2003 BASED RELAY BOARD MODULE

Buy Now

Component Name

Four Channel 12V ULN2003 Based Relay Board Module

Overview

The Four Channel 12V ULN2003 Based Relay Board Module is a versatile and compact relay module designed for a wide range of applications in the Internet of Things (IoT) and automation domains. This module features four individual relay channels, each capable of switching high-power loads, making it an ideal solution for controlling multiple devices or circuits in a single module.

Functionality

The Four Channel 12V ULN2003 Based Relay Board Module is primarily used to control high-power loads such as motors, solenoids, and lights. It accepts low-voltage inputs (typically 3.3V or 5V) from a microcontroller or other digital devices and uses the ULN2003 Darlington transistor array to switch the higher voltage (12V) relay coils. Each relay channel can be controlled independently, allowing for precise and simultaneous control of multiple loads.

Key Features

  • Four Independent Relay Channels: The module features four individual relay channels, each with a normally open (NO) and normally closed (NC) contact.
  • ULN2003 Darlington Transistor Array: The module utilizes the ULN2003 IC, which provides high current gain and enables the relay coils to be driven from low-voltage inputs.
  • 12V Relay Coils: The relays are designed to operate at 12V, allowing for the control of high-power loads.
  • Low-Voltage Input: The module accepts low-voltage inputs (3.3V or 5V) from a microcontroller or other digital devices, making it compatible with a wide range of control systems.
  • Optical Isolation: The module provides optical isolation between the input and output stages, ensuring electrical isolation and reducing electromagnetic interference (EMI).
  • Compact Design: The module is designed to be compact and space-efficient, making it ideal for use in IoT projects, robotics, and automation systems.
  • LED Indicators: Each relay channel features an LED indicator, providing visual feedback of the relay state.
  • Screw Terminal Connectors: The module features screw terminal connectors for easy and secure connection of load wires.

Relay Type

SPDT (Single Pole Double Throw)

Contact Rating

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

Coil Voltage

12V

Coil Resistance

120

Contact Material

AgSnO2

Input Voltage

3.3V or 5V

Input Current

20mA (max)

Operating Temperature

-40C to 85C

Storage Temperature

-40C to 125C

Humidity

5% to 95% RH (non-condensing)

Dimensions

The module measures 65mm x 55mm x 18mm (L x W x H).

Applications

IoT projects

Robotics

Automation systems

Home automation

Industrial control systems

Security systems

Overall, the Four Channel 12V ULN2003 Based Relay Board Module is a versatile and reliable solution for controlling multiple high-power loads in a single module, making it an ideal component for a wide range of IoT and automation applications.

Pin Configuration

  • Four Channel 12V ULN2003 Based Relay Board Module Documentation
  • Overview
  • The Four Channel 12V ULN2003 Based Relay Board Module is a versatile and widely used IoT component for controlling high-power devices such as lights, motors, and other appliances. This module features four relays, each capable of handling up to 10A of current, making it suitable for a wide range of applications.
  • Pinout Explanation
  • The module has a total of 14 pins, which are explained below:
  • Power Supply Pins
  • 1. VCC (12V): This pin is used to supply power to the relay board. The recommended input voltage is 12V, but it can operate within a range of 9V to 15V.
  • 2. GND: This pin is the ground connection for the power supply.
  • Signal Input Pins
  • 3. IN1: This pin is the signal input for relay 1. A high logic level (1-5V) on this pin will activate the corresponding relay.
  • 4. IN2: This pin is the signal input for relay 2. A high logic level (1-5V) on this pin will activate the corresponding relay.
  • 5. IN3: This pin is the signal input for relay 3. A high logic level (1-5V) on this pin will activate the corresponding relay.
  • 6. IN4: This pin is the signal input for relay 4. A high logic level (1-5V) on this pin will activate the corresponding relay.
  • Relay Output Pins
  • 7. NO1 (Normally Open): This pin is the normally open contact for relay 1. When the relay is activated, this pin will connect to the COM1 pin.
  • 8. COM1 (Common): This pin is the common contact for relay 1. It is connected to the NC1 pin when the relay is deactivated and to the NO1 pin when the relay is activated.
  • 9. NC1 (Normally Closed): This pin is the normally closed contact for relay 1. When the relay is deactivated, this pin will connect to the COM1 pin.
  • 10. NO2 (Normally Open): This pin is the normally open contact for relay 2. When the relay is activated, this pin will connect to the COM2 pin.
  • 11. COM2 (Common): This pin is the common contact for relay 2. It is connected to the NC2 pin when the relay is deactivated and to the NO2 pin when the relay is activated.
  • 12. NC2 (Normally Closed): This pin is the normally closed contact for relay 2. When the relay is deactivated, this pin will connect to the COM2 pin.
  • 13. NO3 (Normally Open): This pin is the normally open contact for relay 3. When the relay is activated, this pin will connect to the COM3 pin.
  • 14. NO4 (Normally Open): This pin is the normally open contact for relay 4. When the relay is activated, this pin will connect to the COM4 pin.
  • Connection Structure
  • To connect the pins, follow this structure:
  • Connect the VCC pin to a 12V power source.
  • Connect the GND pin to the ground connection of the power source.
  • Connect the IN1-IN4 pins to the output pins of a microcontroller or other control devices.
  • Connect the COM1-COM4 pins to the power source of the device you want to control (e.g., a lamp, motor, etc.).
  • Connect the NO1-NO4 pins to the load (e.g., the positive terminal of the lamp or motor).
  • Connect the NC1-NC4 pins to the negative terminal of the load.
  • Important Notes
  • Make sure to use a suitable power supply that can handle the total current drawn by all relays.
  • Use a diode or snubber circuit to protect the relay and power supply from back-EMF when switching inductive loads.
  • Always follow proper safety precautions when working with high-power devices and electrical circuits.
  • By following the above pinout explanation and connection structure, you can successfully integrate the Four Channel 12V ULN2003 Based Relay Board Module into your IoT project and control high-power devices with ease.

Code Examples

Four Channel 12V ULN2003 Based Relay Board Module Documentation
Overview
The Four Channel 12V ULN2003 Based Relay Board Module is a relay module designed to control high-power devices using a microcontroller or other low-voltage signal sources. The module features four SPDT (Single Pole Double Throw) relays, each capable of switching up to 12V and 10A. The relays are controlled by the ULN2003 darlington transistor array, which provides a high current gain and allows the module to be driven by low-voltage logic signals.
Pinout and Connections
The module has the following pinout:
VCC: 12V power supply for the relays
 GND: Ground connection
 IN1, IN2, IN3, IN4: Input control pins for each relay (active low)
 COM1, COM2, COM3, COM4: Common terminals for each relay
 NO1, NO2, NO3, NO4: Normally open terminals for each relay
 NC1, NC2, NC3, NC4: Normally closed terminals for each relay
Example 1: Controlling a Relay with an Arduino
In this example, we will use an Arduino Uno to control one of the relays on the module.
```c++
const int relayPin = 2;  // control pin for relay 1
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, LOW);  // turn relay on
  delay(1000);
  digitalWrite(relayPin, HIGH); // turn relay off
  delay(1000);
}
```
Example 2: Controlling Multiple Relays with a Raspberry Pi (Python)
In this example, we will use a Raspberry Pi to control multiple relays on the module using Python.
```python
import RPi.GPIO as GPIO
import time
# set up GPIO mode
GPIO.setmode(GPIO.BCM)
# define relay control pins
relay_pins = [17, 23, 24, 25]
# set up relay control pins as outputs
for pin in relay_pins:
    GPIO.setup(pin, GPIO.OUT)
try:
    while True:
        # turn relays on and off in sequence
        for pin in relay_pins:
            GPIO.output(pin, GPIO.LOW)
            time.sleep(1)
            GPIO.output(pin, GPIO.HIGH)
            time.sleep(1)
except KeyboardInterrupt:
    GPIO.cleanup()
```
Example 3: Controlling a Relay with a ESP32 (MicroPython)
In this example, we will use an ESP32 microcontroller to control one of the relays on the module using MicroPython.
```python
import machine
import time
# define relay control pin
relay_pin = machine.Pin(2, machine.Pin.OUT)
while True:
    relay_pin.value(0)  # turn relay on
    time.sleep(1)
    relay_pin.value(1)  # turn relay off
    time.sleep(1)
```
Note: In all examples, make sure to connect the control pins (IN1, IN2, IN3, IN4) to the corresponding digital outputs on your microcontroller, and the VCC and GND pins to a suitable power supply.