Ks0058 keyestudio 4-channel Relay Module: Difference between revisions

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


<br>
==Introduction==
==Introduction==
keyestudio Relay Shield employs high quality relay with four channels input and four channels 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>
keyestudio Relay Shield employs high quality relay with four channels input and output. <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>
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, etc.<br>
The modularized design makes it easy to connect to Arduino expansion board. <br>
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 17: Line 24:
* Contact actuation time: ﹤10ms
* Contact actuation time: ﹤10ms
* Definition of module pins:
* Definition of module pins:
i) Pin 1- Pin 4----Controlling end
  i) Pin 1- Pin 4----Controlling end   <br>
ii) Power supply (VCC)
  ii) Power supply (VCC)   <br>
iii) Ground (GND)
  iii) Ground (GND)   <br>
 


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


<br>
==Sample Code==
==Sample Code==
<pre>
<pre>
Line 52: Line 60:
</pre>
</pre>


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


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


http://www.keyestudio.com/wp/2016/05/ks0057-keyestudio-dual-relay-module/
* '''PDF and Code''' <br>
https://fs.keyestudio.com/KS0058


'''Datasheet'''
<br>


http://www.keyestudio.com/files/index/download/id/1463714404/
==Buy from ==


==Buy from ==
*[https://www.keyestudio.com/free-shipping-2016-new-keyestudio-4-channel-5v-relay-module-for-arduino-p0190.html  '''Official Website''']


http://www.keyestudio.com/keyestudio-4-channel-relay-module-for-arduino.html
*[https://www.amazon.com/Keyestudio-4-channel-Module-Arduino-raspberry/dp/B01A4ADL9C/  '''From Amazon''']<br>


https://www.amazon.com/Keyestudio-4-channel-Module-Arduino-raspberry/dp/B01A4ADL9C/ref=sr_1_1?s=pc&ie=UTF8&qid=1487054582&sr=8-1&keywords=keyestudio+4-channel+Relay+Module+for+Arduino
*[https://www.aliexpress.com/store/product/Free-shipping-5V-4-relay-module-with-optocoupler-protection-blue-for-arduino/1452162_2046049237.html?spm=2114.12010615.8148356.7.51391374NjkFQS  '''Aliexpress store''']




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

Latest revision as of 10:13, 8 January 2021


keyestudio 4-channel Relay Module


thumb


Introduction

keyestudio Relay Shield employs high quality relay with four channels 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, etc.
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 4----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 = 4;   //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 ‘low’, i.e. turning on the relay gradually    
delay(200);        //delay
  }  
}


Resources

  • Video

http://video.keyestudio.com/ks0058/

  • PDF and Code

https://fs.keyestudio.com/KS0058


Buy from