X
  • Your position
  • Sign In or Join Free
Your position: Home / Sensors

Free shipping !Keyestudio Reed Switch Sensor Magnetron Module for Arduino

KS0038
Wholesale:
5+
$2.38
    Please select the information you wantX
Quantity:
-
+
(980 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews

12345

Introduction
 
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.
 
Specification
  • Working voltage: 5V
  • Simple structure
  • Long service life
  • Quick response speed
  • Strong anti-shock capacity and high reliability

 

Sample code:
int Led=13;//define LED interface
int buttonpin=3; //define magnetic reed switch interface
int val;//define digital variable val
void setup()
{
pinMode(Led,OUTPUT);//define LED as output interface
pinMode(buttonpin,INPUT);//define reed switch 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);
}
}
 
See product video: https://youtu.be/28YEHO3O3XQ

 

Average rating:
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login
Download
Kit for Arduino
Robot for Arduino
Raspberry Pi
Micro:Bit
Overseas Clearance Sale
Ship to EU
Ship to US
Ship to CA
New Arrivals
Main products
Controller board
Expansion board
Learning kit
Robot KIT
Easy-plug RJ11 series
Easy-plug Learning Kit
Easy-plug Sensor
Links:autopartsUPS