06 January 2013

Portal sentry turret

Cristina and I put a motion sensor on an Arduino and made a Portal sentry turret:

We bought a motion sensor and Arduino ethernet shield at RadioShack, with no particular goal in mind, and wanted to figure out a way to combine them.

The Arduino is acting as a mini web server, and it serves a single page that refreshes itself every 2 seconds. If the motion sensor has recently started (or stopped) detecting motion, it will embed an appropriate sound clip in the page.

For the next version, it'd be simpler to hook a speaker up to the Arduino directly, and cut out the web server ... but for today, the whole point was find a use for the ethernet shield.

[ Code ]