8 Channel Solid State Relay Module [S168]




https://www.youtube.com/watch?v=zitAS2YxezE



* Specs

Description:

5V Omron solid state relays 240V 2A, output with resistive fuse 240V 2A

Size: 103*53*21mm/4.05*2.08*0.82"

The input power supply: 5V DC (160mA)

The input control signal voltage:

(0-2.5V low state relays ON)

(3.3-5V state high relay OFF)

2.54cm pin and blue KF301 terminals connected to the control line is more convenient

Module interface:

Input section:

DC +: positive power supply (relay voltage power supply)

DC-: connect power negative

CH1: 1 signal to trigger the end of the relay module (low level trigger valid)

CH2: 2-way relay module signal triggering end (low level trigger valid)

CH3: 3 relay module signal triggering end (low level trigger valid)

CH4: 4-channel relay module signal triggering end (low level trigger valid)

CH5: 5-way relay module signal triggering end (low level trigger valid)

CH6: 6-way relay module signal triggering end (low level trigger valid)

CH7: 7-way relay module signal triggering end (low level trigger valid)

CH8: 8-channel relay module signal triggering end (low level trigger valid)

Voltage version   quiescent current   working current    trigger voltage     trigger current

   1-way 5V               0mA                  13.8mA                 0-2.5V                2mA

   2-way 5V               0mA                  26.8mA                 0-2.5V                2mA

   3-way 5V               0mA                    37mA                 0-2.5V                 2mA

   4-way 5V               0mA                    48mA                 0-2.5V                 2mA

   5-way 5V               0mA                    59mA                 0-2.5V                 2mA

   6-way 5V               0mA                    70mA                 0-2.5V                 2mA

   7-way 5V               0mA                    81mA                 0-2.5V                 2mA

   8-way 5V               0mA                    90mA                 0-2.5V                 2mA


* Contents

- Key Code

#define RELAY1  9

#define RELAY2  8

#define RELAY3  7

#define RELAY4  6

#define RELAY5  5

#define RELAY6  4

#define RELAY7  3

#define RELAY8  2


void setup()

{    

  pinMode(RELAY1, OUTPUT);       

  pinMode(RELAY2, OUTPUT);

  pinMode(RELAY3, OUTPUT);

  pinMode(RELAY4, OUTPUT);

  pinMode(RELAY5, OUTPUT);

  pinMode(RELAY6, OUTPUT);

  pinMode(RELAY7, OUTPUT);

  pinMode(RELAY8, OUTPUT);


  digitalWrite(RELAY1,LOW);           

  digitalWrite(RELAY2,LOW);           

  digitalWrite(RELAY3,LOW);           

  digitalWrite(RELAY4,LOW);           

  digitalWrite(RELAY5,LOW);           

  digitalWrite(RELAY6,LOW);           

  digitalWrite(RELAY7,LOW);           

  digitalWrite(RELAY8,LOW);           

  delay(2000);


  digitalWrite(RELAY1,HIGH);           

  digitalWrite(RELAY2,HIGH);           

  digitalWrite(RELAY3,HIGH);           

  digitalWrite(RELAY4,HIGH);           

  digitalWrite(RELAY5,HIGH);           

  digitalWrite(RELAY6,HIGH);           

  digitalWrite(RELAY7,HIGH);           

  digitalWrite(RELAY8,HIGH);           

}


void loop()

{

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

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


   delay(1000);                        // Wait 1 seconds

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

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

   delay(1000); // Wait 1 seconds

}

Posted by RDIoT
|