Date Range
Date Range
Date Range
2 Connecting to a PIR. PIR 通常有 3 根pin, 分別是 VDD, GND, 以及 Signal out. 然後如下圖這樣接, 其中 PIR 的 OUT 接到 RPi 的某根 GPIO 上來讀取狀態, 這邊選的是板子編號 12 的 pin 腳. 另外 LED 接的 GPIO 是板子編號 16 的 pin 腳. 程式邏輯是, 如果從 PIR 讀到的值由 0 變 1, 就點亮 LED, 並啟動 count down. 當 PIR 變 0, 就等個 3 秒之後再把 LED 關掉. 中間如果 PIR 又變回 1 了, 那麼 count down 就重新算. 最後如果用Ctrl-C離開程式, 就把 GPIO 全關. 它以 12V 的核心組成, 常看.
The position of the blocks have been saved. Did you like this profile? Thu, April 28, 2016.
Forgot Password or Username? Mr Darcy in a robot suit. Mr Darcy in a robot suit. Mr Darcy in a robot suit.
Wo Monteure gut schlafen! Aus aller Welt zuhause. Hochwertige Wohnungen und Zimmer ab 1 Person. Verkehrsgünstige Lage mit vielen Möglichkeiten. Alle Zimmer sind modern, hell und komfortabel. Ob Schiffscrew, Monteure oder Einzelreisender. Maßgeschneiderte Angebote für Ihren Bedarf.
Please enter the sequence of characters in the field below.