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...)