0
\$\begingroup\$

It's easy even for a beginner like myself to create a PCB where an LED lights up if a PIR chip detects movement, then goes off when movement is no longer detected. And if more movement is detected, the LED goes on again etc.

I'm struggling though with how to cheaply implement a PCB where an LED stays on continuously when the PIR first detects movement (regardless of how much time passes or whether the PIR detects additional movement), and only goes off when a user presses a button.

I've looked at latching relays but the cost per latched-relay is a lot for what I want to achieve given that my design has about 4 latched states I need to retain.

What component should I use instead to retain state?

(The design I need would still work if the ON state was retained continuously until the power was switched off... but I need the ON state to remain ON regardless of time or of any subsequent PIR movement detection. Not sure if that makes the requirements any easier...)

\$\endgroup\$
3
  • 1
    \$\begingroup\$ Welcome to EE.SE but you have provided no details on the PIR sensor. We would need to know the voltage, whether it switches the output high or low when motion is detected and a few other items. Please edit your question and include a datasheet for the PIR and a schematic of what you've got already. There is a schematic button on the editor toolbar if needed. \$\endgroup\$
    – Transistor
    Commented Nov 27, 2017 at 11:01
  • 1
    \$\begingroup\$ PIR is not on a chip, a PIR sensor has a sensor and a chip. I suggest that you just get a cheap (1 US$) PIR motion sensor: ebay.com/itm/… Next step is to make something "latch". A thyristor could do that job. You can also make a thyristor using an NPN and a PNP. I agree with Transistor that you do need to show more research effort instead of just posing your unsuitable solutions here. \$\endgroup\$ Commented Nov 27, 2017 at 11:06
  • \$\begingroup\$ There is no need for such low level details. A simple high level answer can be given. \$\endgroup\$
    – Passerby
    Commented Nov 27, 2017 at 13:32

2 Answers 2

1
\$\begingroup\$

The best answer is to use a small microcontroller, since there are inevitably more things for it to do.

However, the caveman method to do just this and nothing else is to use a set/reset flip-flop:

Follow the logic thru and you will see that this circuit has memory. When IR goes low, OUT goes high. With RESET high (not asserted), this makes the output of IC1B go low, which keeps OUT high.

RESET only needs to be blipped low for a short time to clear OUT back to low, assuming IR is not asserted at that time.

You can get such flip-flops already all made for you. I show the inner workings to help you understand them. Of course this can still be done with half a single quad 2-input NAND chip.

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

Cheapest solution here would be a simple microcontroller that you code to work like you want it to. PIR sensor triggers the microcontroller, it triggers the led until you press a button on the microcontroller.

\$\endgroup\$
2
  • \$\begingroup\$ Why is this downvoted? \$\endgroup\$ Commented Nov 27, 2017 at 13:52
  • \$\begingroup\$ Quel shocker... \$\endgroup\$
    – Passerby
    Commented Nov 28, 2017 at 0:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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