Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

cascade 3 4017 counters

Status
Not open for further replies.

purcer

New Member
Hi.
I am trying to cascade three 4017 counters inorder to light 27 leds and have them constantly run. I have found WEB sites on one 4017 but nothing on how to cascade them. I am using a 555 timer for the clock pulse.
Thanks;
William
 
Connect Carry Out from the first to CE of the second and tie C high.

Repeat for the second and third counters.

Look at the data sheet for the 4017.

EDIT: On re-reading your post, I don't think 3 X 4017 will do what you want.

I assume you want to illuminate only one LED at a time. Is this true?

If so, then you need a modulo 27 counter with suitable decoding.
 
Last edited:
ljcox said:
I assume you want to illuminate only one LED at a time. Is this true?

If so, then you need a modulo 27 counter with suitable decoding.

Modulo 28 is needed. The actual count is one less than the modulo number.
 
Page 6 of this datasheet from On Semiconductor shows how to do what you want ...
Also, here's the parent MC14017B page ... <link>
JB

*edit* You'll need (4) 4017's to run 27 leds ... 3 will only run 25 ...
 
Last edited:
cascading 4017

Hi jbeng.
I made a mistake on the count of LEDs I only need 25.
So using four chips is no problem for me but I'll need some help.
also answering Allvols question I am trying to make a light sequencer or light chaser.
Thanks
William
 
Last edited:
AllVol said:
Modulo 28 is needed. The actual count is one less than the modulo number.
That depends upon what he wants.

I assumed he wanted 27 LEDs that turn on in sequence so that there is always one LED lit, he would need a Mod 27, ie. 0 ~ 26.

But if he wants the LEDs to be all off in one state, then he needs a Mod 28.
 
purcer said:
Hi jbeng.
I made a mistake on the count of LEDs I only need 25.
So using four chips is no problem for me but I'll need some help.
also answering Allvols question I am trying to make a light sequencer or light chaser.
Thanks
William
Following on from my previous post, do you want a "dark state" or do you want one LED lit at all times?
 
I assume you want it to be in a continuous sequence, ie. 0, 1, 2, 3, ... 24, 0, etc.

Or do you want it to be in a random sequence? This is more complex.
 
Led chaser.

Hi Purcer,

Here's a circuit that will do the trick.
From the first 4017 you use outputs "0" to "8", from the second
4017 you use outputs "1" to "8" and from the third 4017 you use
ouputs "1" to "9" to drive the leds. That's a total of 26 leds. If
you only need 25 outputs, use outputs "1" to "8" from the last
4017 to drive the leds and move the 1 nF capacitor which is
connected to output "0" to output "9". Connect each led with a
suitable resistor in series from each output to ground.

on1aag.

led-chaser-gif.11873
 

Attachments

  • Led chaser.GIF
    Led chaser.GIF
    13.7 KB · Views: 9,564
Here is my suggestion:-

U1 & U2 are configured as Modulo 5 counters.

The LEDs are arranged in a 5 x 5 matrix.

LED 0 glows when U1 = 0 and U2 = 0.

When either U1 or U2 = 5, the counter is reset rapidly.

U2 is advanced when U1/0 goes high.

I have not included a "power on" reset.

Therefore, since the counters will start in random states when the power is turned on, it may take a few clock pulses before the normal sequence starts.

If you can't buy a 74HC4022 or 74HC4017, let me know and I'll show you how to do it with a 4017, but it will require an extra IC since the 4017 may not have enough current source capability to drive the LEDs.

Choose resistors R0 ~ R4 for the correct LED brightness. For red LEDs, about 470 Ohm should be adequate.

Choose R & C according to the oscillator frequency that you want.

I would make R = 1M and choose C for the frequency you want.

The formula is f = 0.56/(RC) approx. (very approx)
 

Attachments

  • LED chaser.gif
    LED chaser.gif
    25.8 KB · Views: 3,762
With a 9V battery, the output current from an ordinary 4017 is about 12ma. A current-limiting resistor is not needed for the LEDs. When the battery drops to 6V then the LEDs will appear dimmer.
The absolute max continuous current allowed from the output of a 74HCxx IC is 25mA which looks only slightly brighter than 12mA, a regulated 5V supply is needed and a current-limiting resistor is needed.
 
Here is a variant on that posted by on1aag.

Note Audio's point about the 4017 and operating the circuit from 9 Volt.

So you could use 4017s with this arrangement.
 

Attachments

  • LED chaser 1.gif
    LED chaser 1.gif
    55 KB · Views: 2,742
cascade 4017

Hi guys;
I'm taking notes on all of this information. It sure is helpfull.
William
 
Last edited:
Here's the way On Semi (Motorola) shows how to wire it. It's the section from page 6 of the mc14017b pdf file on their website. Using this method you could have a thousand led outputs if you want.
JB

*edit* Also, the entire setup can be reset from one pin by adding an OR gate into the reset line on the first (leftmost) counter.
 

Attachments

  • 4017 expansion.jpg
    4017 expansion.jpg
    53.4 KB · Views: 7,430
Last edited:
jbeng said:
Also, the entire setup can be reset from one pin by adding an OR gate into the reset line on the first (leftmost) counter.
The same applies to on1aag's circuit and my variant of it.

The advantage of on1aag's circuit and my variant is that they use NOR gates which can be used for the oscillator hence less ICs overall.

(You need an inverting gate to make an oscillator)
 
Last edited:
I posted the diagram because the o/p pm'd me and said that he had a bit of trouble displaying the pdf datasheet, so I told him I'd post a jpeg.
JB
 
Light chaser part two.

Hi Purser,

I actually designed this circuit a couple of months ago, it was originally
intended to replace an obsolete IC in an antique calculator.
( The 1820-1223 cathode driver in an old hp 35 calculator.)
I had never tested this circuit because I was waiting for the description
and the schematic of this calculator but your circuit was so similar to my
original design that I decided to add an extra 4017 and build it.
Altough the circuit worked fine the addition of the third 4017 caused some
problems. ( The second and the third 4017 did exactly the same !) So I had
to add an extra gate to make it work the way it should, this extra gate was
made from the two 1N4148's and the 10k resistor. At this stage I should have
taken it back to the drawing board but I was too busy designing and testing
other circuits. But the circuit works fine the way it is so we'll add two or
even more 4017's.
The far left part is the first counting section and the far right is the last.
The one in the middle is the one you should duplicate a number of times to
drive the amount of leds you want, the more the better. :D
Have much fun !

on1aag.
 

Attachments

  • Chaser 2.GIF
    Chaser 2.GIF
    12.4 KB · Views: 1,366
Status
Not open for further replies.

Latest threads

Back
Top