讓我們使用來自PIR運動傳感器檢測到運動 WIZwiki-W7500
PIR Motion Sensor (紅外線動作感測器)是人體偵測的傳感器,這意味著它能偵測一個人的動作。 PIR 紅外線動作感測器產生微小的輸出。 因此,我們需要把握HC-SR501 的輸出放大,以便直接從 MCU 獲得的輸出數值。

HC-SR501 的照片顯示於上方。 正如你看到下面,我們可以通過跨接器設定計時器和傳感器的靈敏度。
輸入電壓為 5V,輸出為 0V 或 3.3V。 它偵測到動作時輸出 3.3V;0V 時表示沒有偵測到動作。


https://developer.mbed.org/teams/WIZnet/code/PIR_Motion_Sensor_WIZwiki-W7500/
下面的值是輸出值。
