Ks0110 keyestudio EASY plug Hall Magnetic Sensor: Difference between revisions
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
The detection range and the strength of magnetic field are proportional. <br> | The detection range and the strength of magnetic field are proportional. <br> | ||
It is useful for non-contact/waterproof type switches, position sensors, rotary/shaft encoders.<br> | It is useful for non-contact/waterproof type switches, position sensors, rotary/shaft encoders.<br> | ||
This sensor needs to be used together with EASY plug control board. </span><br> | |||
<span style=color:red> '''Special Note:''' <br> | |||
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> | <br> | ||
==Features== | ==Features== | ||
* Connector: Easy plug | * Connector: Easy plug | ||
Line 25: | Line 28: | ||
==Connect It Up== | ==Connect It Up== | ||
Connect the EASY Plug Hall Magnetic sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable. | Connect the EASY Plug Hall Magnetic sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable. | ||
<br>[[File: | <br>[[File:霍尔灯.jpg|500px|frameless|thumb]]<br> | ||
<br> | <br> | ||
==Upload the Code== | ==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> | Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly Mixly Blocks] and upload. <br> | ||
Line 48: | Line 52: | ||
==Extension Experiment== | ==Extension Experiment== | ||
<span style="color: brown>'''Adding 4-digit LED Display'''</span><br> | <span style="color: brown><big>'''Adding 4-digit LED Display'''</big></span><br> | ||
'''Hookup Guide'''<br> | '''Hookup Guide'''<br> | ||
Line 69: | Line 73: | ||
<br> | <br> | ||
==Resources == | ==Resources == | ||
https://fs.keyestudio.com/KS0110 | |||
https:// | |||
<br> | |||
==Buy from == | ==Buy from == | ||
*[https://www.keyestudio.com/keyestudio-rj11-easy-plug-hall-magnetic-sensor-module-for-arduino-steam-p0083-p0083.html '''Official Website''' ] | *[https://www.keyestudio.com/keyestudio-rj11-easy-plug-hall-magnetic-sensor-module-for-arduino-steam-p0083-p0083.html '''Official Website''' ] |
Latest revision as of 16:05, 7 January 2021
Introduction
The Hall sensor is based on Hall Effect. It can detect whether there is a magnetic object nearby or not. And it correctly tells you through digital output.
This sensor uses the SFE Reed Switch - Magnetic Field Sensor. It can sense the magnetic materials within a detection range up to 75px.
The detection range and the strength of magnetic field are proportional.
It is useful for non-contact/waterproof type switches, position sensors, rotary/shaft encoders.
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
- Sensing magnetic materials
- Detection range: up to 75px
- Output: Digital ON/OFF
- Detection range and magnetic field strength are proportional
Technical Details
- Dimensions: 41mm*20mm*18mm
- Weight: 4.4g
Connect It Up
Connect the EASY Plug Hall Magnetic sensor to control board using an RJ11 cable. 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
When magnetic beads are approaching to the sensor, the LED will be turned on. Otherwise, the LED is off.
Little Knowledge:
If you want to change another way, that is, once magnetic field is detected by sensor, LED is turned off; if no detecting magnetic field, LED is on.
Just need to change the LED state ON or OFF in the code, shown below.
Extension Experiment
Adding 4-digit LED Display
Hookup Guide
Connect the EASY Plug hall sensor, 4-digit LED display and red LED module to control board using RJ11 cables.
Upload the Code
Below is an example code.
What You Should See
When magnetic beads are approaching to the sensor, the LED will be turned on. Otherwise, the LED is off.
How many times the magnet approaches to the sensor? You should be able to see the result showed on the 4-digit LED display or serial monitor.
Resources
https://fs.keyestudio.com/KS0110