Single Channel 12V Relay Module 30AMP
Single Channel 12V Relay Module 30AMP
The Single Channel 12V Relay Module 30AMP is a compact, high-power relay module designed to control and switch various electrical loads in IoT applications. This module features a single relay channel, making it ideal for simple on/off control of devices, such as lights, fans, pumps, and motors.
The Single Channel 12V Relay Module 30AMP acts as an electronic switch that enables or disables the flow of electrical current to a connected load. The module receives a digital control signal from a microcontroller or other control devices, which triggers the relay to switch the load on or off. The relay module can handle high-current loads up to 30 Amps, making it suitable for applications that require robust and reliable control.
12V DC
Electromagnetic relay
30 Amps, 250V AC/30V DC
50/60 Hz
Digital (TTL compatible)
3.3V/5V compatible
Active Low ( trigger signal is 0V to switch on, and 5V/3.3V to switch off)
5ms (max)
100,000 cycles (min)
43.5mm x 34.5mm x 23.5mm
FR4 (Flame Retardant 4)
Screw terminals for easy connection
Built-in protection against overload and short-circuit
Optoisolator used for input and relay output isolation
Control lights, fans, and appliances remotely
Switch pumps, valves, and motors in industrial settings
Control servo motors and other peripherals
Integrate with microcontrollers, Raspberry Pi, or Arduino boards to create complex IoT systems
1 x Single Channel 12V Relay Module 30AMP
1 x Jumper wires for easy connection
1 x Printed documentation and datasheet
The module's specifications and features may vary depending on the manufacturer and supplier. Be sure to check the datasheet and documentation provided with the module for specific details.
Single Channel 12V Relay Module 30Amp Documentation
Overview
The Single Channel 12V Relay Module 30Amp is a versatile and powerful relay module designed for controlling high-current loads up to 30A. This module is suitable for a wide range of applications, including home automation, industrial control, and IoT projects.
Pinout
The module has the following pinout:
VCC: 12V power supply
GND: Ground
IN: Input signal (active low)
COM: Common terminal for relay
NO: Normally Open terminal for relay
NC: Normally Closed terminal for relay
How to Use
The Single Channel 12V Relay Module 30Amp can be controlled using a digital signal from a microcontroller or other digital device. The module operates by applying a low-level signal to the IN pin to activate the relay. When the relay is activated, the COM terminal connects to the NO terminal, and when the relay is deactivated, the COM terminal connects to the NC terminal.
Code Examples
### Example 1: Arduino Control
In this example, we will use an Arduino Uno board to control the relay module. The relay will be turned on and off every 5 seconds.
```c
const int relayPin = 2; // Choose a digital pin to control the relay
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
digitalWrite(relayPin, LOW); // Turn on the relay
delay(5000);
digitalWrite(relayPin, HIGH); // Turn off the relay
delay(5000);
}
```
### Example 2: Raspberry Pi Python Control
In this example, we will use a Raspberry Pi board with Raspbian OS to control the relay module using Python. The relay will be turned on and off every 5 seconds.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
relay_pin = 17 # Choose a GPIO pin to control the relay
GPIO.setup(relay_pin, GPIO.OUT)
while True:
GPIO.output(relay_pin, GPIO.LOW) # Turn on the relay
time.sleep(5)
GPIO.output(relay_pin, GPIO.HIGH) # Turn off the relay
time.sleep(5)
```
### Example 3: ESP32 MicroPython Control
In this example, we will use an ESP32 board with MicroPython to control the relay module. The relay will be turned on and off every 5 seconds.
```python
import machine
import time
relay_pin = machine.Pin(32, machine.Pin.OUT) # Choose a GPIO pin to control the relay
while True:
relay_pin.value(0) # Turn on the relay
time.sleep(5)
relay_pin.value(1) # Turn off the relay
time.sleep(5)
```
Precautions
Make sure to use a suitable power supply for the relay module.
Ensure the load you are controlling with the relay module does not exceed the maximum current rating of 30A.
Use a flyback diode or other protection circuitry to prevent back-EMF damage to the relay module or controlling device.
Troubleshooting
If the relay module does not respond to the control signal, check the power supply and wiring to the module.
If the relay module is not turning off, check the control signal and ensure it is set high when the relay should be off.