Tuesday, November 18, 2014

passive infrared power switch.

So,  a few parts
an Arduino
a micro display
a passive infrared sensor
a relay
a power outlet
and a box...

and some code....  

and oh by the way... what happens when you sprintf 11 characters into a char[10]?  the arduino resets.

Prototyping.

seems functional... let's put it on a board..

small wiring...

and a box...


oh wait... how do we power the thing... it doesn't work so well when you plug the arduino into the switched outlet...

this ought to do..


looks good...


and mounting it up..


done...

and buttoned up.