robot2009 發表於 2009-11-22 16:37:48

[請益]PIR Sensor

本帖最後由 robot2009 於 2009-11-22 16:40 編輯

今天想使用看看這顆PIR Sensor

在他範例中,我使用以下的code 實在不知到他到底是要做什
Main:
DO
    DEBUG HOME, BIN1 IN0                ' Display Status Of P0 At Home Pos.
    PAUSE 100                           ' Small Delay
LOOP   

不就是把PIR 所接收到的資料丟入IN0暫存? 是這樣嗎?!
因為我換了PIN腳他的結果不會像預期一樣,感覺就像無作用...
我在想是不是PIR壞了...如果我要做簡單的檢測 請問要如何量測呢?
-------------------------------------------------------------------------
在他文件中有 Jumper Setting
H-Output remains HIGH when sensor is retriggered repeatedly. Output is
    LOW when idle (not triggered).

L-Output goes HIGH then LOW when triggered. Continuous motion
   results in repeated HIGH/LOW pulses. Output is LOW when idle.

請問是表達什?? 因為看不出他含意 因為我交換 還是一樣!!
頁: [1]
查看完整版本: [請益]PIR Sensor