Ks0118 keyestudio EASY plug Reed Switch Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug Reed Switch Module ==
[[image:ks0118图.jpg|thumb|600px|right|Keyestudio EASY plug Reed Switch Module]]
<br>[[File:ks0118-1.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
Reed Switch is a special switch and a main component for reed relay and proximity switch. Reed switch is usually comprised of two soft magnetic material and metal reed contacts which will disconnect itself when there is no magnetic. <br>
This is a small device called a reed switch on the module. <br>
Reed switch can be used as sensor for count, limit and other purposes. For instance, a kind of bike-kilometer is constituted by sticking magnetic to the tire and mounting reed switch aside. We can mount reed switch on the door for alarming purpose or as switches.<br>
When the device is exposed to a magnetic field, the two ferrous materials inside the switch pull together and the switch closes. <br>
Note: this module needs to be used together with EASY plug control board.<br>
When the magnetic field is removed, the reeds separate and the switch opens. This makes for a great non-contact switch. <br>
You can mount reed switch on the door for alarming purpose or as switches.<br>
This sensor needs to be used together with EASY plug control board.<br>




==Specification==
<span style=color:red> '''Special Note:''' <br>
* Interface: Easy plug
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
 
<br>
 
==Features ==
* Connector: Easy plug
* Working voltage: DC 3.3V-5V
* Working voltage: DC 3.3V-5V
* Working current: ≥20mA
* Working current: ≥20mA
* Working temperature: -10℃—+50℃
* Working temperature: -10℃ to+50℃
* Detection distance: ≤10mm
* Detection distance: ≤10mm
* Size: 39*20mm
<br>
* Weight: 5g
 


==Technical Details==
* Dimensions: 39mm*20mm*18mm
* Weight: 4.6g


==Connection Diagram ==
<br>
<br>[[File:ks0118-2.png|500px|frameless|thumb]]<br>
==Connect It Up ==
Connect the EASY Plug Reed switch module and LED module to control board using RJ11 cables. Then connect the control board to your PC with a USB cable.
<br>[[File:干簧管灯.jpg|600px|frameless|thumb]]<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 8.png|600px|frameless|thumb]]<br>


==Sample Code==
<br>
<pre>
==What You Should See==
int Led=13;//define LED interface
If you put a magnetic bead close to the reed module, once the reed module detects the magnetic field, LED will turn on.
int buttonpin=8; //define reed switch sensor interface
<br>[[File:ks0397 8-1.png|600px|frameless|thumb]]<br>
int val;//define digital variable val
<br>[[File:ks0397 8-2.png|600px|frameless|thumb]]<br>
void setup()
{
pinMode(Led,OUTPUT);//define LED as output interface
pinMode(buttonpin,INPUT);//define reed switch sensor as output interface
}
void loop()
{
val=digitalRead(buttonpin);// read and assign the value of digital interface 3 to val
if(val==HIGH)//When a signal is detected by reed switch sensor, LED will flash
{
digitalWrite(Led,HIGH);
}
else
{
digitalWrite(Led,LOW);
}
}
</pre>


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


'''PDF'''
https://fs.keyestudio.com/KS0118


https://drive.google.com/open?id=1UAujQHnyqXk3Ie6ypzHywBe0B1U6xuPq
<br>


==Buy from ==
==Buy from ==
'''Official Website'''
*[https://www.keyestudio.com/new-keyestudio-rj11-easy-plug-reed-switch-module-for-arduino-starter-steam-p0073-p0073.html '''Official Website''' ]
 
*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-plug-Reed-Switch-Module-for-Arduino-Starter/1452162_32641713194.html?spm=2114.12010612.8148356.61.5169484ed3ISvq  Shop on aliexpress ]


http://www.keyestudio.com/keyestudio-easy-plug-reed-switch-module-for-arduino-starter.html


[[category:Module]]
[[category:EASY Plug]]

Latest revision as of 16:19, 7 January 2021

Keyestudio EASY plug Reed Switch Module

Introduction

This is a small device called a reed switch on the module.
When the device is exposed to a magnetic field, the two ferrous materials inside the switch pull together and the switch closes.
When the magnetic field is removed, the reeds separate and the switch opens. This makes for a great non-contact switch.
You can mount reed switch on the door for alarming purpose or as switches.
This sensor needs to be used together with EASY plug control board.


Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Features

  • Connector: Easy plug
  • Working voltage: DC 3.3V-5V
  • Working current: ≥20mA
  • Working temperature: -10℃ to+50℃
  • Detection distance: ≤10mm


Technical Details

  • Dimensions: 39mm*20mm*18mm
  • Weight: 4.6g


Connect It Up

Connect the EASY Plug Reed switch module and LED module to control board using RJ11 cables. 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

If you put a magnetic bead close to the reed module, once the reed module detects the magnetic field, LED will turn on.
thumb

thumb



Resources

https://fs.keyestudio.com/KS0118


Buy from