Cascading 4017s?

Ask and answer questions, share tips and resources for installing lighting and other electronics in your models.

Moderators: Sparky, Moderators

Post Reply
User avatar
SpaceDuck
Posts: 1952
Joined: Thu Apr 12, 2007 9:13 pm

Cascading 4017s?

Post by SpaceDuck »

As the thread states-

What is the straitforward simple, duckproof way? I want my "effects" as accomplished by one 4017 to then lead right into another 4017 and possibly then trigger the first again for a repeat of the process. Of course once you tell me how to work one 4017 off of another, I could even expand the multiples from there.

So, in my case:

555 triggers 4017A
4017A does it's routine and instead of resetting for a repeat then triggers 4017B.

4017B does it's routine and then triggers 4017A all over again.
Lather rinse repeat.

AND, if there are alternate possibilities that present themselves within that scenario- please explain! But I would prefer to stick with the simple ICs as noted which I am familiar with.

All help is appreciated and I will state again-
It's been the helpful folks right here that have always allowed me to accomplish my electronics goals! :D
Duck Dodgers of the 24th and a half century!
User avatar
SpaceDuck
Posts: 1952
Joined: Thu Apr 12, 2007 9:13 pm

Post by SpaceDuck »

This idea is still running through my mind and I'm wondering if anyone wants to step forward with the solution- in easy to understand, "duckproof" terms? :P
Duck Dodgers of the 24th and a half century!
User avatar
tetsujin
Posts: 2353
Joined: Mon Feb 28, 2005 6:08 pm
Contact:

Post by tetsujin »

SpaceDuck wrote:This idea is still running through my mind and I'm wondering if anyone wants to step forward with the solution- in easy to understand, "duckproof" terms? :P
One of the basic problems is that you need to make sure only one of the two counters is counting at any given time. The usual methods for doing this involve setting aside one or two outputs from each 4017 to control the operation of the cascade.

See this, page 6...

The way that circuit works is this:
First, all the 4017's start with Q0 (the first output) high. Each 4017 chains its own Q0 to the next 4017's RESET, except the last one, which chains its Q9 to the first 4017's RESET. thus, RESET starts high for all 4017's except the first one.

Each 4017 (except the last) uses its own Q9 output to control its own ENABLE line. When ENABLE is high, the 4017 stops responding to clock pulses. Thus, when a given 4017 is running, it runs through nine of its states and then halts when it reaches the tenth.

Each 4017 except the first uses an AND gate to control whether it receives clock pulses. For the second or third 4017 to receive a clock pulse, the previous 4017 must be on its Q9 output, indicating that that 4017 has already gone through all of its outputs that we actually use for something other than controlling the cascade...

So to visualize how this circuit runs:
  • All three 4017's start at Q0. (Q0 would only be hooked up to an LED for the first 4017...)
  • The first 4017 runs through its sequence until it hits Q9. Q9 isn't hooked up to an LED - rather it stops the first 4017 from moving off Q9 until it gets a RESET - and it allows the second 4017 to start running.
  • As soon as the first 4017 receives the start of the ninth clock pulse, it switches to Q9, which also allows this clock pulse (still high) to be fed via the AND gate to the second 4017. This 4017 then immediately steps from Q0 to Q1. The second 4017 continues to receive clock pulses, and steps through all its own states...
  • ...Until the second 4017 hits Q9, at which point it disables itself and starts the third 4017. This allows the third 4017 to move off its (unconnected) Q0...
  • The third 4017 runs through all its states until it hits Q9 - this Q9 is tied to the reset line on the first 4017, causing it to jump back to Q0, which re-enables the first 4017 (since Q9, tied to ENABLE, is no longer disabling that 4017) and also resets the second 4017 (since the first 4017's Q0 is also tied to the second 4017's RESET) - the second 4017 in turn resets the third 4017...
So for each additional 4017 you want to cascade you need an AND gate. I think you could use a single NPN transistor for this - connect collector to the clock line, base through resistor to Q9, and emitter to the next 4017's clock input. You'll get 9 outputs from the first 4017 and 8 out of each additional 4017.
---GEC (三面図流の初段)
There are no rats.
The skulls eat them.
User avatar
SpaceDuck
Posts: 1952
Joined: Thu Apr 12, 2007 9:13 pm

Post by SpaceDuck »

^^^^^

COOL!

Thank you very much for that! :D :8)
Duck Dodgers of the 24th and a half century!
Post Reply