Motion Controlled WLED

WLED setup? Success!
Motion control? Fail!

I would like to add the ability for my WLED to play a specific effect when the motion sensor detects motion and then revert back to a standard effect after a period of time.
I have either AM312 or HW-416A (see links below) but I am not able to get them to detect motion.

Can you please help with

  1. Which sensor should I use and how it should be connected? (I have already connected 1 incorrectly and let the smoke out, oops)
  2. WLED configuration?

Thanks heaps for your help!

https://www.aliexpress.com/item/1005004946397457.html
https://www.aliexpress.com/item/1005005754583925.html

SR-HC602 and SR-HC501 are known to work flawlessly with WLED. Some people reported AM312 to work as well.

There is nothing special as far as wiring goes. You should connect GND from sensor to GND (or V- sometimes) and IO (or OUT) to a GPIO of choice on ESP. For V+ you need to connect it to 3.3V for HC602 but for HC501 it needs to be connected to 5V. I do not know about other sensors.

You may want to measure voltage output of the sensor first as it should not exceed 3.3V otherwise it will ruin your ESP.