الأكثر مبيعاً

ThinkRobotics

وحدة مفتاح الاهتزاز KY-002

SKU: ELC1102

₹ 69.99 ₹ 89.99

غير متوفر

📦 Min order 1

Enter your email or your WhatsApp number.

تحدث معنا عبر واتساب نحن نرد بسرعة! اتصل بنا
وحدة مفتاح الاهتزاز KY-002₹ 69.99
Ask AI about this product

تتيح وحدة مفتاح الاهتزاز KY-002 من Keyes والمخصصة لمنصة Arduino اكتشاف الصدمات والاهتزازات. تتكون وحدة مفتاح الاهتزاز KY-002 من نابض اهتزاز موصل ومقاومة بقيمة 10 كيلو أوم، حيث تستجيب للصدمات والاهتزازات عن طريق إغلاق الدائرة الكهربائية.

المواصفات:

  • جهد التشغيل: 5 فولت
  • الأبعاد: 18.5 مم × 15 مم [0.728 بوصة × 0.591 بوصة]

مخطط التوصيل

قم بتوصيل خط الطاقة (الأوسط) والأرضي (-) بـ +5 و GND على التوالي. قم بتوصيل الإشارة (S) بالطرف رقم 3 على لوحة Arduino.

كود برمجي تجريبي

ينتج كود Arduino التالي وميضاً عند حدوث صدمة. سيومض الطرف 13 (LED) على لوحة Arduino عندما يكتشف KY-002 حركة ما. يتم استخدام الطرف 3 كمدخل من وحدة KY-002.

int Led = 13; // تحديد طرف مصباح LED
int shock = 3 // تحديد طرف المستشعر 
int val; // تعريف متغير رقمي val 

void setup () {
	pinMode (Led, OUTPUT); // طرف LED كمخرج  
	pinMode (shock, INPUT); // مدخل من مستشعر KY-002
} 

void loop () {
	val = digitalRead (shock); // قراءة القيمة من KY-002
	if (val == HIGH ) {// عندما يكتشف المستشعر صدمة، يومض مصباح LED  
		digitalWrite(Led, LOW);
	} else {
		digitalWrite (Led, HIGH);
	}
}

 

What does this vibration switch module do?
It detects shock and vibration and closes the circuit when movement is detected, operating from 5V.
How do I wire it to an Arduino?
Connect the middle pin to +5V, the ground pin to GND, and the signal pin S to Arduino input pin 3.
What are the physical specifications of the module?
The module measures 18.5 mm by 15 mm and includes a conductive vibration spring and a 10k resistor.
Is there example code available for testing?
Yes, an Arduino sketch is provided that reads the sensor on pin 3 and can indicate movement using the Arduino, for example via pin 13.
Who makes this module and what should I know about using it?
Brand is ThinkRobotics. It is designed for 5V microcontroller projects and uses a digital signal on the S pin when movement is detected; follow the connection diagram to avoid miswiring.
Welcome to the discussion thread for وحدة مفتاح الاهتزاز KY-002
Feel free to ask questions, share tips or report issues.
Add Post

For more discussion Click Here

يرجى تعبئة النموذج أدناه وسيتواصل معك فريقنا لتزويدك بأسعار الجملة.

الوصف
Ask AI about this product

تتيح وحدة مفتاح الاهتزاز KY-002 من Keyes والمخصصة لمنصة Arduino اكتشاف الصدمات والاهتزازات. تتكون وحدة مفتاح الاهتزاز KY-002 من نابض اهتزاز موصل ومقاومة بقيمة 10 كيلو أوم، حيث تستجيب للصدمات والاهتزازات عن طريق إغلاق الدائرة الكهربائية.

المواصفات:

  • جهد التشغيل: 5 فولت
  • الأبعاد: 18.5 مم × 15 مم [0.728 بوصة × 0.591 بوصة]

مخطط التوصيل

قم بتوصيل خط الطاقة (الأوسط) والأرضي (-) بـ +5 و GND على التوالي. قم بتوصيل الإشارة (S) بالطرف رقم 3 على لوحة Arduino.

كود برمجي تجريبي

ينتج كود Arduino التالي وميضاً عند حدوث صدمة. سيومض الطرف 13 (LED) على لوحة Arduino عندما يكتشف KY-002 حركة ما. يتم استخدام الطرف 3 كمدخل من وحدة KY-002.

int Led = 13; // تحديد طرف مصباح LED
int shock = 3 // تحديد طرف المستشعر 
int val; // تعريف متغير رقمي val 

void setup () {
	pinMode (Led, OUTPUT); // طرف LED كمخرج  
	pinMode (shock, INPUT); // مدخل من مستشعر KY-002
} 

void loop () {
	val = digitalRead (shock); // قراءة القيمة من KY-002
	if (val == HIGH ) {// عندما يكتشف المستشعر صدمة، يومض مصباح LED  
		digitalWrite(Led, LOW);
	} else {
		digitalWrite (Led, HIGH);
	}
}

 

الأسئلة الشائعة
What does this vibration switch module do?
It detects shock and vibration and closes the circuit when movement is detected, operating from 5V.
How do I wire it to an Arduino?
Connect the middle pin to +5V, the ground pin to GND, and the signal pin S to Arduino input pin 3.
What are the physical specifications of the module?
The module measures 18.5 mm by 15 mm and includes a conductive vibration spring and a 10k resistor.
Is there example code available for testing?
Yes, an Arduino sketch is provided that reads the sensor on pin 3 and can indicate movement using the Arduino, for example via pin 13.
Who makes this module and what should I know about using it?
Brand is ThinkRobotics. It is designed for 5V microcontroller projects and uses a digital signal on the S pin when movement is detected; follow the connection diagram to avoid miswiring.
Reviews
Forum
Welcome to the discussion thread for وحدة مفتاح الاهتزاز KY-002
Feel free to ask questions, share tips or report issues.
Add Post

For more discussion Click Here

منتجات مشابهة
طلب بالجملة

يرجى تعبئة النموذج أدناه وسيتواصل معك فريقنا لتزويدك بأسعار الجملة.

متطلبات مخصصة؟

قابل فريقنا

أداة جدولة المواعيد