As mentioned in the previous post, I had been working on some Halloween effects with the kids this year. The last post discussed the digitally controlled smoke machine I created to make this project possible. This post seeks to discuss the rest of what we put together.
Overview
Using an Arduino, we were able to set up an IR beam to act as a motion detection trigger. When the beam between the two is unbroken, the Arduino controls an AC socket, powering a friendly Jack-o-lantern and porch light. Once the IR beam become broken, the Arduino:
- kills power to the AC socket, extinguishing the lights,
- starts the smoke machine, and
- sends a message to my MacBook, causing the MacBook to start playing back spooky sound effects.
After a delay of 3 seconds, the Arduino:
- turns on LED circuits 1 and 2, lighting up the eyes of an evil looking Jack-o-lantern.
After a delay of 27 seconds (total elapsed time is 30 seconds), the effect is considered over. Correspondingly, the Arduino:
- turns off LED circuits 1 and 2,
- stops the smoke machine, and
- turns power back on to the AC socket, lighting the friendly Jack-o-Lantern and porch light back up.
To whet your appetite, I've included a clip of our first test in the basement of my house. A discussion of how to build the system starts after the jump.