Cascading 4017b

Dodgydave

Joined Jun 22, 2012
11,307
16F690, 16f628, are good starting pics.

also to count to 16, use the first chip on 6, and the second chip on 1, feed into an And gate to reset.
 

Thread Starter

Treeman

Joined May 22, 2014
157
16F690, 16f628, are good starting pics.

also to count to 16, use the first chip on 6, and the second chip on 1, feed into an And gate to reset.
Thanks Dave but the count of 16 (or 8) was for the repetitions of the circuit then to stop but I didn't know how to join this control into my schematic which i'll post next. I think PIC may be the way now and will be neater! Just planning this out on matrix board is a headache you may remember from youth!?
 

Thread Starter

Treeman

Joined May 22, 2014
157
Schematic att. Please rip in and critique. Part choice was tied to availability but its variable and it works on the board.
Questions: Do I need to earth the remaining 'flying?' pins for stability?
 

Attachments

Dodgydave

Joined Jun 22, 2012
11,307
You cant short the outputs of CD 4017 together,they will blow, use diodes .

If you want the counter to stop at the desired count, put the clock inhibit pins on the output of your counter value.
 

Thread Starter

Treeman

Joined May 22, 2014
157
You cant short the outputs of CD 4017 together,they will blow, use diodes .

If you want the counter to stop at the desired count, put the clock inhibit pins on the output of your counter value.

Ok Dave . You caught me, On the Breadboard I have LEDs but I left them off the Sch. - Guilty and thanks.
I need another 4017 to count the passes of the system I have bodged up in the sch. - I have no clue where this input would come from. My guess is after the AND gate i.e. at the buzzer so would actually need 2 more 4017 for a sixteen count (as the buzzer sounds in 2 blocks of 3 for 8 passes.)

The actual system I want is 20 secs,10secs (beep on last 3 secs of each pass) and repeat 8x then stop and reset.
The repeat is whats missing (and the stop and reset).

I have put the LED on the sch. bit scruffy but OK I think
 

Attachments

Last edited:

Dodgydave

Joined Jun 22, 2012
11,307
So you need it to count to 20, then count to 10, (30 in total) and beep on 7 and 27, ??

do it 8 times and stop.

If so you need to connect your AND gate output to the third 4017 clock pin, so when it counts to 30, the third counter clocks, and set it to reset on 8 counts.
 
Last edited:

Thread Starter

Treeman

Joined May 22, 2014
157
So you need it to count to 20, then count to 10, (30 in total) and beep on 7 and 27, ??

do it 8 times and stop.

If so you need to connect your AND gate output to the third 4017 clock pin, so when it counts to 30, the third counter clocks, and set it to reset on 8 counts.
You have the Gist Dave. I want it to beep on 18,19,20 and then 8,9,10 repeat 8 times . I tried the output to a 3rd 4017 but realised that this output goes high (3x2) = 6 times every repeat so 48 counts needed I think. I felt daunted and poor of BB space at this point. LOL Also my LED's stopped flashing when I connected IC3??? I was unsure so stopped.
Maybe I am wrong (or as my Dad was fond of saying "its not often your're right but you are wrong again!"
No wonder I am like I am. LOL
 

Bernard

Joined Aug 7, 2008
5,784
Could'nt bring up your last schematic, JPG works for me. On post # 24 the count would be 7-8-9 except for the AND. Would you be satisfied with 7-8-9 & 17- 18- 19 ? 4017 at reset leaves Q0 high, which means first 4017 counts 1 to 9-- just a thought, can be done any way that you want.
 

Thread Starter

Treeman

Joined May 22, 2014
157
So you need it to count to 20, then count to 10, (30 in total) and beep on 7 and 27, ??

do it 8 times and stop.

If so you need to connect your AND gate output to the third 4017 clock pin, so when it counts to 30, the third counter clocks, and set it to reset on 8 counts.
Could'nt bring up your last schematic, JPG works for me. On post # 24 the count would be 7-8-9 except for the AND. Would you be satisfied with 7-8-9 & 17- 18- 19 ? 4017 at reset leaves Q0 high, which means first 4017 counts 1 to 9-- just a thought, can be done any way that you want.
Ok Bernard, this is what |I have on my board now. The 3rd IC (The 8 cycle count) doesn't seem to be functioning as I would like if at all, Ive swapped the chips over and think they are good. .It was pretty late when I drew the rest up and plugged up the board so errors may be there. I thought the count started on Q0 and when I tried to reset on count 10 I lost one of my LEDs so that's why it is as it is now - even with the LED I am in the dark!

Can I install a global reset switch? Where and how?
 

Attachments

Dodgydave

Joined Jun 22, 2012
11,307
Here is how to clock the third counter, tie all Cinh together, and all resets, the last counter clocks every 30th pulse, it does it 8 times then all counters hold until the reset button pressed, the Led stop lights up on final pulse.


cd4017.png
 
Last edited:

Thread Starter

Treeman

Joined May 22, 2014
157
Thanks DD. I 'll try this now quickly but I have to shoot thru soon so may nt return till after the dentist! aaaghh
 

MCU88

Joined Mar 12, 2015
358
Thanks DD. I 'll try this now quickly but I have to shoot thru soon so may nt return till after the dentist! aaaghh
My dentist gives me scripts for Diazepam :eek: I think he could either put a bullet in you or take one out. Smart guy. He would probably give me scripts for Sodium pentothol (truth serum) -- too.

Shaker, shaker, money maker ball breaker!
 

Thread Starter

Treeman

Joined May 22, 2014
157
not quite but I have to run now. may be something I missed. seems to count too long now on the 20 sec run which was fine before . catch you later thanks.
 

Bernard

Joined Aug 7, 2008
5,784
Your latest schematic still shows a count 17-18-19, 27-28-29; is this what you want? Do you also want the 7-8-9 sec count as an output?
I've shown an outline which includes the 7-8-9 count & at recycle 8, freezes counting untill reset SW is pressed.
Bottom line shows proposed timing.Cascading 4017's 00000.jpg
 

MCU88

Joined Mar 12, 2015
358
Hi

Has anyone looked at using a CD4020B for this?
Just thought I'd throw this out there...

eT
Hello...

Hunter is going to be learning PIC microcontrollers soon to be able to do this. He has purchased the 16F628a PIC, the K150 programmer and has downloaded mikroC.
 
Top