In December, a friend approached me and asked if I could create a visual effect for him. The requirements are to flash a strobe light, activate only when someone is in front of the effect for a couple of seconds, and wait for the person to walk away before it can be activated again.
Here’s the effect in action.
Geeetech Infrared proximity switch module compatible with Arduino/Iduino
Waterproof Superbright 100cm White SMD Led Strip Light Lamp with USB Cable Port 5v
SainSmart Nano v3.0 Compatible with Arduino
See the code after the break.