mrworf / photoframe

Software to pull random photos from Google Photos and show them, like a photo frame
GNU General Public License v3.0
215 stars 38 forks source link

FR: Motion detection #71

Open shigadeyo opened 5 years ago

shigadeyo commented 5 years ago

It would be nice to have an option to use a PIR (motion) sensor to turn off the monitor after no movement has been detected for a defined period of time in order to save power. I plan to look into further once I have my test frame up and running and have received the PIR that has been ordered, but wanted to add it to the Issues list for tracking purposes.

mrworf commented 5 years ago

Actually, that was requested earlier and I have a PIR sensor lying around for that purpose, and one person shared some code for that too. But that was via email I believe. Goal was to support the use of Hc-sr501 PIR

shigadeyo commented 5 years ago

I found sample code for the PIR sensor from another photo frame project; looks pretty simple. Take a look at the "Motion Detection" section at http://ofbrooklyn.com/2014/01/2/building-photo-frame-raspberry-pi-motion-detector/

mrworf commented 5 years ago

I've written initial code for it, but in order to support this long term I need also to revisit the way I deal with determining when to "sleep" which is almost done too. Work just got in the way of this side project 😄

Hopefully done soon

shigadeyo commented 5 years ago

I've written initial code for it, but in order to support this long term I need also to revisit the way I deal with determining when to "sleep" which is almost done too. Work just got in the way of this side project 😄

Hopefully done soon

Awesome, thanks! Will it support any PIR or should I order a HC-SR501 to match what you have? Please let me know as I was going to order a TCS34725 as well. Thanks again!