รหัสสินค้า | SKU-00487 |
หมวดหมู่ | เซนเซอร์ตรวจจับความเคลื่อนไหว |
ราคา | 65.00 บาท |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 11 ก.ย. 2565 |
อัพเดทล่าสุด | 11 ก.ย. 2565 |
คงเหลือ | ไม่จำกัด |
จำนวน | ชิ้น |
โมดูลสวิตช์ Tilt switch
โมดูลสวิตช์ Tilt Switch ตรวจจับความสั่น การเคลื่อนไหว ให้สัญญาณเป็นแบบ Digital ค่า 0 - 1 สามารถปรับความไวได้ที่ตัวต้านทานปรับค่าได้บนบอร์ด
ข้อมูล โมดูลสวิตช์ Tilt switch
Purposes:
for a variety of triggering shock, reported theft alarm, intelligent car, electronic building blocks.
Please note that this module triggers a very short time upon sensing a big shock, not enough to drive the relay, the data show that some people can be connected directly to the relay module, the practical application ineffective.
Module Features:
Module wiring instructions:
Module Description:
________________________________________________________________________________________________
ตัวอย่างการใช้งาน
เซนเซอร์ -> Arduino
+5V -> 5V
Gnd -> Gnd
Output -> A0
________________________________________________________________________________________________
ตัวอย่าง Code
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// print out the value you read:
Serial.println(sensorValue);
delay(1000); // delay in between reads for stability
}
หน้าที่เข้าชม | 114,268 ครั้ง |
ผู้ชมทั้งหมด | 51,030 ครั้ง |
เปิดร้าน | 31 ก.ค. 2559 |
ร้านค้าอัพเดท | 4 ก.ย. 2568 |