Ks0011 keyestudio 5V Relay Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==5V Relay Module==
<br>[[File:Ks0011.png|500px|frameless|thumb]]<br>


<br>
==Introduction==
==Introduction==
This single relay module can be used in interactive projects. This module uses SONGLE 5v high-quality relay. It can also be used to control lighting, electrical and other equipment. The modular design makes it easy to expand with the Arduino board (not included). The Relay output is by a light-emitting diode. It can be controlled through digital IO port, such as solenoid valves, lamps, motors and other high current or high voltage devices.<br>
This single relay module can be used in interactive projects. It is active HIGH level. This module uses SONGLE 5v high-quality relay. <br>
 
It can also be used to control lighting, electrical and other equipment. <br>
The modular design makes it easy to expand with the Arduino board (not included). The relay output is by a light-emitting diode. It can be controlled through digital IO port, such as solenoid valves, lamps, motors and other high current or high voltage devices.
<br>[[File:Ks0011.png|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
*Type: Digital
*Type: Digital
Line 15: Line 17:
*Maximum switching power: AC1200VA DC240W (NO) AC625VA DC120W (NC)
*Maximum switching power: AC1200VA DC240W (NO) AC625VA DC120W (NC)
*Contact action time: 10ms
*Contact action time: 10ms
*Size: 40*28mm
*Weight: 15g


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


==Connection Diagram ==
Firstly you need to prepare the following parts by yourself before testing.
<br>[[File:ks0068 36-2.png|500px|frameless|thumb]]<br>
* Arduino Board*1
* Single relay module*1
* LED module *1
* USB Cable*1
* Jumper Wire*8


==Sample Code==
<br>
<pre>
== Sample Code ==
int Relay = 8;
Copy and paste the code below to Arduino software.
  void setup()
************************************************************* int Relay = 8;
  void setup()
{
{
  pinMode(13, OUTPUT);         //Set Pin13 as output
  pinMode(13, OUTPUT);         //Set Pin13 as output
  digitalWrite(13, HIGH);     //Set Pin13 High
  digitalWrite(13, HIGH);     //Set Pin13 High
  pinMode(Relay, OUTPUT);     //Set Pin3 as output
  pinMode(Relay, OUTPUT);     //Set Pin3 as output
}
}
void loop()
void loop()
{
{
          digitalWrite(Relay, HIGH);   //Turn off relay
          digitalWrite(Relay, HIGH);   //Turn off relay
          delay(2000);
          delay(2000);
          digitalWrite(Relay, LOW);   //Turn on relay
          digitalWrite(Relay, LOW);    //Turn on relay
          delay(2000);
          delay(2000);
}
}
</pre>
*************************************************************
 
<br>
== Test Result ==
This relay module is active HIGH level. <br>
Wire it up well, powered up, then upload the above code to the board.<br>
You will see the relay is turned on(ON connected, NC disconnected)for two seconds, then turned off for two seconds(NC closed,ON disconnected), repeatedly and circularly.<br>
When the relay is turned on, external LED is on. If relay is turned off, external LED is off.
 


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



Revision as of 11:31, 12 April 2019


Introduction

This single relay module can be used in interactive projects. It is active HIGH level. This module uses SONGLE 5v high-quality relay.
It can also be used to control lighting, electrical and other equipment.
The modular design makes it easy to expand with the Arduino board (not included). The relay output is by a light-emitting diode. It can be controlled through digital IO port, such as solenoid valves, lamps, motors and other high current or high voltage devices.
thumb


Specification

  • 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


Connection Diagram


thumb

Firstly you need to prepare the following parts by yourself before testing.

  • Arduino Board*1
  • Single relay module*1
  • LED module *1
  • USB Cable*1
  • Jumper Wire*8


Sample Code

Copy and paste the code below to Arduino software.

                                                                                                                          •  int Relay = 8;

  void setup() {   pinMode(13, OUTPUT);         //Set Pin13 as output   digitalWrite(13, HIGH);     //Set Pin13 High   pinMode(Relay, OUTPUT);     //Set Pin3 as output } void loop() {           digitalWrite(Relay, HIGH);   //Turn off relay           delay(2000);           digitalWrite(Relay, LOW);    //Turn on relay           delay(2000); }


Test Result

This relay module is active HIGH level.
Wire it up well, powered up, then upload the above code to the board.
You will see the relay is turned on(ON connected, NC disconnected)for two seconds, then turned off for two seconds(NC closed,ON disconnected), repeatedly and circularly.
When the relay is turned on, external LED is on. If relay is turned off, external LED is off.



Resources

Video
http://www.keyestudio.com/wp/ks0011/

Datasheet

https://drive.google.com/open?id=1JQortZbi_st6-aQAfg_mQLdbTYdTNAXt

Buy from

Website:
http://www.keyestudio.com/keyestudio-single-relay-module-compatible-with-arduino.html