Ks0057 keyestudio Dual Relay Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
==keyestudio Dual Relay Module==
==keyestudio Dual Relay Module==
<br>[[File:ks0057.png|500px|frameless|thumb]]<br>
<br>[[File:ks0057.png|500px|frameless|thumb]]<br>


<br>
==Introduction==
==Introduction==
Arduino Relay Shield employs high quality SONGLE relay with two-channel input and output. It can be connected to 250V/10A AC element or 24V/10A DC element to the maximum, therefore, it can be used to control lights, motors and etc.<br> It is active at LOW.
Arduino Relay Shield employs high quality SONGLE relay with two-channel input and output. It can be connected to 250V/10A AC element or 24V/10A DC element to the maximum, therefore, it can be used to control lights, motors and etc. <br> It is active at LOW level.
The modularized design makes it easy to connect to Arduino expansion board. The output state of the relay is shown by a LED for the convenience of actual application.<br>
The modularized design makes it easy to connect to Arduino expansion board. The output state of the relay is shown by a LED for the convenience of  
actual application.<br>
 
<br>


==Specification==
==Specification==
* Control signal: TTL voltage
* Control signal: TTL voltage
* Active at High level
* Rated load:  
* Rated load:  
  10A 250VAC  
  10A 250VAC  
Line 16: Line 23:
* Max Switching Voltage: 250VAC  30VDC
* Max Switching Voltage: 250VAC  30VDC
* Contact actuation time: ﹤10ms
* Contact actuation time: ﹤10ms
* Definition of module pins:  
* '''Definition of module pins:'''
  i) Pin 1- Pin 2----Controlling end
  i) Pin 1- Pin 2----Controlling end
  ii) Power supply (VCC)
  ii) Power supply (VCC)
  iii) Ground (GND)
  iii) Ground (GND)
<br>


==Connection Diagram ==
==Connection Diagram ==
<br>[[File:ks0057-1.png|500px|frameless|thumb]]<br>
<br>[[File:ks0057-1.png|700px|frameless|thumb]]<br>
 
<br>


==Sample Code==
==Sample Code==
Line 46: Line 57:
   for (int i = BASE; i < BASE + NUM; i ++)  
   for (int i = BASE; i < BASE + NUM; i ++)  
   {
   {
     digitalWrite(i, HIGH);    // set digital I/O pin as ‘low’, i.e. turning on the relay gradually     
     digitalWrite(i, HIGH);    // set digital I/O pin as ‘HIGH’, i.e. turning on the relay gradually     
  delay(200);        //delay
  delay(200);        //delay
   }   
   }   
Line 52: Line 63:
</pre>
</pre>


<br>
==Resources ==
==Resources ==


'''Video'''
* '''Video'''<br>
http://video.keyestudio.com/ks0057/


http://www.keyestudio.com/wp/ks0057/
Download Code:
https://fs.keyestudio.com/KS0057


'''Datasheet'''
<br>


https://drive.google.com/open?id=1engte9dGbgDE_YEvTM-PxwE60OP7SzgS
==Buy from ==


==Buy from ==
*[https://www.keyestudio.com/keyestudio-2-channel-5v-relay-module-for-arduino-arm-pic-avr-dsp-electronic-p0240.html  '''Official Website''']
'''Official Website'''
 
*[https://www.aliexpress.com/item/Free-shipping-New-5V-2-channel-relay-module-black-for-arduino/32211017099.html  '''From AliExpress''']


http://www.keyestudio.com/keyestudio-dual-relay-module-for-arduino.html
*[https://www.amazon.com/dp/B07H867Q9J  '''Shop on amazon''' ]


'''From AliExpress'''
[https://www.aliexpress.com/item/Free-shipping-New-5V-2-channel-relay-module-black-for-arduino/32211017099.html]


[[category:Module]]
[[category:Module]]

Latest revision as of 14:29, 21 November 2022


keyestudio Dual Relay Module


thumb


Introduction

Arduino Relay Shield employs high quality SONGLE relay with two-channel input and output. It can be connected to 250V/10A AC element or 24V/10A DC element to the maximum, therefore, it can be used to control lights, motors and etc.
It is active at LOW level. The modularized design makes it easy to connect to Arduino expansion board. The output state of the relay is shown by a LED for the convenience of actual application.


Specification

  • Control signal: TTL voltage
  • Active at High level
  • Rated load:
10A 250VAC 
10A 125VAC
10A 30DC
10A 28VDC
  • Rated Through-current: 10A(NO) 5A(NC)
  • Max Switching Voltage: 250VAC 30VDC
  • Contact actuation time: ﹤10ms
  • Definition of module pins:
i) Pin 1- Pin 2----Controlling end
ii) Power supply (VCC)
iii) Ground (GND)


Connection Diagram


thumb


Sample Code

int BASE = 2 ;  // I/O pin connected to the first relay
int NUM = 2;   //total number of all relays

void setup()
{
   for (int i = BASE; i < BASE + NUM; i ++) 
   {
     pinMode(i, OUTPUT);   //set digital I/O pin as output
   }
}

void loop()
{
   for (int i = BASE; i < BASE + NUM; i ++) 
   {
     digitalWrite(i, LOW);    //set digital I/O pin as ‘low’, i.e. turning off the relay gradually   
  delay(200);        //delay
   }
   for (int i = BASE; i < BASE + NUM; i ++) 
   {
     digitalWrite(i, HIGH);    // set digital I/O pin as ‘HIGH’, i.e. turning on the relay gradually    
 delay(200);        //delay
   }  
} 


Resources

  • Video

http://video.keyestudio.com/ks0057/

Download Code: https://fs.keyestudio.com/KS0057


Buy from