Mini Reed Switch Module (KY-021)

Mini Reed Switch Module (KY-021)
Mini Reed Switch Module (KY-021)Mini Reed Switch Module (KY-021)Mini Reed Switch Module (KY-021)Mini Reed Switch Module (KY-021)Mini Reed Switch Module (KY-021)Mini Reed Switch Module (KY-021)
รหัสสินค้า AS10232
หมวดหมู่ Magnet/Magnetic Switch
ราคา 30.00 บาท
สถานะสินค้า พร้อมส่ง
จำนวน
ชิ้น
หยิบลงตะกร้า
หนังสือรับรองบริษัท
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay
Reed switch ปกติหน้าสัมผัสจะไม่แตะกัน (ไม่นำไฟฟ้า) แต่เมื่อมีแม่เหล็กมาอยู่ใกล้ ๆ ก็จะเหนี่ยวนำให้แผ่นสวิตช์ให้ติดกัน เป็นสถานะนำไฟฟ้า

Description:

Arduino magnetic reed switch module Keyes KY-021. A 
reed switch is a magnetic sensor that is normally open and gets closed when exposed to a magnetic field.

Specification:

The KY-021 Mini Magnetic Reed Switch Module consists of a 10kΩ resistor and a small reed switch actuated by a magnetic field, commonly used in mechanical systems as proximity sensors. Compatible with popular electronic platforms like Arduino, Raspberry Pi and ESP8266.

Operating Voltage 3.3V to 5v
Output Type Digital
Wiring:

Connect the module's Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 2 on the Arduino.

KY-021 Arduino
S 2
middle +5V
- GND

KY-021 Arduino Connection diagram

KY-021 Arduino Example Code

The following sketch will turn on the pin 13 LED on the Arduino when the module detects a magnetic field. Place a magnet near the KY-021 to activate the reel switch.

int led = 13; // LED pin
int reelSwitch = 2; // magnetic sensor pin
int switchState; // variable to store reel switch value

void setup()
{
pinMode (led, OUTPUT);
pinMode (reelSwitch, INPUT);
}

void loop()
{
switchState = digitalRead(reelSwitch); // read the value of digital interface 2 and assign it to switchState

if (switchState == HIGH) // when the magnetic sensor detect a signal, LED is flashing
 {
digitalWrite(led, HIGH);
}
else
{
digitalWrite(led, LOW);
}
}
 

วิธีการชำระเงิน

ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB

กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ

 

ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ

https://www.arduitronics.com/informpayment

 

บมจ. ธนาคารกสิกรไทย สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 สะสมทรัพย์
ธนาคารทหารไทยธนชาต จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 กระแสรายวัน

เพิ่มเพื่อน

@rfm0967y

ติดต่อสอบถาม

เพิ่มเพื่อน

CATEGORY

Sensors / Modules [1702]

CONTACT US

มือถือ 0887823467 แฟกซ์ 02-0153201

Join เป็นสมาชิกร้านค้า

ร้านArduitronics
ร้านArduitronics
/www.arduitronics.com/
Join เป็นสมาชิกร้าน
2134
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ

STATISTICS

หน้าที่เข้าชม15,398,981 ครั้ง
ผู้ชมทั้งหมด5,902,060 ครั้ง
เปิดร้าน21 พ.ค. 2556
ร้านค้าอัพเดท20 ก.ย. 2568

MEMBER

พูดคุย-สอบถาม