I want to build an “open door detection system”, using a switch Bit and a timeout Bit to activate a buzzer Bit if the door is left open more than 10 seconds.
However, when I open and close the door within 10 seconds, the next time I open the door, the buzzer Bit starts to buzz immediately. This is not what I want the system to do.
I did some testing, and found out that my problem is the timeout Bit, because it doesn’t seem to reset itself when you send another signal within the initial timeout.
This is my test setup:
- When I press the button, the leds light up for 3 seconds and then turn off again. This is as expected, because the timer Bit is set to “on-off” mode and the timer set to 3 seconds.
- Now when I press the button and press it again 2 seconds after the first press, the leds turn off again only 1 second after my second press… I expected it to turn off 3 seconds after my second press.
So it seems the timeout Bit doesn’t reset its timeout when you send another signal within the initial timeout (on or off, depending on the mode of the timeout Bit).
Is this a bug? Is there a workaround?