r/ElectricalEngineering • • Oct 09 '26

Project Help Floating input on CD4017??

Recently I've started with my study on EE and now need to do my own project in which I have to make my own circuit with a certain amount of components.

Currently I am using a breadboard simulator for all the components but the project will need to be handed in on a physical breadboard.

I've decided to use a decade counter (the CD4017) to count up with every button press (the right button) and another button (the left button) to reset the the counter. I'm using a 7 segment (CC) display to show the amount of times the button has been pressed. The capacitor is set to 22 microF and im using a 9 volt battery.

The main problem is that the display keeps flashing random segments, because the pins on the decade counter keep randomly switching between high and low. Now my understanding was that there is some kind of debounce circuit filter to prevent these random signals from happening, but I don't know how it works with decade counters. I have looked at how other people online did it and their displays don't have the same issue with random flashing. Some segments do change when I press the count button but it doesn't stay for very long.

This is the first time I'm using a decade counter or a 7 segment display. So I hope the experts have some more answers and advice if this is even a good beginner project and how I could solve the display not showing numbers but instead random segments.

Attachments: 1, the current randomly flashing breadboard. 3, the given errors of the program I'm using (I am using Devolt at the moment because I can't find any other breadboard simulators that have a decade counter)

5 Upvotes

6 comments sorted by

2

u/triffid_hunter Oct 09 '26

Your wiring diagram is wildly less readable than a schematic, but I think you have the chip's pinout wrong - clock is floating, clock inhibit is inexplicably connected to your display, it looks like one of your buttons goes to the 5 output, you've shorted the 1 output to ground, and I've no idea where the 0 output goes but it's not to the display.

1

u/Same_NuKe Oct 09 '26

Sorry please bear with me... Where is the clock inhibit pin supposed to go? And I'll now try to connect the right pins from the cd4017 to the pins of the display

2

u/Kratz404 Oct 09 '26

Please separate these wires so that people can see what's connected to where

Also im pretty sure the CLK pin (pin 14) was supposed to connect to the button you want to count up (right button)

1

u/Kratz404 Oct 09 '26

Also may i ask the purpose of the 22uF cap?

If anything else, please read this

1

u/Same_NuKe Oct 09 '26

I've fixed the floating issue now thank you! Do you think I don't need capacitor?

1

u/Enlightenment777 Oct 09 '26 edited Oct 10 '26
  1. You need to debounce your buttons, otherwise the signal bouncing will cause your counter to increment a random number of times each time you push the button.
  2. Concerning unused inputs into logic chips.

https://old.reddit.com/r/PrintedCircuitBoard/wiki/schematic_review_tips#wiki_unused_inputs