Stufin
Home Quick Cart Profile

DC 6V To 30V One Way Relay Module

Buy Now

Input Voltage

6V to 30V

Control Signal

5V or 3.3V

Relay Type

One-Way, Normally Open (NO)

Contact Rating

10A @ 30V

Operating Frequency

50Hz to 60Hz

Response Time

<10ms

Dimensions

43.5mm x 27.5mm x 18.5mm (L x W x H)

Weight

20g

Applications

The DC 6V to 30V One Way Relay Module is suitable for a variety of applications, including

Home automation systems

Industrial control systems

Robotics and mechatronics

IoT projects

Smart home appliances

Motor control systems

Solenoid control systems

Important Notes

The module should only be used within the recommended operating voltage range to ensure safe and reliable operation.

The relay should not be used to switch AC circuits, as this can result in damage to the module and surrounding components.

Proper safety precautions should be taken when working with high-voltage circuits to avoid injury or electrical shock.

Pin Configuration

  • DC 6V to 30V One Way Relay Module Documentation
  • Pin Description:
  • The DC 6V to 30V One Way Relay Module has 5 pins, labeled as follows:
  • 1. VCC (Voltage Supply):
  • Pin Description: Power supply pin for the relay module.
  • Voltage Range: 6V to 30V DC.
  • Function: Provides power to the relay module's internal circuitry.
  • 2. GND (Ground):
  • Pin Description: Ground pin for the relay module.
  • Function: Provides a common ground reference for the relay module.
  • 3. IN (Input):
  • Pin Description: Trigger input pin for the relay.
  • Voltage Level: Active-low, meaning a low voltage (0V) signal triggers the relay, while a high voltage (VCC) signal de-activates it.
  • Function: When the input pin is connected to GND (0V), the relay is activated, and the normally open (NO) and normally closed (NC) contacts switch.
  • 4. NO (Normally Open):
  • Pin Description: Normally open contact of the relay.
  • Function: When the relay is activated, the NO pin connects to the COM pin, allowing the load circuit to turn on.
  • 5. NC (Normally Closed) / COM (Common):
  • Pin Description: Normally closed contact and common pin of the relay.
  • Function: When the relay is de-activated, the NC pin connects to the COM pin, allowing the load circuit to turn off. When the relay is activated, the NO pin connects to the COM pin.
  • Connection Structure:
  • To connect the pins, follow this structure:
  • Power Supply:
  • + Connect VCC to a DC power source (6V to 30V) through a suitable voltage regulator or power supply module.
  • + Connect GND to the ground terminal of the power source.
  • Trigger Input:
  • + Connect IN to a digital output pin of a microcontroller (e.g., Arduino) or a logic gate.
  • + Ensure the output voltage of the microcontroller or logic gate is within the relay module's input voltage range (VCC).
  • Load Circuit:
  • + Connect the load circuit (e.g., LED, motor, or solenoid) to the NO and COM pins.
  • + The load circuit will turn on when the relay is activated (IN pin is connected to GND) and turn off when the relay is de-activated (IN pin is connected to VCC).
  • Important Notes:
  • Ensure the power supply voltage and current meet the relay module's specifications.
  • Use a suitable voltage regulator or power supply module to regulate the voltage to the relay module.
  • Keep the relay module away from high-temperature areas and ensure good ventilation to prevent overheating.
  • Follow proper safety precautions when working with electrical circuits and ensure the load circuit is designed and constructed safely.

Code Examples

DC 6V to 30V One Way Relay Module Documentation
Overview
The DC 6V to 30V One Way Relay Module is a widely used IoT component that allows you to control high-voltage devices (up to 30V) using a low-voltage signal (6V or higher). This module is commonly used in home automation, robotics, and industrial control applications.
Module Specifications
Input Voltage: 6V to 30V DC
 Output Voltage: Same as input voltage
 Output Current: 10A max
 Switching Type: One-way (normally open)
 Control Signal: Active high (3.3V to 5V)
 Response Time: < 10ms
 Dimensions: 35mm x 18mm x 15mm
Pinout
The module has 3 pins:
VCC (input voltage)
 GND (ground)
 IN (control signal)
Code Examples
Here are a few examples of how to use this relay module in different contexts:
Example 1: Controlling a 12V Fan using Arduino
In this example, we'll use an Arduino board to control a 12V fan using the relay module.
```cpp
const int relayPin = 2;  // Pin connected to the relay module's IN pin
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, HIGH);  // Turn the fan on
  delay(5000);
  digitalWrite(relayPin, LOW);   // Turn the fan off
  delay(5000);
}
```
Example 2: Controlling a 24V Solenoid Valve using Raspberry Pi
In this example, we'll use a Raspberry Pi to control a 24V solenoid valve using the relay module.
```python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
relay_pin = 17  # Pin connected to the relay module's IN pin
GPIO.setup(relay_pin, GPIO.OUT)
while True:
    GPIO.output(relay_pin, GPIO.HIGH)  # Turn the solenoid valve on
    time.sleep(5)
    GPIO.output(relay_pin, GPIO.LOW)  # Turn the solenoid valve off
    time.sleep(5)
```
Example 3: Controlling a 12V LED Strip using ESP32
In this example, we'll use an ESP32 board to control a 12V LED strip using the relay module.
```cpp
const int relayPin = 4;  // Pin connected to the relay module's IN pin
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, HIGH);  // Turn the LED strip on
  delay(5000);
  digitalWrite(relayPin, LOW);   // Turn the LED strip off
  delay(5000);
}
```
Caution
Ensure the input voltage to the relay module is within the specified range (6V to 30V DC).
 Use a suitable heatsink if you're switching high-current loads.
 Avoid using this module to control inductive loads (such as motors) without proper filtering and protection.
I hope this documentation helps you get started with using the DC 6V to 30V One Way Relay Module in your IoT projects!