How to Understand IC 4017 Pin Outs - Explained in Simple Words

The IC 4017 can be considered as one of the most useful and versatile chip having numerous electronic circuit applications. 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.

So in a way it is counting and also dividing the input clock by 10 and hence the name.



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 assignment names.

The pin out which are marked as output are the pins which become logic high one after the other in sequence, meaning the first in the order is 3, so this pin is the one which first becomes high, then it shuts off and simultaneously the next pin #2 becomes, then this pin goes low and simultaneously the preceding pin #4 becomes high and so on until the last pin #11 becomes high and reverts to pin #3 to repeat the cycle.

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 sequencing or shifting of the output logic from zero to high and back to zero, happens only when a clock signal is applied to the clock input of the IC which is pin #14.

Mind you, if the no clock is applied to this input, 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 pin outs #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 pin-out high and fixed.

Therefore to make the IC function, pin #15 should always be connected to ground. If this pin out 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.

Any questions….:-)

Share this

Related Posts

Previous
Next Post »

57 comments

comments
March 29, 2012 at 11:34 PM delete

for which purpose IC 4017 is used .


thank u..

Reply
avatar
March 30, 2012 at 10:15 AM delete

It depends on the user how he wants to use it...basically it is used for generating sequencing output pulse and for generating decorative LED light patterns, it is also used in timer applications.

Reply
avatar
December 9, 2012 at 3:34 AM delete

really you have a fantastic blog ^_^
thank you so much :)

Reply
avatar
Anonymous
December 11, 2012 at 9:57 AM delete

Hi Swagatam,

can you make a diagram to check if this IC 4017 is working?

for testing purposes only of the IC.

Thanks in advance.

Regards,

Reply
avatar
December 11, 2012 at 12:02 PM delete

You will have to make a 16 pin socket arrangement with the relevant pins assigned to the appropriate positions, and LeDs fixed at the output pins.

The circuit should have an oscillator stage also for feeding pin#14 of the socket.

Then we just need to insert the IC into the socket, press the oscillator button, and check the led sequencing. This will confirm the IC working.

Regards.

Reply
avatar
Anonymous
December 11, 2012 at 1:40 PM delete

Hi Swagatam,

can i use 555 as a oscillator?

Regards,

Reply
avatar
Anonymous
December 11, 2012 at 2:03 PM delete

Hi Swagatam,

thanks a lot for your quick response.

just to clarify the connection of IC 4017:

pin# 16 = positive
pin# 8 = negative (ground)
pin# 14 = connected to pin# 3 of IC 555
pin# 13 = ?
ten output = LED's



Regards,

Reply
avatar
December 11, 2012 at 2:29 PM delete

That's perfect!

pin#13, pin#15 = ground

ten outputs = LEDs with 1K series resistor for each led to ground.

Reply
avatar
December 11, 2012 at 2:30 PM delete

sorry, correction:

ten outputs = LEDs with their free ends (cathodes) made common and terminated to ground via a single 1K resistor.....

Reply
avatar
December 11, 2012 at 2:35 PM delete

555 oscillator will be great!

Reply
avatar
Anonymous
December 11, 2012 at 4:04 PM delete

Thanks a lot Swagatam...

i already made one, its like a toggle switch but i use a solenoid for locking and unlocking my gate.

this blogs of your is very helpful. i also made one of your circuit a automatic voltage stabilizer for appliances.

keep up the good work :)

more power to you!!!

Regards,

Reply
avatar
December 26, 2012 at 10:09 PM delete

can you explain pin#12, carry out pin...what is the purpose of it?

Reply
avatar
December 26, 2012 at 10:20 PM delete

pin#12 is for supplying and forwarding the clock pulses to the following ICs if there are any....

Reply
avatar
Anonymous
January 28, 2013 at 7:25 AM delete

Hi Bro Swagatam, just curious to know if the 4017 can be made to count down as in shifts from high (#11) to (#3)without placing the led to look like its counting down arrangement? Or is there any other similar IC for this not a uController? Thanks I think you can provide me the answer to this question. Thanks bro swagatam.

Reply
avatar
Anonymous
January 28, 2013 at 7:28 AM delete

Sorry Bro, just stumbled upon your other post http://homemadecircuitsandschematics.blogspot.com/2011/12/simple-reverse-forward-led-light-chaser.html :P Thanks again. great post and nice explanations Bro Swagatam.

Reply
avatar
Anonymous
February 19, 2013 at 1:21 PM delete

I am attending ITT tech for an electronics degree and I came up on a request the other day to build a circuit that can count down the days till christmas... could the 4017 ic possibly do this?

Reply
avatar
February 19, 2013 at 7:35 PM delete

You may have to incorporate three ICs, 4060, 4040 and also 4017 for acquiring precise results....

Reply
avatar
Anonymous
February 26, 2013 at 6:58 PM delete

I'm working in electronics workbench in school and it doesn't have 4017, can i change it with some other IC?

Reply
avatar
Anonymous
April 15, 2013 at 10:10 PM delete

I want to know why led at pin 2 is on and pin is of for checking?

Reply
avatar
sonu
June 9, 2013 at 10:10 AM delete

Sir plz contact me.09990333434,9991333434,9992333434. My email id. babaledboard@gmail.com

Reply
avatar
September 29, 2013 at 11:43 AM delete

sir,my name is karthie...i need to know where where this was used...?

Reply
avatar
September 29, 2013 at 7:40 PM delete

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.

Reply
avatar
October 20, 2013 at 5:38 PM delete

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.

Reply
avatar
October 21, 2013 at 9:46 AM delete

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.

Reply
avatar
December 4, 2013 at 11:55 AM delete

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

Reply
avatar
December 4, 2013 at 3:37 PM delete

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:

http://homemadecircuitsandschematics.blogspot.in/2013/03/sequential-bar-graph-turn-light.html

Reply
avatar
May 11, 2014 at 7:12 AM delete

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.

Reply
avatar
May 11, 2014 at 6:05 PM delete

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

Reply
avatar
May 11, 2014 at 10:21 PM delete

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?

Reply
avatar
May 12, 2014 at 9:04 AM delete

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

Reply
avatar
May 12, 2014 at 4:48 PM delete

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.

IN SIMPLE WORDS, THE RANDOM SELECTION DEPENDS UPON THE DURATION OF THE TIME FOR WHICH THE PUSH BUTTON IS PRESSED.

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.

Reply
avatar
May 12, 2014 at 5:15 PM delete

Hi Abu-Hafss,

OK now I got it, but why do we need a monostable anyway? We can use an astable instead.

Reply
avatar
May 12, 2014 at 5:18 PM delete

...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.

Reply
avatar
May 12, 2014 at 6:55 PM delete

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 !!!

Reply
avatar
May 12, 2014 at 8:33 PM delete

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.

Reply
avatar
May 12, 2014 at 8:49 PM delete

may be I misinterpreted your requirement, you don't want the pressing duration to be influencing the result....in that case it will require some thinking and it would make the circuit a bit complex for achieving that.

Reply
avatar
May 13, 2014 at 1:37 PM delete

Hi Swaagatam

Yes, now you got it.....I "don't want the pressing duration to be influencing the result"....:)

Reply
avatar
May 13, 2014 at 5:58 PM delete

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.

Reply
avatar
May 13, 2014 at 9:11 PM delete

HMM, AB GURU JEE AAYE RIGHT TRACK PAR ;)

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?

Reply
avatar
May 14, 2014 at 11:39 AM delete

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.

Reply
avatar
May 14, 2014 at 5:37 PM delete

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.

Reply
avatar
May 15, 2014 at 9:32 AM delete

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)??

Reply
avatar
May 15, 2014 at 11:26 AM delete

Hi Swagatam

Here are the LED dance floor modules (tiles) stacked.
http://i01.i.aliimg.com/wsphoto/v2/568475299_1/tricolor-rgb-led-dance-floor-sale.jpg

Here they are assembled as floor:
http://www.nprentertainments.co.uk/DSCF0215.jpg

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.

Reply
avatar
May 15, 2014 at 8:06 PM delete

That's interesting Abu-Hafss, I'll try to include the idea in my blog soon.

Reply
avatar
May 31, 2014 at 4:46 PM delete

Sir how to ensure whether the output pins of 4017 carries the voltage equal to the supply voltage ?

Reply
avatar
May 31, 2014 at 9:01 PM delete

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.

Reply
avatar
May 31, 2014 at 9:02 PM delete

...you can also refer to its datasheet for the same...

Reply
avatar
July 24, 2014 at 9:21 PM delete

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

Reply
avatar
July 25, 2014 at 12:38 PM delete

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.

Reply
avatar
:3
September 23, 2015 at 8:00 PM delete

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?
THANK YOU!! :)

Reply
avatar
:3
September 23, 2015 at 8:08 PM delete

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)
THANK YOU!!

Reply
avatar

Readers are requested not to include external links while commenting. For consulting a diagram, upload it on Google Drive and provide the link here.