Eyes in a box
So i made myself a pet… box… with eyes. Named him “Eyes” (already have a pet box named Box). Eyes is a nice pet, lots of fun to play with, but only at night, he’s nocturnal you see…
Eyes has three states, sleeping, awake, and alarmed. A photo sensor on the exterior of the box tells eyes to come out and play, or hide while an infrared sensor tells him if someone gets too close.
sleep – everything off, light sensing only
awake- green leds (eyes) on blinking at a random interval
alarmed – “eyes” open and a blue led to shine a light on the object in range
Arduino Sketch: eyes_in_a_box