ของน่าใช้ มีเรื่องราวให้ค้นพบรู้จัก Buydeestore
KY-027 Magic Light Cup Module (โมดูลสวิทช์ปรอท) ตรวจจับการเอียงเพื่อควบคุมเปิดปิด LED
Home & Living

KY-027 Magic Light Cup Module (โมดูลสวิทช์ปรอท) ตรวจจับการเอียงเพื่อควบคุมเปิดปิด LED

เช็กราคาล่าสุดที่ร้านค้า

ราคา โปรโมชั่น และตัวเลือกสินค้าอาจเปลี่ยนแปลงที่ร้านค้าปลายทาง

ดูราคาและโปรโมชั่นล่าสุด

เราอาจได้รับค่าตอบแทนเมื่อมีการซื้อผ่านลิงก์นี้ คุณทำรายการซื้อขายกับร้านค้าปลายทางโดยตรง

สินค้านี้ตรงใจไหม?

บอกเราเพื่อช่วยปรับสินค้าที่แนะนำให้เหมาะกับคุณมากขึ้น

ข้อมูลสินค้าในที่เดียว อ่านประสบการณ์ก่อนเลือก เช็กเงื่อนไขจากร้านค้า

รู้จักสินค้านี้

KY-027 Magic Light Cup Module (โมดูลสวิทช์ปรอท) Light Cup Module เป็นเซนเซอร์สวิตช์ปรอท รวมกับหลอดไฟ LED เราสามารถใช้เซนเซอร์ปรอทในการตรวจจับการเอียงเพื่อควบคุมเปิด/ปิด LED ได้ Mercury switches provide a digital signal that triggers the PWM , through the program design, we can then see the light like two cups filled with the effect of shuffling back and forth. โค้ตตัวอย่าง KY-027 int Led = 13 ;// Declaration of the LED-output pin int Sensor = 10; // Declaration of the sensor input pin int val; // Temporary variable void setup () { pinMode (Led, OUTPUT) ; // Initialization output pin pinMode (Sensor, INPUT) ; // Initialization sensor pin digitalWrite(Sensor, HIGH); // Activating of the internal pull-up resistor } void loop () { val = digitalRead (Sensor) ; // The current signal from the sensor will be read if (val == HIGH) // If a signal will be detected, the LED will light up. { digitalWrite (Led, LOW); } else { digitalWrite (Led, HIGH); } } http://sensorkit.en.joy-it.net/index.php?title=KY-027_Magic_light_cup_module
เรื่องเล่าจากชุมชน

ประสบการณ์จากผู้ใช้

เขียนรีวิว ↗

รายงานข้อมูลสินค้านี้

เป็นคนแรกที่เล่าประสบการณ์

ชอบอะไร มีข้อสังเกตตรงไหน? เรื่องเล่าของคุณช่วยให้คนอื่นเลือกได้ดีขึ้น