Stufin
Home Quick Cart Profile

Multifunction Delay Relay Switch Module

Buy Now on Stufin

Relay Switching

The module contains a built-in relay that can be used to switch on/off external devices such as lights, motors, valves, and other electrical loads. The relay can be controlled using a digital signal from a microcontroller or other digital devices.

Delay Timer

The module features an integrated delay timer that allows users to set a specific time delay (0-99 seconds) before the relay switch is activated or deactivated. This feature is useful for applications that require a delay between the trigger signal and the relay action.

Signal Amplification

The module can amplify weak digital signals from microcontrollers or other devices, ensuring reliable switching of the relay even at long distances.

Key Features

High-Power RelayThe module features a high-power relay that can handle currents up to 10A and voltages up to 250V AC/30V DC.

Adjustable Delay Time

The delay time can be adjusted using the onboard potentiometer, allowing users to set a delay between 0-99 seconds.

Multiple Trigger Modes

The module supports multiple trigger modes, including pulse, toggle, and latch.

Indicator LEDs

The module features two indicator LEDs that provide visual feedback on the relay status (on/off) and the delay timer status (active/inactive).

Input/Output IsolationThe module provides electrical isolation between the input and output signals, ensuring safe and reliable operation.

Technical Specifications

Supply Voltage

5V DC

Relay Voltage

250V AC/30V DC

Relay Current

10A

Delay Time

0-99 seconds (adjustable)

Trigger Modes

Pulse, Toggle, Latch

Input Signal

Digital signal (TTL level)

Output Signal

Relay switch (SPDT)

Dimensions

50mm x 35mm x 20mm

Weight

25g

Applications

The Multifunction Delay Relay Switch Module is suitable for a wide range of IoT applications, including

Automation and control systems

Home security systems

Industrial control systems

Robotics and mechatronics projects

Energy management systems

Smart home devices

Conclusion

The Multifunction Delay Relay Switch Module is a versatile and feature-rich IoT component that provides a wide range of switching and delay functionalities. Its compact design, high-power relay, and adjustable delay time make it an ideal solution for various automation and control applications. With its easy-to-use interface and technical specifications, this module is suitable for both technical professionals and informed hobbyists.

Pin Configuration

  • Multifunction Delay Relay Switch Module Documentation
  • Pin Description
  • The Multifunction Delay Relay Switch Module has 10 pins, which are described below:
  • 1. VCC (Power Supply Voltage)
  • Pin type: Power input
  • Description: Connect to a power source (typically 5V or 12V DC) to provide power to the module.
  • Recommended connector: Red wire
  • 2. GND (Ground)
  • Pin type: Ground
  • Description: Connect to the ground of the power source or any common ground point in the circuit.
  • Recommended connector: Black wire
  • 3. IN1 (Input 1)
  • Pin type: Digital input
  • Description: Connect to a digital signal source (e.g., microcontroller output, sensor output) to control the relay.
  • Recommended connector: Yellow wire
  • 4. IN2 (Input 2)
  • Pin type: Digital input
  • Description: Connect to a digital signal source (e.g., microcontroller output, sensor output) to control the relay.
  • Recommended connector: Green wire
  • 5. COM (Common)
  • Pin type: Relay common terminal
  • Description: Connect to the load (e.g., a lamp, motor, or other device) that will be controlled by the relay.
  • Recommended connector: White wire
  • 6. NO (Normally Open)
  • Pin type: Relay normally open terminal
  • Description: Connect to the load (e.g., a lamp, motor, or other device) that will be controlled by the relay. This terminal will be connected to the COM terminal when the relay is energized.
  • Recommended connector: Orange wire
  • 7. NC (Normally Closed)
  • Pin type: Relay normally closed terminal
  • Description: Connect to the load (e.g., a lamp, motor, or other device) that will be controlled by the relay. This terminal will be disconnected from the COM terminal when the relay is energized.
  • Recommended connector: Brown wire
  • 8. DLY (Delay Time Setting)
  • Pin type: Analog input
  • Description: Connect a potentiometer or a variable resistor to set the delay time (0-10 seconds) for the relay.
  • Recommended connector: Gray wire
  • 9. LED (Indicator LED)
  • Pin type: Indicator output
  • Description: An on-board LED that indicates the relay status (on or off).
  • Recommended connector: No connection required (on-board component)
  • 10. EN (Enable)
  • Pin type: Digital input
  • Description: Connect to a digital signal source (e.g., microcontroller output) to enable or disable the relay.
  • Recommended connector: Blue wire
  • Connection Structure
  • To connect the Multifunction Delay Relay Switch Module, follow these steps:
  • 1. Connect the power supply voltage (VCC) to the module, typically 5V or 12V DC.
  • 2. Connect the ground (GND) to the power source ground or a common ground point in the circuit.
  • 3. Connect the input signals (IN1 and IN2) to the digital output of a microcontroller or other digital signal sources.
  • 4. Connect the relay common terminal (COM) to the load (e.g., a lamp, motor, or other device) that will be controlled by the relay.
  • 5. Connect the relay normally open terminal (NO) to the load, which will be connected to the COM terminal when the relay is energized.
  • 6. Connect the relay normally closed terminal (NC) to the load, which will be disconnected from the COM terminal when the relay is energized.
  • 7. Connect a potentiometer or variable resistor to the delay time setting (DLY) pin to set the delay time (0-10 seconds) for the relay.
  • 8. Connect the enable (EN) pin to a digital signal source (e.g., microcontroller output) to enable or disable the relay.
  • 9. Ensure all connections are secure and meet the recommended wire color codes for easy identification and troubleshooting.
  • By following this documentation, you should be able to correctly connect and use the Multifunction Delay Relay Switch Module in your IoT projects.

Code Examples

Multifunction Delay Relay Switch Module Documentation
Overview
The Multifunction Delay Relay Switch Module is a versatile IoT component that enables users to control and switch AC/DC loads with precision timing. This module features a relay switch, a built-in delay timer, and manual override functionality, making it an essential component in various IoT applications, such as home automation, industrial control, and robotics.
Technical Specifications
Input Voltage: 5V DC
 Output Voltage: 250V AC/30V DC
 Max Current: 10A
 Delay Time: 0-99 seconds (adjustable)
 Trigger Modes: High-level trigger, low-level trigger, and manual override
 Dimensions: 55mm x 45mm x 20mm
Pinout
VCC: 5V DC power input
 GND: Ground
 IN: Input signal (high-level or low-level trigger)
 OUT: Relay switch output
 SET: Delay time set button
 RST: Reset button
Code Examples
### Example 1: Basic Relay Switch Control using Arduino
In this example, we will use an Arduino board to control the Multifunction Delay Relay Switch Module. We will set the delay time to 5 seconds and then trigger the relay switch using a digital output.
```cpp
const int relayPin = 2;  // Digital output pin for relay control
const int setPin = 4;   // Delay time set button pin
const int rstPin = 5;   // Reset button pin
void setup() {
  pinMode(relayPin, OUTPUT);
  pinMode(setPin, OUTPUT);
  pinMode(rstPin, OUTPUT);
  
  // Set delay time to 5 seconds
  digitalWrite(setPin, HIGH);
  delay(5000);
  digitalWrite(setPin, LOW);
}
void loop() {
  // Trigger relay switch
  digitalWrite(relayPin, HIGH);
  delay(5000); // Wait for 5 seconds
  digitalWrite(relayPin, LOW);
  delay(5000); // Wait for 5 seconds
}
```
### Example 2: Home Automation using ESP32 and MQTT
In this example, we will use an ESP32 board to control the Multifunction Delay Relay Switch Module over the internet using MQTT protocol. We will create a simple home automation system that turns on a light bulb connected to the relay switch when a specific MQTT topic is published.
```cpp
#include <WiFi.h>
#include <PubSubClient.h>
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
const char mqttServer = "your_mqtt_broker_ip";
const char topic = "home/automation/light";
WiFiClient espClient;
PubSubClient client(espClient);
const int relayPin = 2;  // Digital output pin for relay control
void setup() {
  Serial.begin(115200);
  
  // Connect to WiFi
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to WiFi...");
  }
  
  Serial.println("Connected to WiFi");
  Serial.println("Connecting to MQTT broker...");
  
  // Connect to MQTT broker
  client.setServer(mqttServer, 1883);
  while (!client.connected()) {
    client.connect("ESP32Client");
    delay(1000);
    Serial.println("Connecting to MQTT broker...");
  }
  
  Serial.println("Connected to MQTT broker");
  
  // Subscribe to MQTT topic
  client.subscribe(topic);
}
void loop() {
  if (client.connected()) {
    client.loop();
  }
  
  // Check for incoming MQTT messages
  if (client.available()) {
    char message[64];
    int len = client.readBytes(message, 64);
    message[len] = '';
    
    if (strcmp(message, "ON") == 0) {
      // Turn on light bulb
      digitalWrite(relayPin, HIGH);
    } else if (strcmp(message, "OFF") == 0) {
      // Turn off light bulb
      digitalWrite(relayPin, LOW);
    }
  }
  
  delay(100);
}
```
### Example 3: Industrial Automation using Raspberry Pi and Python
In this example, we will use a Raspberry Pi board to control the Multifunction Delay Relay Switch Module in an industrial automation context. We will create a Python script that reads data from a temperature sensor and triggers the relay switch when the temperature exceeds a certain threshold.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Set up relay pin as output
relay_pin = 17
GPIO.setup(relay_pin, GPIO.OUT)
# Set up temperature sensor pin as input
temp_pin = 23
GPIO.setup(temp_pin, GPIO.IN)
while True:
    # Read temperature data from sensor
    temp_data = GPIO.input(temp_pin)
    if temp_data > 30:  # Threshold temperature (C)
        # Trigger relay switch
        GPIO.output(relay_pin, GPIO.HIGH)
        time.sleep(5)  # Wait for 5 seconds
        GPIO.output(relay_pin, GPIO.LOW)
    time.sleep(1)  # Check temperature every second
```
These examples demonstrate the versatility of the Multifunction Delay Relay Switch Module in various IoT applications. By controlling the relay switch with precision timing, users can create complex automation systems that interact with the physical world.