1ch 30A Mod Relay Overview1 - RobotDynOfficial/Documentation GitHub Wiki
1 CHANNEL 5V (input) 30A (output) RELAY MODULE
Description
The relay module is a 1-channel logically operated switch that allows you to turn on or off a circuit that operates at voltage and/or current much higher than a microcontroller could handle, 110-220V AC / 30A for this particular module. This relay is galvanically isolated, i.e., there is no electrical connection between the low voltage circuit operated by the microcontroller logic and the high power circuit. The relay protects MCU from AC cirquit. However, if you wand to use common ground for MCU and the signal ground make sure the jumper is placed on the GND=SGND pins, remove otherwise. This module has three connections named NC, COM, and NO. Depending on the input signal the relay will switch from CLOSED (connected) at LOW to OPEN (disconnected) at HIGH.
Specifications
- On-board EL817 photoelectric coupler with strong photoelectric anti-interference isolating ability
- On-board 5V, 30A / 250VAC, 30A / 30VDC relay
- Endurance: 100000 cycles
- Module has diode current protection, short response time
- PCB Size: 71mm x 27.5mm
Pin Configuration
- SGND: ground
- IN: control signal
- GND: ground
- VCC: 5V DC
Wiring Diagram
Schematic Diagram
Sample Sketch
void setup(){
pinMode(5, OUTPUT);
}
void loop(){
digitalWrite(5, LOW);
delay(2000);
digitalWrite(5, HIGH);
delay(2000);
}
How to Test
The components to be used are:
- Microcontroller (any RobotDyn MCU or arduino-compatible controller)
- 1 channel 5V 30A relay module
- Pin connectors
- Breadboard
- USB cable
- AC lamp
- Connect the components based on the figure shown in the wiring diagram using pin connectors. VCC and COM pin is connected to the 5V power supply, GND pin is connected to the GND, IN pin is connected to the digital I/O pin. Pin number is based on the actual program code.
- After hardware connection, insert the sample sketch into the Arduino IDE.
- Using a USB cable, connect the ports from the microcontroller to the computer.
- Upload the program.
- Connect an AC-powered lamp to the AC power ground and to phase line via the relay using the NC connector Be very careful working with AC circuits as high AC power can injure or kill
- Power up the MCU and observe the lamp switching on and off for 2 seconds repeatedly