3 ms·
This is very neatly done and i'm in deep admiration of the quality. When i tried this back in 2011 with the GPIO pins on a Linksys WRT54G, the three biggest cha
by CraigJPerry 6y ago
This is very neatly done and i'm in deep admiration of the quality. When i tried this back in 2011 with the GPIO pins on a Linksys WRT54G, the three biggest challenges were:
1. Securing the device - which in practice meant all my hardware had to be mounted inside the property of the back of the front door
2. power supply - i battled with voltage sag due to the crap thin wires i used and the long run from the plug socket
3. The video resolution was terrible, to the point of not being useful at all
It's interesting to me that in almost 10 years, only #3 is really "solved". 2 is arguably solved given the cheap high capacity lithium batteries available.
My attempt back in 2011:
https://postimg.cc/hfhyWGXZ https://postimg.cc/hfhyWGXZ
https://postimg.cc/R6Rs961y https://postimg.cc/R6Rs961y
Linksys WRT54G, I broke out the GPIO pins to service a microswitch on the letterbox and the doorbell button. A cheap USB "spy cam" from ebay with a resolution of around 20px x 20px. It looked horrendous despite my best efforts to mount it neatly.
OpenCV existed at the time but wasn't available on this platform. Instead i read from /dev/video, converted the image to greyscale, then comparing pixel by pixel the luminosity vs. the previous saved file. If the cumulative value crosses a certain +ve or -ve threshold it treats it as motion detected - which turned out a terrible approach in practice :-)
- magicalhippo 6y ago> i battled with voltage sag due to the crap thin wires Use 12V wall wart and a small 12V to 5V converter by the Pi. I've found great use of these little ones: https://www.aliexpress.com/item/4001296827182.html https://www.aliexpress.com/item/4001296827182.html
- CraigJPerry 6y agoAhh the linksys was a 12v device, the wall wart i had was unregulated and the wires were rubbish. The little stripboard daughter board in the pics is hosting an LM7805 to power the usb webcam thing because the wrt54g usb port itself was a bit of a hack https://wiki.dd-wrt.com/wiki/index.php/USB_mod_WRT54 https://wiki.dd-wrt.com/wiki/index.php/USB_mod_WRT54
- magicalhippo 6y agoAh yeah I was thinking about the article solution. If you need 12V at the device, I'd use a ~18-24V wall wart, laptop supply or similar with a DC-DC converter. The LM7805 works fine for low currents, but being a linear regulator wastes a lot of power which gets turned into heat once the current goes above 100mA or so.