I was wondering how I would configure some sort of setup to get lights like this turn on a timer once activated by a motion sensor. I want them to turn on for about 15 seconds and then turn off once tripped by a motion sensor but I have no engineering experience and I don't know where to start. One of my friends told me I would need to configure an Arduino board setup causing it to shut off power to the lamps after 15s but after extensive research, I'm not even sure that's possible. Is there any way to pull this task off?
Use standard PIR sensor for common motion-activated spotlights, like these:
Open it, and find the relay inside (it will usually be the bulkiest part, likely colored blue). Disconnect the output from the "NO" (Normally Open) pin and connect it to "NC" (Normally Closed) (you may need to cut a path and draw a wire to the pin). That reverses the PIR sensor operation; it switches the light off when it would switch it on normally. Then just use the 'timer' dial on the sensor to make it deactivate (and switch the light on) 15 seconds after motion stops.
It's quite possible you may find PIR sensors on the market that expose the NC contact alongside with the NO one, which would make the task even easier. Or if you don't want to modify the device, use its output to power another relay, and use the NO contact of that relay to control the light.
Here's a product that does what you want:
- Socket outlet to plug your light into
- Timer settable to 10s - 4 minutes
I'm sure they'll exist with other country's plugs on them.