0
\$\begingroup\$

schematic

simulate this circuit – Schematic created using CircuitLab

I'm using a HC-SR501 PIR sensor and a 12V relay to switch between green (NO) and red (NC) on a LED strip, everything being powered by a 12V power supply.

Without any motion in the room, the LED strip changes color from red to green and back to red, every 24 and 45 seconds respectively, with the relay jumper set to LOW. If the jumper is set to HIGH, the strip has the red light turned on and no motion will make the relay to switch to green.

Testing the PIR sensor separately I get a normal 3.3V on the output channel for 19 seconds when motion is detected.

Can you please tell me what am I doing wrong?

enter image description here

\$\endgroup\$
0
\$\begingroup\$

The PIR needs a clean Vcc and no switched bright lights near the sensor.

I don't know how much a glitch your Rleay causes on 12V nor the proximity of the LEDs near the sensor.

Here's your datasheet. https://components101.com/sites/default/files/component_datasheet/HC%20SR501%20PIR%20Sensor%20Datasheet.pdf

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.