Ks0118 keyestudio EASY plug Reed Switch Module: Difference between revisions
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) |
||
Line 40: | Line 40: | ||
<br> | <br> | ||
==Resources == | ==Resources == | ||
'''Download the | '''Download the Arduino Datasheet:'''<br> | ||
https://drive.google.com/open?id=1UAujQHnyqXk3Ie6ypzHywBe0B1U6xuPq | https://drive.google.com/open?id=1UAujQHnyqXk3Ie6ypzHywBe0B1U6xuPq | ||
Revision as of 10:10, 7 May 2019
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.
Note: this sensor needs to be used together with EASY plug control board.
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.
Upload the Code
Below is an example code. Open or drag below code to Mixly Blocks and upload.
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.
Resources
Download the Arduino Datasheet:
https://drive.google.com/open?id=1UAujQHnyqXk3Ie6ypzHywBe0B1U6xuPq
Download the Mixly Code and PDF:
https://drive.google.com/open?id=1q8hmaEQtx4RU4N7lujDQw8Oi8mthw94J