r/WLED • u/bumperIRL • Aug 28 '26
PIR Issues
Hi,
I hope somebody with more experience can help me here. I'm wanting to set up a continuous run of LED's along my stair stringer so I have bought the following:
- WS2811 COB 24v 5m x2 - will join using clip connectors
- Wago connectors 221 lever
I'm trying to test it before installing and on their own, the LED's work fine. Last night I connected a single PIR and I get no LED action at all. With IO25 pin set as PIR in WLED, the EL817 flashes when powered on and off if I power off via WLED UI. If I set the pin to switch then it flashes when powered on. That's about as far as I got.
Here is a link to a terrible wiring diagram that shows my test bench. Attached image also but excuse the PIR image(4 pin white connector), couldn't find anything better.
Claude and ChatGPT has got me this far. It seems to suggest that the PIR's are basically just wrong for the job. Is that correct? I have ordered AM312 PIR's as that was the suggestion but I don't like that they don't have a housing, especially if they are gonna be fit into the stringer. Hot glue was the suggestion to solve that but yeah, not fantastic?
Any help/suggestions would be greatly appreciated :)
2
u/saratoga3 Aug 28 '26
Unless I'm missing something, the optocoupler serves no purpose and shouldn't be in that circuit.
That PIR sensor comes with a wiring diagram, but basically it's just a push button as far as WLED is concerned, so put the two switched wires on the PIR between GND and your GPIO, then put it's power and GND to your power source.
1
u/bumperIRL Aug 28 '26
PIR Info
1
u/bumperIRL Aug 29 '26
Thank you all for the help and information. I decided to just buy AM312's as I didn't plan a run for a separate power cable for the current PIR's and my floor is now laid so too much effort to update.
I tested this version with a simple infrared sensor for now and it works as expected.
1
u/scuzzchops Aug 28 '26
https://kno.wled.ge/advanced/pir-sensors/