- 描述
- 評價 (0)
描述
Arduino KY-017 水銀開關模組
Arduino KY-017 水銀開關模組 , 一個單刀單擲水銀開關另一種外形的水銀開關水銀開關,又稱傾側開關,是電路開關的一種,以一接著電極的小巧容器儲存著一小滴水銀,容器中多數注入惰性氣體或直接真空。玻璃管內部裝有一滴液態水銀,玻璃管一端延伸出兩支相臨的接腳,本身並無接觸,呈現不導通狀態,當玻璃管向下傾斜,流體的水銀會覆蓋於兩支接腳之上,藉著水銀形成導通狀態。
因為重力的關係,水銀水珠會隨容器中較低的地方流去,若果同時接觸到兩個電極的話,開關便會將電路閉合,開啟開關。水銀開關模塊和數字接口,內置13個LED構建一個簡單的電路,產生傾斜警示燈13帶有數字接口的LED,水銀傾斜開關傳感器接口接入數字3,當傾斜開關傳感器感應到一個鍵信號,LED燈,否則關閉。
Arduino GND – >引腳 – 模塊
Arduino 5v+ – > Pin middel 模塊
Arduino 3 – >模塊的引腳S.
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | //KY017 Mercury open optical module int Led = 13 ;// define LED Interface int buttonpin = 3; // define the mercury tilt switch sensor interface int val ;// define numeric variables val void setup () { pinMode (Led, OUTPUT) ;// define LED as output interface pinMode (buttonpin, INPUT) ;// define the mercury tilt switch sensor output interface } void loop () { val = digitalRead (buttonpin) ;// read the values assigned to the digital interface 3 val if (val == HIGH) // When the mercury tilt switch sensor detects a signal, LED flashes { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); } } |
相關商品
- 雜項未分類感測器
DFRobot Gravity Geiger 蓋革計數器游離輻射模組
0 out of 5NT$2,800原始價格:NT$2,800。NT$2,400目前價格:NT$2,400。 (未稅)加入購物車產品速覽 - 雜項未分類感測器
TCRT5000 新版 紅外線反射尋跡模組 避障感測小車 帶類比與數位輸出 四針
0 out of 5NT$60原始價格:NT$60。NT$45目前價格:NT$45。 (未稅)加入購物車產品速覽

















商品評價
目前沒有評價。