I want to make a motion detection LED strip to the stairs. My idea is to put 5m LED Strip on the wall and put one motion sensor on both sides of the strip (one on the upper level and one on the lower level). I would connect the sensors to the same power supply. Will it work?
Yeah, that will actually work.
I mean, the way you wired it would be a horrifying hack if it was mains AC power. That would be a “loop”, and those are very bad (in AC) because everything inside the loop becomes inside the core of a transformer.
That’s not a problem in the DC domain. (Mind you I’m not sure that doesn’t change if you use PWM dimming, but I’m not going to tell you to worry about it).
I recommend you bring a 3-wire cable between the two PIRs:
- Switched Negative (assuming you switch negative; that’s best practice with LED strips).
And then, feed both positive and switched-negative to the LED strip at both ends. That way you are not relying on the thin little pathways inside the LED strip to carry all the current. (There’ll be noticeable dimming if you do).
By the way, learn the fine art of cutting LED strips to length; they have specifically designed cut points.
It will also aid your craftsmanship to learn to splice and/or solder, so you aren’t dependent on cheapie connectors and premade wiring harnesses.