INTRODUCTION TO
RELAY MODULE
BY RAHUL JAISWAL
INTRODUCTION
• The relay module is an electrically operated switch that allows you to turn on
or off a circuit using voltage and/or current much higher than a
microcontroller could handle.
• There is no connection between the low voltage circuit operated by the
microcontroller and the high power circuit.
• The relay protects each circuit from each other.
• The each channel in the module has three connections named NC, COM, and
NO.
SPECIFICATIONS
• On-board EL817 photoelectric coupler with photoelectric isolating
• On-board 5V, 10A / 250VAC, 10A / 30VDC relays.
• Relay long life can absorb 100000 times in a row.
• Module with diode current protection, short response time.
• PCB Size: 45.8mm x 32.4mm
PIN CONFIGURATION
• VCC: 5V DC
• IN1: high/low output
• IN2: high/low output
• GND: ground
SAMPLE SKETCH
void setup() void loop()
{ {
pinMode(5, OUTPUT); digitalWrite(5, LOW);
pinMode(6, OUTPUT); digitalWrite(6, HIGH);
} delay(4000);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);
delay(4000);
}
THANK
YOU