Various 4017 Things.

Thread Starter

Kim Sleep

Joined Nov 6, 2014
398
Ok, I would like to thank everyone who have been so generous in the past with their time helping me. Im back again with some requirements for a "analogue" (no micros).
The circuit is (5 to 9v) that is a 555 driving the input of the 4017, and leds on the output of the 4017, pretty standard (and I have that).
What I need is
a circuit that is running the 555 driving a 4017, WITH THE LEDS OFF.
When a button is pressed THE 4017 FREEZES, WITH THE LEDS ON, FOR APPROXIMATELY 5 SECONDS (no great accuracy required).
After the approximate 5 Second duration, the leds turn off, and the 4017 resets to #1 led, and begins its count up again

Ok Guys whatcha think?
Thanks in advance for any help that you may offer.
Stay safe ion the winter roads!
 
Last edited:

sghioto

Joined Dec 31, 2017
8,634
So the 555 is free running and anywhere on the count the output freezes for 5 seconds when a button is pressed.
Then after the 5 seconds resets to output #1, correct?
 

AnalogKid

Joined Aug 1, 2013
12,128
1. When the pattern is frozen for 5 seconds, are all LEDs on, or just the one that was on when ht button was pressed?

2. If the button is released and re-pressed during the 5-second freeze, does the 5-second timer restart, or is the second button press ignored?

ak
 

Thread Starter

Kim Sleep

Joined Nov 6, 2014
398
1. When the pattern is frozen for 5 seconds, are all LEDs on, or just the one that was on when ht button was pressed?
Just the one that was on when the button was pressed
2. If the button is released and re-pressed during the 5-second freeze, does the 5-second timer restart, or is the second button press ignored?
The second press is ignored
ak
 

sghioto

Joined Dec 31, 2017
8,634
Resetting back to LED#1 is the tricky part can it be reset to zero instead since the count goes through zero?
Or is zero output LED#1?
 
Last edited:

Thread Starter

Kim Sleep

Joined Nov 6, 2014
398
A quibble, but your circuit with the 4017 is mostly digitalue not "analogue". ;)
I always get into trouble attempting to say that I use components such as 555's, 4017, etc., etc. What way should I be requesting what I want, so people understand this???, or should I just say "no microprocessors"????... ( a word that somehow totally left me when I was writing the actual request).
 

AnalogKid

Joined Aug 1, 2013
12,128
First pass at a schematic that covers everything. This might need some adjusting. It uses most of a quad NAND gate package instead of two 555's. There is one unused gate that is available for other uses.

U2A and B form a true monostable that ignores all input activity during the timing period. This is the 5-second inhibit period. Note that re-triggering is prevented even if the button is held down for longer than inhibit period. At the end of the inhibit, the 4017 will reset and begin stepping again. To cause another inhibit, the switch must be released and re-pressed.

U2C is the oscillator that steps through the LEDs. It is inhibited by the monostable. It is adjustable over an approx. 9:1 range.

C3-R3 form a differentiator. This takes the rising edge at the end of the inhibit period and turns it into a short Reset pulse for the 4017.

When the oscillator is inhibited, it's output goes high. If this were driving the Clock input, it would cause a false clock edge whenever the button is pressed while the oscillator output is in its low half-cycle. To fix this, the circuit uses the 4017 Clk En input as a negative-going clock input. There is a trade-off -

A common characteristic of any hysteretic oscillator (including 555 circuits) is that the first half-cycle is longer than subsequent half-cycles. In this circuit the consequence is that after a Reset, the Y0 output is high for a longer time than the on times of the other outputs. Assuming that this messes up some aspect of the game, I skip the Y0 output. In operation, when the inhibit period is over, all LEDs are off for a time that is a little longer than the normal LED step time, then stepping begins with equal on times for all outputs.

NOTE: There is nothing in the question about how you are driving the LEDs. If they are being driven by the 4017 directly, there is a potential issue if operating on 9 V. There is a chance that some LEDs will come on incorrectly. This is caused by an LED going into reverse breakdown. One solution is to have an individual current-limiting resistor for each LED.

ak


!!LED-Stepper-Game-1-c.gif
 
Last edited:
Top