Motion Sensor Lights

This is a short post to follow up on a video we made showing how to add a motion sensor to a strip of LEDs so they will automatically turn on for you. Since the video, I have mounted the components under the shelf and found that the system works quite well.

The stairs into the lab are an approvement 14 feet away from the sensor. I have the sensor set to the maximum sensitivity setting and the LED strip turns on as soon as I walk down the stairs. These lights also turn on prior to the motion lights I have on the ceiling which were purchased.

The hardest part of the installation was laying on my back so I could work under the shelf. If I was going to install these again I would turn the shelf over so I could have looked down on the shelf and done a better job. Since I had already installed the shelf I did not feel the need to pull them out to install the lights, but hindsight is always 20/20. Another factor is that I installed this sensor in my lab and I was not overly concerned about making the wiring look nice. You can not see the wires when you stand in front of the shelf, and that was really all I cared about.

As I said, the install is not much of a “looker”, but it gets the job done.

The circuit is not complex and consists of the following parts:

Voltage regulator – LM2596
Relay – Keyes_Relay
Motion sensor – HC-SR501
Arduino – Nano
Power supply – 12v

The Arduino code is simple, but we posted on GitHub if you would like to look at it.

I hope this helps someone out there.

– Michael