But that doesn't give you a moving window.What happens if it does count 8 pulses in 5 seconds?
Thinking a 4017 decade counter and a 555 timer to start.
Waiting for an input is a very different, and easier, approach. You are either starting the timer over each time a digit is entered, not carrying about the overall time. Or you are starting a timer with the first press and requiring that the last press be done before the time expires. But in either event, whether the required number of presses was met or not, the system stops (or moves to a different state) because either it got a combination and now has to process it, or it timed-out and requires the person to start over. But what you are asking for is a lock that, after entering the required number of digits within the time window, continues on and lets the person continue entering digits as long as, at any moment, they've entered that number within the prior amount of time corresponding to the window.Thanks.
Does it make sense to start a timer when a first pulse is received and reset the counter and timer if the counter did not reach 8 ? If it does reach the count of 8; latch an output (high or low) If does count more than 8, also reset.
Is there a name for such circuit that can be searched for different ways of doing it ? Seems I have seen something alike when a lock waits for digits to be entered...
How accurate does the 5-seconds have to be? Is a 555 timer good enough?Greetings.
What circuit can count if eight pulses happen within 5 seconds; and reset if not ? -No microcontrollers-
Same issue. You are creating back-to-back windows and requiring that each window have at least eight pulses in it. But what about a window that overlaps those two?Simplest way which comes to mind is open an and gate for 5 seconds and count the pulses. Depending on the counted pulses pulse width you could count a half pulse as a pulse. Pretty much the way a basic frequency counter of years ago worked.
Ron
And what do you do after the five seconds? What if all eight of those pulses happened in the first second? Just a second after the timer expires and says everything is okay, you end up in the situation where it has been more than five seconds without seeing ANY pulses. How is this detected with this approach.Another scenario, the first pulse is counted and simultaneously starts a 5 second one-shot timer that resets the counter if 8 pulses are not registered during that time. If 8 pulses are received by the counter within the 5 second window the timer is disabled and whatever is supposed to happen at that point proceeds.
Locks are typically some with lines of code on a microcontroller.Thanks.
Does it make sense to start a timer when a first pulse is received and reset the counter and timer if the counter did not reach 8 ? If it does reach the count of 8; latch an output (high or low) If does count more than 8, also reset.
Is there a name for such circuit that can be searched for different ways of doing it ? Seems I have seen something alike when a lock waits for digits to be entered...
Please clarify the problem. There are at least two ways to read this.Greetings.
What circuit can count if eight pulses happen within 5 seconds; and reset if not ? -No microcontrollers-
I said the timer would be disabled if it receives the 8 pulses within the 5 second window regardless if it took one second or 4.5 seconds.And what do you do after the five seconds? What if all eight of those pulses happened in the first second?
This appears proper. If the count is not 8 then discards the count and uses the next pulse to start the timer and the counter again.The other way is that your system starts a clock based on something, and then has a single five-second window during which there has to be eight pulses.
So then I assume the full 5-seconds must pass to make sure we don't get 9 or more pulses in the 5-second window before signaling to the downstream circuit. Correct?Thank you.
For a constant stream of square wave pulses either normally low or high that can vary in width and interval; from as short as 0.1 seconds wide and hours without any pulse arriving; only if 8 (not 7, not 9) arrive in a 5 second window a relay to flip state to enable a second circuitry to be energized. The second circuitry can be manually reset by a person and is too involved and not matter of this thread.
This appears proper. If the count is not 8 then discards the count and uses the next pulse to start the timer and the counter again.
Also, can 5-second windows overlap? As in, if a 9th pulse is detected in the first 5-second window the trigger doesn't fire for that five second window but, what if that 9th pulse is followed by 7 more pulses in the next three seconds (and nothing for two more seconds), should the trigger fire?So then I assume the full 5-seconds must pass to make sure we don't get 9 or more pulses in the 5-second window before signaling to the downstream circuit. Correct?
If they can be either low or high normally, what do you define as a pulse? Is it when the signal goes LO->HI->LO, or when it goes HI-LO-HI? For the same signal, you will get different results under the two definitions. If you want to count transitions, that's yet something else.Thank you.
For a constant stream of square wave pulses either normally low or high that can vary in width and interval; from as short as 0.1 seconds wide and hours without any pulse arriving; only if 8 (not 7, not 9) arrive in a 5 second window a relay to flip state to enable a second circuitry to be energized. The second circuitry can be manually reset by a person and is too involved and not matter of this thread.
This appears proper. If the count is not 8 then discards the count and uses the next pulse to start the timer and the counter again.
by Aaron Carman
by Aaron Carman
by Jake Hertz