5V 2-Channel Relay Module [S116]



https://www.youtube.com/watch?v=w-E8hqNFMdE


*GitHubhttps://github.com/rdiot/rdiot-s116.git


* Specs

Brand new and high quality.

This module can be used with Arduino Special Sensor Shield V4.0.

You can do some simple design about it.

This is 2-Channel 5V Relay Module for Arduino PIC ARM AVR DSP.

It can be able to control various appliances, and other equipments with large current.

Easy to be controlled by a lots of Microcontrollers.

Just use 5v input signal to control.

Equiped with high-current relay, AC250V 10A, AC150V 10A; DC30V 10A , DC28V 10A.

size:3.9cm x 5.1cm (1.54inch x 2.01inch).


* Contents

- Key Code

#define RELAY1  8                        

#define RELAY2  9                        


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

}



Posted by RDIoT

댓글을 달아 주세요