Ks0038 keyestudio Reed Switch Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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. In addition, some reed switches are also equipped with another reed acting as the third normally-closed contact. These reed contacts are encapsulated in a glass tube full of inert gases(such as nitrogen and helium) or in a vacuum glass tube. The reeds encapsulated in the glass tube are placed in parallel with ends overlapped. Certain amount of space or mutual contaction will be reserved so as to constitute the normally-open or normally-closed contacts of the switch.
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 materials and metal reed contacts, which will disconnect itself when there is no magnetic. <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.
In addition, some reed switches are also equipped with another reed acting as the third normally-closed contact. These reed contacts are encapsulated in a glass tube full of inert gases (such as nitrogen and helium) or in a vacuum glass tube.  
 
The reeds encapsulated in the glass tube are placed in parallel with ends overlapped. Certain amount of space or mutual contact will be reserved so as to constitute the normally-open or normally-closed contacts of the switch.<br>
Reed switch has been widely applied in household appliances, cars, communication, industry, healthcare and security areas. Furthermore, it can also be applied to other sensors and electric devices such as liquidometer, door magnet, reed relay, oil level sensor and proximity sensor(magnetic sensor). It can be used under high-risk environment. 
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>
Reed switch has been widely applied in household appliances, cars, communication, industry, healthcare and security areas.  
Furthermore, it can also be applied to other sensors and electric devices such as liquidometer, door magnet, reed relay, oil level sensor and proximity sensor (magnetic sensor). It can be used under high-risk environment.
<br>[[File:Ks0038.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0038.png|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
*Working Voltage: DC 3.3V-5V
*Working Voltage: DC 3.3V-5V
Line 13: Line 19:
*Detection Distance: ≤10mm
*Detection Distance: ≤10mm
*IO Interface: 3 wire interface (-/+/S)
*IO Interface: 3 wire interface (-/+/S)
*Size: 30*20mm
*Weight: 3g


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


<br>[[File:382.png|500px|frameless|thumb]]<br>
<br>
 
==Sample Code ==
==Sample Code ==
Copy and paste the below code to Arduino software. <br>


<pre>
<pre>
Line 29: Line 35:
{
{
pinMode(Led,OUTPUT);//define LED as output interface
pinMode(Led,OUTPUT);//define LED as output interface
pinMode(buttonpin,INPUT);//define magnetic ring sensor as output interface }
pinMode(buttonpin,INPUT);//define magnetic ring sensor as output interface
}
void loop()
void loop()
{
{
Line 42: Line 49:
{
{
digitalWrite(Led,LOW);
digitalWrite(Led,LOW);
}</pre>
}
}
</pre>
 
<br>
== Result ==
Done wiring and powered up, upload well the code to the board. You can see the D13 led on UNO board is on. <br>
Then we put some magnetic balls close to the sensor. When the sensor detects the magnetic field signal, the led on the sensor will be turned on but D13 led will be turned off. <br>
<br>[[File:KS0349 17-4.png|800px|frameless|thumb]]<br>


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


'''Video'''
* '''Video'''<br>
 
http://video.keyestudio.com/ks0038/
http://www.keyestudio.com/wp/ks0038-reed-switch/


'''PDF'''
* '''PDF and Code'''<br>
https://fs.keyestudio.com/KS0038


https://drive.google.com/open?id=183_W0G2-LGWFY0TZvbxyw43lqDSTFFS3
<br>


==Buy from ==
==Buy from ==
'''Official Website'''


http://www.keyestudio.com/keyestudio-reed-switch-module-for-arduino.html
*[https://www.keyestudio.com/free-shipping-keyestudio-reed-switch-sensor-magnetron-module-for-arduino-p0156.html   '''Official Website''']


*[https://www.aliexpress.com/store/product/Free-shipping-KEYES-Small-circular-module-for-arduino/1452162_2051706883.html?spm=2114.12010612.8148356.49.752b1414Yd7Mcl    '''Shop on aliexpress''']






[[Category: Sensor]]
[[Category: Module]]

Latest revision as of 11:25, 8 January 2021


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 materials and metal reed contacts, which will disconnect itself when there is no magnetic.
In addition, some reed switches are also equipped with another reed acting as the third normally-closed contact. These reed contacts are encapsulated in a glass tube full of inert gases (such as nitrogen and helium) or in a vacuum glass tube. The reeds encapsulated in the glass tube are placed in parallel with ends overlapped. Certain amount of space or mutual contact will be reserved so as to constitute the normally-open or normally-closed contacts of the switch.
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.
Reed switch has been widely applied in household appliances, cars, communication, industry, healthcare and security areas. Furthermore, it can also be applied to other sensors and electric devices such as liquidometer, door magnet, reed relay, oil level sensor and proximity sensor (magnetic sensor). It can be used under high-risk environment.
thumb


Specification

  • Working Voltage: DC 3.3V-5V
  • Working Current: ≥20mA
  • Working Temperature: -10℃—+50℃
  • Detection Distance: ≤10mm
  • IO Interface: 3 wire interface (-/+/S)


Connection Diagram


thumb


Sample Code

Copy and paste the below code to Arduino software.

int Led=13;//define LED interface
int buttonpin=3; //define magnetic ring sensor interface
int val;//define digital variable val
void setup()
{
pinMode(Led,OUTPUT);//define LED as output interface
pinMode(buttonpin,INPUT);//define magnetic ring 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 magnetic ring sensor, LED will flash
{
digitalWrite(Led,HIGH);
}
else
{
digitalWrite(Led,LOW);
}
}


Result

Done wiring and powered up, upload well the code to the board. You can see the D13 led on UNO board is on.
Then we put some magnetic balls close to the sensor. When the sensor detects the magnetic field signal, the led on the sensor will be turned on but D13 led will be turned off.

thumb


Resources

  • Video

http://video.keyestudio.com/ks0038/

  • PDF and Code

https://fs.keyestudio.com/KS0038


Buy from