2 Channel 5V Relay Module MOD31 ,R12

Fr4,350

This is a 5V  2 channels relay interface board, and each channel needs a 15-20mA driver current. It is equiped with high-current relays that work under AC250V 10A or DC30V 10A.

In stock

SKU: CPN791 Category:

Description

Features

  • Powered from 5V
  • 2 channels
  • Can be used as Normally Open (NO) or Normally Closed (NC)
  • Optically isolated inputs

Getting started with the 2 Channel 5V Relay Module

In this guide you will set up the 2 channel relay module to control 2 LED’s .

Hardware required

  • Arduino Uno
  • 2 Channel 5V Relay Module
  • Jumper wires

Connecting the Hardware

Upload the sample code

#define RELAY1  2

#define RELAY2  3

void setup()

{

pinMode(RELAY1, OUTPUT);

pinMode(RELAY2, OUTPUT);

}

void loop()

{

digitalWrite(RELAY1,LOW);           // Turns ON Relays 1

delay(500);                         // Wait

digitalWrite(RELAY1,HIGH);          // Turns Relay Off

digitalWrite(RELAY2,LOW);           // Turns ON Relays 2

delay(500);                         // Wait

digitalWrite(RELAY2,HIGH);          // Turns Relay Off

}

Testing the circuit

When a low level is supplied to signal terminal of the 2-channel relay, the LED at the output terminal will light up. Otherwise, it will turn off. If a periodic high and low level is supplied to the signal terminal, you can see the LED will cycle between on and off.