6V to 30V
6V to 30V
5V or 3.3V
One-Way, Normally Open (NO)
10A @ 30V
50Hz to 60Hz
<10ms
43.5mm x 27.5mm x 18.5mm (L x W x H)
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.
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!