Interpreting PIR Sensor Data

时间:2015-07-31 20:00:53

标签: arduino raspberry-pi sensor infrared

My project is to use a PIR sensor to detect people walking by. I need advice on how to interpret the output data. For example, if one person passes by, the stream of data my sensor outputs might be:

001111100111100100 - where 0 is no motion detected and 1 is motion detected. I need to identify these closely interspersed clusters of 1s as one discrete instance of an object passing in front. There would be long pauses of 0s and then these groupings of 1s and 0s.

How can I approach this problem?

0 个答案:

没有答案