How to Understand IC 4017 Pinouts

The IC 4017 can be considered as one of the most useful and versatile chip having numerous electronic circuit applications.

About IC 4017

Technically it is called the Johnsons 10 stage decade counter divider. The name suggest two things, it’s something to do with number 10 and counting/dividing.

The number 10 is connected with the number of outputs this IC has, and these outputs become high in sequence in response to every high clock pulse applied at its input clock pin out.

It means, all its 10 outputs will go through one cycle of high output sequencing from start to finish in response to 10 clocks received at its input (pin#14). So in a way it is counting and also dividing the input clock by 10 and hence the name.

IC 4017 pinout details

Understanding pinout Function of IC 4017

Let’s understand the pin outs of the IC 4017 in details and from a newcomer’s point of view: Looking at the figure we see that the device is a 16 pin DIL IC, the pin out numbers are indicated in the diagram with their corresponding assignment names.

The pinout which are marked as outputs are the pins which are rendered logic "high" one after the other in a sequence in response to clock signals at pin#14 of the IC.

Logic high simply means attaining positive supply value, while logic low refers to attaining zero value.

Therefore with the first clock pulse at pin#14 the first output pinout in the order which is the pin#3 goes high first, then it shuts off and simultaneously the next pin #2 becomes high, then this pin goes low and simultaneously the preceding pin #4 becomes high...... and so on until the last pin #11 becomes high.

To be precise, the sequencing movement happens through the pinouts: 3, 2, 4, 7, 10, 1, 5, 6, 9, 11...

After pin#11 the IC internally resets and reverts the logic high at pin #3 to repeat the cycle.

This sequencing and resetting is successfully carried out only as long as pin#15 is grounded or held at a logic low, otherwise the IC can malfunction. If it is held high, then the sequencing will not happen and the logic at pin#3 will stay locked.

Please note that the word “high” means a positive voltage that may be equal to the supply voltage of the IC, so when I say the outputs become high in a sequential manner means the outputs produce a positive voltage which shifts in a sequential manner from one output pin to the next, in a “running” DOT manner.

Now the above explained sequencing or shifting of the output logic from one one output pin to the next is able to run only when a clock signal is applied to the clock input of the IC which is pin #14.

Remember, if no clock is applied to this input pin#14, it must be assigned either to a positive supply or a negative supply, but should never be kept hanging or unconnected, as per the standard rules for all CMOS inputs.

The clock input pin #14 only responds to positive clocks or a positive signal and with each consequent positive peak signal, the output of the IC shifts or becomes high in sequence, the sequencing of the outputs are in the order of pinouts #3, 2, 4, 7, 10, 1, 5, 6, 9, 11.

Pin #13 may be considered as the opposite of pin #14 and this pin out will respond to negative peak signals, if a clock is applied to this pin, producing the same results with the outputs as discussed above.

However normally this pin out is never used for applying the clock signals, instead pin #14 is taken as the standard clock input.

However, pin #13 needs to be assigned a ground potential, that means, must be connected to the ground for enabling the IC to function.

In case pin #13 is connected to positive, the whole IC will stall and the outputs will stop sequencing and stop responding to any clock signal applied at pin #14.

Pin #15 of the IC is the reset pin input. The function of this pin is to revert the sequence back to the initial state in response to a positive potential or supply voltage, meaning the sequencing comes back to pin #3 and begins the cycle afresh, if a momentary positive supply is applied to pin #15.

If the positive supply is held connected to this pin #15, again stalls the output from sequencing and the output clamps to pin #3 making this pinout high and fixed.

Therefore to make the IC function, pin #15 should always be connected to ground.

If this pinout is intended to be used as a reset input, then it may be clamped to ground with a series resistor of 100K or any other high value, so that a positive supply now can be freely introduced to it, whenever the IC is required to be reset.

Pin #8 is the ground pin and must be connected to the negative of the supply, while pin #16 is the positive and should be terminated to the positive of the voltage supply.

Pin #12 is the carry out, and is irrelevant unless many ICs are connected in series, we will discuss it some other day. Pin #12 can be left open.

Have specific questions?? please feel free to ask them through your comments...all will be thoroughly addressed by me.

Basic IC 4017 Pinout Connection Diagram

IC 4017 basic parts configuration diagram

Application LED Chaser Circuit using IC 4017 and IC555

The following example GIF circuit shows how the pinouts of a IC 4017 is usually wired with an oscillator for obtaining the sequential logic high outputs. Here the outputs are connected to LEDs for indicating the sequential shift of the logics in response to each clock pulse generated by the IC 555 oscillator at pin#14 of the IC 4017.

You can see that the logic shift happens in response only to the positive clock or positive edge at pin#14 of the IC 4017. The sequence does not respond to the negative pulses or clocks.

IC 4017 Working Simulation

IC 4017 output sequence simulation in response to input clocks

Video Clip:

Need Help? Please send your queries through Comments for quick replies!


Karthik Shankar said…
sir,my name is karthie...i need to know where where this was used...?
Swagatam said…
Hi Karthik, one example can be seen in light chaser circuits, just type "light chaser" in the search box above, you will find the related articles.
Gusto44 said…
Hi I am going to be using this IC in the LED dice with slow down project and I'm looking to connect a sound generator circuit with a flip flop to produce a sound when the LED's come to a stop. I wanted to know what pin on the 4017 will have a positive output once the LED sequence has come to a stop? Hence so I can connect the input of the second circuit (the flip flop) to that pin.
Swagatam said…
The output will be random and never fixed to a definite pin. It will depend on how many clocks are applied at pin14 of the IC. It will begin from pin3 and sequence by one pinout in response to every positive pulse at its pin14, as soon as it reaches pin11, the sequence returns back to pin3 for repeating the cycle.
Hi I'm making a dice circuit with a cd4017 and a 555timer but I can't get the LEDs that are connected to different outputs on the 4017 to light at the same time. For example, I connected four corners together to make 4, and two middle to make two, but I don't know how to make them both light to make six! It seems like the cd4017 can only have high output on one pin at once? Anything will help, thank you
Swagatam said…
You can use scrs at the output of the 4017 for latching the switched pinouts of the IC, please refer to the first diagram in this article:
Abu-Hafss said…
Hi Swagatam

I want to use this IC for 10 random outputs.
According to my understanding, the CD4017 would keep on repeating its output cycle as long as the clock is fed at pin#14. My idea is to use a push-switch, which when pressed momentarily should send clock signals to CD4017. Ten LEDs are so connected that during the counting process no LED should light up. When the clock is disabled and the counting process stops, any one LED should light up randomly.

If the push-switch is used to trigger an monostable oscillator, which in turn activates a clock oscillator, the monostable would always stop the clock at fixed time which ultimately cause the CD4017 to stop it counting process at a fixed output pin.

Please let me have your valued suggestions.
Swagatam said…
Hi Abu-Hafss,

Yes it is possible, the monostable would also be responsible for feeding the negative to the common ends of the LEDs after it stops the oscillator stage, this would illuminate the particular LED at the end as required by the application
Abu-Hafss said…
Hi Swagatam

Thanks for such a simple solution. But as I mentioned earlier, the monostable would always stop after a specific time hence, the clock would also stop after that time which ultimately would always light up only one particular LED. How to resolve this issue?
Swagatam said…
Hi Abu-Hafss,
According to your requirement:

"Ten LEDs are so connected that during the counting process no LED should light up. When the clock is disabled and the counting process stops, any one LED should light up randomly"

That's exactly what will happen if we implement the method suggested by me in the previous comment.

You present question is contradicting the previous question, I did not get it.

By "one particular LED" are you assuming that the 4017 would get reset and pin3 LED would always light up??
No, that wouldn't happen, as soon as the clock stops a random LED could be seen lit up
Abu-Hafss said…
Hi Swagatam

I mentioned in my very first post, "According to my understanding" which could be wrong. What I assumed is that in an electronic dice circuit, we have to press the ROLL-ON-DICE push button to send the clock signal to CD4017, which will start the counting process until the push-button is released. And during this counting process, the LEDs would turn ON/OFF in the counting sequence until the push switch is released, and then finally one set of LED would light up.


Whereas, in my case, if we deploy a monostable oscillator to trigger the clock signal to the CD4017 then the monostable would always stop the clock signal after FIXED TIME PERIOD as set by the timing components. This means the clock signal would always be fed for that fixed time and ultimately the CD4017 would always stop the output at a specific pin.
Swagatam said…
Hi Abu-Hafss,

OK now I got it, but why do we need a monostable anyway? We can use an astable instead.
Swagatam said…
...I mean the push button would charge a capacitor, whose level of charge would determine for how long the astable could supply the clocks to the 4017.
Abu-Hafss said…
Again......., the level of charge of the capacitor will be directly proportional to the time for which the push-switch is pressed.

Monostable oscillator was just my idea as a starting line of action.

I just want a push button to be pressed momentarily which should (somehow) trigger clock signal to the CD4017, always for variable length of time !!!
Swagatam said…
The capacitor should charge relatively slowly, it should be dimensioned such that it takes about 10 seconds to get fully charged, Since nobody would hold the switch for so long would allow different charge level for the subsequent pressings.

Also the astable whose switch ON time would depend on the charge level of the above capacitor should be dimensioned for producing a very high frequency.

Together, the configuration would force perfect random results from the 4017 outputs, this is what I assume.
Swagatam said…
may be I misinterpreted your requirement, you don't want the pressing duration to be influencing the that case it will require some thinking and it would make the circuit a bit complex for achieving that.
Abu-Hafss said…
Hi Swaagatam

Yes, now you got it.....I "don't want the pressing duration to be influencing the result"....:)
Swagatam said…
Hi Abu-Hafss,
One easy way would be to use another set of 4017/oscillator stage fixed at 1 or 2 Hz sequencing rate, then use these sequencing outputs to provide randomly selected capacitors for the monostable.
This would continue for as long as the system stays powered, that means the monostable would be producing slightly different delays randomly for each flick of its pushbutton.
Abu-Hafss said…

Firstly, for the 1st set (of 4017+oscillator), we have to deploy a non-555 configuration to achieve such low frequency oscillation......right?

Secondly, where the push-button will be deployed?

Lastly, can a Random Bit Generator Circuit be used to achieve the goal instead of your above-suggested configuration?
Swagatam said…
Thank you Bigboss,

I have seen a circuit of a Random Bit Generator using a few 2N3904 transistors and a TTL NOT gate, but not sure how it would perform for our application.

Another idea is to use an ordinary multicolor LED which generates quite a random automatic blinking rates, this could be integrated to the 4017 pin14 while the monostable output attached with pin13 (after inverting) of 4017 and directly with the common cathodes of the LEDs.

I would be publishing it soon in my blog for you to see.
Abu-Hafss said…
Hi Swagatam

You didn't replied the first two questions.

Actually, I planned to integrate this circuit in a larger project (LED dance floor) which will illuminate LEDs in different configuration/colors, randomly in response to a foot-tap.
Swagatam said…
Hi Abu-Hafss,

we can use a 4060 oscillator to facilitate the use of smaller timing capacitor.

The push button could be across pin2 and ground of the monostable.

Can you please explain how you would want to implement the same in your application (LED dance floor)??
Abu-Hafss said…
Hi Swagatam

Here are the LED dance floor modules (tiles) stacked.

Here they are assembled as floor:

Each tile or module has its complete circuit. Multi-colored LEDs are arranged in various fashion/designs. The circuit can be operated in two modes:

1) AUDIO INPUT: The LEDs will be illuminated in response to the music signals received at the input of the circuit.

2) MANUAL INPUT: Each module is installed with a tap/weight sensor. The circuit will illuminate LEDs in different combination (randomly) in response to a tap or weight change detected by the sensor.

For the 1st option, an audio spectrum circuit can be used. For the 2nd option, I was considering to use the 4017 circuit.

The original circuit is based on microcontroller but, I am trying to do without it.
Swagatam said…
That's interesting Abu-Hafss, I'll try to include the idea in my blog soon.
Arun Dev said…
Sir how to ensure whether the output pins of 4017 carries the voltage equal to the supply voltage ?
Swagatam said…
configure the IC as per its standard layout, don't put any clock at its pin14, keep pin14 connected to ground, and measure the output at pin3 or whichever pin may be high at that instant.
Swagatam said… can also refer to its datasheet for the same...
Puneet Sharma said…
hello sir how are you now i am a big fan of yours
pls tell me sir how these ic are checked can this be done my multimeter then pls tell me how to check whether ic is faulty or not
Swagatam said…
Hello Puneet thanks!, there's no easy way of checking ICs such as 4017, the only way is to build a standard configuration and see if all the pins are responding as per the specs.
:3 said…
me too there is no 4017 in our hometown
this is our project:
T-intersection of 2 way roads.
Requirment of 2 traffic lights.
Red is high for minimum of 5s
Orange/Yellow/Amber is high for 3s fixed
Green is high for minimum of 10s
Also have an indicator that will show where the cars can go (which way)
can you suggest a substitute for 4017?
:3 said…
will there be other ic that can substitute 4017? we cant find 4017 at our town here is our project
T-intersection of 2 way roads.
Requirement of 2 traffic lights.
Red is high for minimum of 5s
Orange/Yellow/Amber is high for 3s fixed
Green is high for minimum of 10s
Also have an indicator that will show where the cars can go (which way)
Swagatam said…
you can try IC 4022
Michael Brabec said…
How do I get tri color less to run off a cd4017 if ? I need 20ma to leds
Michael Brabec said…
I am using a 555 with 4017 to make tri color less with a common cathode dance. How would you do this ?
Swagatam said…
use the pins 3,4,7 for the LEDs and connect pin7 with pin15
Swagatam said…
...sorry correction:

use the pins 3, 2, 4 for the LEDs and connect pin#7 with pin#15
Lan... said…
hi,i just want to ask,how many voltage power that's in the pin 7(vss),pin 10 and 11(ac power)if my vdd is 12v?if cd4047 just could make the ac signal without amplify so it's not useful than an ac circuit?
Swagatam said…
Hi Max, the 4017 and N1 are responsible for the chasing action, N2 is used for producing multiple strobe flashes on the LED while it is chasing.

If you are intending to allow the LED to chase upto 7 sequences, in that case you eliminate the N2 output connection with the LED, and connect the LeD cathode ends to ground.

for stopping the chasing after 7 sequences could be done by connecting pin#6 with being removed from ground

connect pin15 directly with ground
Max said…
Hj again Swagatam
I really appreciate your patience and extensive knowledge.
I don't think I made myself too clear in my previous post.
What I would like to do is to make 7 outputs strobe very fast for 1 cycle and then all 7 outputs should stay on while a positive voltage is present.
I wish to use 20 leds.
Should pin 15 be grounded via a 100R resistor?
Thanks again and keep up the good work. I learn more every time...
Swagatam said…
Thanks Max,

In that you can simply connect pin#15 with ground through a 100K or any high values resistor, and also connect a 0.1uF capacitor from pin#15 to positive supply for ensuring that the LEDs always light up from pin#3 whenever the circuit is switch ON
vikas loh said…
Hello sir
I make this circuit with 10 led.
I want to use this circuit in fence guard for when anyone traped in fence then count 10pulse after than it is off using 555 timer for small time and after than it continuous to work.

But problem is that I give 12v supply using battery.and using second battery I turn on fence guard .but I don't connect fence guard with any connection with counter circuit but every pulse it I remove 13pin from ground then also counter circuit counts.
As we know fence guard is generate 10kv pulse so due to mutual induction counter circuit start count.

Counter circuit and fence guard machine is totally isolated and keeping distance with 1feet but it counter starts and one by one led glow.
There is no connection between them.

How to remove this effect.
Swagatam said…
Hello Vikas, I cannot suggest until I see the entire schematic and how you have integrated the two stages with each other.

Anyway, pin#13 must be connected to the positive supply in order to stop the counting, just by removing it from the ground might not correctly inhibit the 4017 from can do this by connecting pin#13 with that as soon as 10 sequences are over the output locks at pin#11
I used 4017 to lit 8 rows of led. So I connected output 8 to reset pin . But I doesn't see any sort of output/result. Is it the correct way to connect output 8 directly to reset pin
Swagatam said…
Hi, the sequence order of the IC is in the following way

#3, 2, 4, 7, 10, 1, 5, 6, 9, 11

Therefore for getting 8 channel effect, you must connect pin#9 with pin#15.
Swagatam said…
Pin#8 is the ground pin of the IC...
hii Swagatam
i was trying to build an 8x8 LED display board using 74HC595 shift register to send data to eight anodes. and CD4017 to make sure that only one column is active at time. since 4017 is connected to cathodes of LED matrix, i need active low outputs from 4017 . so i used 2N3904 transistor as driver circuit and as inverter. but i doesnt find any useful outcome. whatever the input at base of transistor the output at collector is grounded ,litting all the leds in the matrix if all anodes are high. .... can you figure out and suggest the changes that should be made in the circuit. im using 5v supply
Swagatam said…
Hi Ramchandra,

It looks like your IC is faulty or the transistors are faulty,....because all the NPN cannot stay ON together when connected to an oscillating IC 4017 circuit.

You can put LEDs in series with the base of each transistor and check the response..if still you find the base LEDs also ON then definitely that would indicate a faulty IC 4017..make sure you have a 10K resistor at the bases of the transistors

and also make sure the 4017 sequencing is slow enough so that the LED response becomes viewable if it's too fast all LEDs would appear to be glowing together...
mubasheerahmed said…
Hello .
I am tryingto build a Device by using 555 +4017 as an sequencers . Btw I have many questions but the later I'll discuss first I would like to know what ll be the voltage in 4017 outputs​. This question is because , I am building a device in which every pins of 4017 outputs have been connected 3-4 LEDs and as well several ICSof 4017 are connected in series with the same outputs configurations​ so please let me know or if you have any better simple solution for me thankful for your concern ..
Swagatam said…
the output from a 4017 IC will be almost equal to the supply voltage connected to its pin#16...
NEMI Okuru said…
pls how do i build a a reading lamp of 24 LEDs with 6volt 4.5amp battery ?
Swagatam said…
make 12 strings of LeDs having 2 LEDs in series on each string...connect all the ends of these 12 strings with the battery terminal with correct polarity.
Oluwatoyin R said…
Good day Sir, I want to 4017 and band switch to on two LED which means I need only two pins to work (0,1) and it should restart again and the pressing of the switch will control it.
How can I do that Sir.
Swag said…
OLuwatoyn, you can try the following concept

just replace pin#10 with can be left unused
Jimmy said…
Hi thank you for posting this . I built a sequencer for a tone generator and it works but when I turn the rate up to a certain point it stalls and won't go faster. Recently reconfigured the casing and it suddenly worked in process but now back to stalling any ideas? Thanks
Swag said…
Hi, which IC stalls? is it the IC 4017, can you tell me what exactly happens?? I'll try to solve it for you....
Jimmy said…
There is a 555 and a 4017, I'm not sure which one is acting up. What I have is an "Atari punk console" with a four tone sequencer , 4 100k potentiometers for tones and a 500 ohm (I think) for speed. It works but when it is running and I increase the speed, it will only go so fast and then stop on one of the tones. I was adding a keyboard to it the other day and so I was moving the boards around and such and I was testing it while I was working on it to make sure things were still working and I noticed it would then go as fast as I wanted it to, like to infinite. When I repackaged the whole thing and it was finished it was back to stalling again. So im not sure if it's the 555 or the 4017. Sorry kind of a newbie thanks for quick response.
Jimmy said…
I figured it out thank you two pins on the 555 needed to be soldered together
Nishanth said…
yes I was doing a traffic signal using 4017 and 555 timer, and the circuit shows 12 connected to the red LED, I understood the working of yellow and green, but I did not understand why red was connected to pin12
Swag said…
pin#12 of IC 4017 is the carry out pinout, which will enable carrying forward the frequency from the IC 555 to probably a next similar stage.
Paul Jefferies said…
Hi, thanks for the circuit. Happy Christmas.
I want to build the sequencers for use with eurorack music modules to provide adjustable control voltages. The clock pulse will be supplied whenever a drum pad is played.
Because the clock signal will therefore be intermittent, should I clamp pin 14 to negative supply with a 100K resistor in a similar way to pin 15 clamped to ground?
Swag said…
Hi, Happy Christmas to you too!

yes a 100K to ground is OK, and also a 10uF capacitor in parallel with this 100K will be required, you can tweak this value to suit the needs... this capacitor will actually help to rectify the intermittent signals and enable a constant voltage to the pin14 of the IC....

Contact me for Customized Circuits


Email *

Message *

 Follow on G+  Follow on Facebook   Follow on Tweeter  Follow on G+  Follow on G+