tag:blogger.com,1999:blog-4922503085503427986.post2666968359061070825..comments2024-03-29T00:14:30.842-07:00Comments on Desert Home: Raspberry Pi and ThingSpeakdavehttp://www.blogger.com/profile/11608589214882334649noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4922503085503427986.post-38911386604612529362014-05-06T14:00:48.529-07:002014-05-06T14:00:48.529-07:00First I had to look up 'PIR'. Ok, it'...First I had to look up 'PIR'. Ok, it's passive infrared, should have put that together without having to look. Especially since I have the darn things on light switches all over the house. Anyway, it certainly can be adapted to something like that.<br /><br />However, a few things to think about. Motion is either there or not, so it's a zero or one situation. Motion happens a lot quicker that once a minute which is what I have this scheduled to update. So, you'd have to decide what you want to record. Number of times the sensor fired in a period of time, send something each time it fired, etc.<br /><br />It would be kind of cool to send a message each time it fired to record there was motion somewhere. It would have to be a pair of transactions though to show up. Perhaps a 1 to indicate motion followed by a 0. That way you'd have a pulse logged to indicate the cat got into the pantry, or a burglar is in the garage.<br /><br />You'd have to modify the code to do it this way, since I gather data and only transmit it on a scheduled basis. It certainly could be done though.davehttps://www.blogger.com/profile/11608589214882334649noreply@blogger.comtag:blogger.com,1999:blog-4922503085503427986.post-46569143828229672682014-05-06T12:26:07.010-07:002014-05-06T12:26:07.010-07:00Hi - thanks for your code!
Can this be adapted ...Hi - thanks for your code! <br /><br />Can this be adapted to show output on thingspeak from a PIR motion detector?petehttps://www.blogger.com/profile/10785434276546337350noreply@blogger.com