- 描述
- 評價 (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); } } |
相關商品
- 溫濕度感測
Grove MLX90615 Digital Infrared Temperature 數字紅外溫度感測器
0 out of 5NT$750原始價格:NT$750。NT$685目前價格:NT$685。 (未稅) - 雜項未分類感測器
DFPlayer MP3 Player mini 播放模組 MP3 開發模組 語音撥放 音樂播放
0 out of 5NT$158原始價格:NT$158。NT$95目前價格:NT$95。 (未稅)加入購物車產品速覽 - 線材 & 配件 & 連接器
彩色 40P 杜邦線 / 公對母 / 間距2.54mm 30CM
0 out of 5NT$75原始價格:NT$75。NT$60目前價格:NT$60。 (未稅)加入購物車產品速覽 - 雜項未分類感測器
801S 高靈敏度振動/震動感測器模組 模擬信號輸出 靈敏度可調
0 out of 5NT$180原始價格:NT$180。NT$150目前價格:NT$150。 (未稅)加入購物車產品速覽

















商品評價
目前沒有評價。