| EXPLANATION
The PIR sensor output goes low when a presence is detected.
The low signal is inverted to a high by the inverter. This is needed because the counter increases on a rising edge, but when the PIR detects someone, it goes low.
The high signal is connected to the clock input of the counter thus increasing the count.
The reset switch when pressed, sends a high signal to the Reset input, resetting the counters to zero.
|