Ks0127 keyestudio EASY plug Single Relay Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:
* Weight: 17.4g
* Weight: 17.4g
<br>
<br>
 
<br>
==Connect It Up ==
==Connect It Up ==
Connect the EASY Plug single relay module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Connect the EASY Plug single relay module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Line 31: Line 31:


<br>
<br>
==Upload the Code==
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0397 5.png|500px|frameless|thumb]]<br>


==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.   
<pre>
int Relay = 8;
  void setup()
{
  pinMode(Relay, OUTPUT);    //Set Pin3 as output
}
void loop()
{
  digitalWrite(Relay, HIGH);  //Turn on relay
  delay(1000);
  digitalWrite(Relay, LOW);  //Turn on relay
  delay(1000);               
}
</pre>
<br>
<br>
==What You Should See==
==What You Should See==
<br>[[File:ks0397 5-1.png|500px|frameless|thumb]]<br>
<br>
Done uploading the code, you should be able to hear the relay contacts click. When the relay is off, the COM (common) terminal block will be connected to the NC (Normally Closed) terminal block.<br>
Done uploading the code, you should be able to hear the relay contacts click. When the relay is off, the COM (common) terminal block will be connected to the NC (Normally Closed) terminal block.<br>
When the relay is on, the COM (common) terminal block will be connected to the NO (Normally Open) terminal block.
When the relay is on, the COM (common) terminal block will be connected to the NO (Normally Open) terminal block.
<br>[[File:ks0127 Result.jpg|500px|frameless|thumb]]<br>
<br>[[File:ks0127 Result.jpg|500px|frameless|thumb]]<br>
<br>
<br>


==Resources ==
==Resources ==
'''Download the PDF:'''<br>
'''Download the Arduino Datasheet:'''<br>
https://drive.google.com/open?id=10Rqkgo0IfpkSBjd4xDaCyRG-npQiFv4v
https://drive.google.com/open?id=10Rqkgo0IfpkSBjd4xDaCyRG-npQiFv4v
'''Download the Mixly Code and PDF:'''<br>
https://drive.google.com/open?id=1nL5wQxCI-SG0tCG9qPCgAoeENzb2O1yo


<br>
<br>


==Buy from ==
==Buy from ==
*'''Official Website''' http://www.keyestudio.com/ks0127.html
*[https://www.keyestudio.com/new-keyestudio-easy-plug-single-relay-one-channel-module-for-arduino-steam-p0069.html   '''Official Website''' ]


*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-Single-Relay-Module-for-arduino/1452162_32638920199.html?spm=2114.12010612.8148356.36.41484ba7sOdIoI  Shop on aliexpress ]
*[https://www.aliexpress.com/store/product/2016-New-Keyestudio-EASY-plug-Single-Relay-Module-for-arduino/1452162_32638920199.html?spm=2114.12010612.8148356.36.41484ba7sOdIoI  Shop on aliexpress ]

Revision as of 13:11, 7 May 2019

Keyestudio EASY plug Single Relay Module

Introduction

This EASY Plug relay module integrates a high-quality relay. A relay is basically an electrically controlled mechanical switch.
It is one of the most important controlled elements, which is widely used to control the lighting, communications, remote sensing, electrical and other equipment.
The Relay output state by a light-emitting diode, observing the relay ON and OFF status.
It can be controlled through the digital IO port, such as lamps, motors and other high current or high voltage devices.
Note: this module needs to be used together with EASY plug control board.


Specification

  • Connector: Easy plug
  • Type: Digital
  • Rated current: 10A (NO) 5A (NC)
  • Maximum switching voltage: 150VAC 24VDC
  • Digital interface
  • Control signal: TTL level
  • Rated load: 8A 150VAC (NO) 10A 24VDC (NO); 5A 250VAC (NO/NC) 5A 24VDC (NO/NC)
  • Maximum switching power: AC1200VA DC240W (NO); AC625VA DC120W (NC)
  • Contact action time: 10ms


Technical Details

  • Dimensions: 47mm*28mm*19mm
  • Weight: 17.4g



Connect It Up

Connect the EASY Plug single relay module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See


thumb

Done uploading the code, you should be able to hear the relay contacts click. When the relay is off, the COM (common) terminal block will be connected to the NC (Normally Closed) terminal block.
When the relay is on, the COM (common) terminal block will be connected to the NO (Normally Open) terminal block.
thumb


Resources

Download the Arduino Datasheet:
https://drive.google.com/open?id=10Rqkgo0IfpkSBjd4xDaCyRG-npQiFv4v

Download the Mixly Code and PDF:
https://drive.google.com/open?id=1nL5wQxCI-SG0tCG9qPCgAoeENzb2O1yo


Buy from