Power supplies, particularly switch-mode types, can have ripple or noise on their outputs. Hence the use of supply decoupling capacitors.Does it mean my power supply is not great?
Power supplies, particularly switch-mode types, can have ripple or noise on their outputs. Hence the use of supply decoupling capacitors.Does it mean my power supply is not great?
Very much alive, but yes I figured out something was wrong with it. I think the latest diagram (see post 20) should be ok.I don't know if this thread is still active, but the clock pins shown in post #1 should have pull down resistors, then pulled up (active high) to clock the input.
I don't see how that will fix it. A CMOS input pin can't sink milliamps of current to drive an LED.Very much alive, but yes I figured out something was wrong with it. I think the latest diagram (see post 20) should be ok.
Agreed. The arrangement the T shows in Fig 1 means that the count should change when the button is released, not pressed.the clock pins shown in post #1 should have pull down resistors, then pulled up (active high) to clock the input.
Well, it works...Well...the 1u cap is doing nothing for debounce.
The datasheet shows 15us max clock rise/fall time, so the clock input really should be externally buffered if using an RC type debouncer with a mechanical switch to keep the clock edges sharp.
The clock pin requires a rise/fall time less than 15 microseconds. An RC type debouncer in intended to provide a slow rise of the input signal from the switch. The switch bounce duration usually is greater than 20 milliseconds, so the RC signal needs to rise slower than that, usually 50ms to cover most decent quality switches. That far exceeds 15 microseconds. So..to keep the input signal that the clock pins see "nice and square", add a schmitt inverter between the RC filter and clock pin. That way the RC filter can rise slowly, but the inverter output will switch quickly (much less than 15us). You'll have to rearrange the filter and switch to be active low, however.Well, it works...
Anyway, my switch is mechanical
View attachment 308021
Could you explain what you mean with "externally buffered if using an RC type debouncer"?
Thanks
This will make everything easier:Hi all,
Foreword: I'm (really) new to electronics, this is my first project.
I'm trying to get a simple counter working with a CD40110B + 7 segment led. After smoking some components I got to a setup that seems to work BUT sometimes it skips a number, e.g. from 4 to 6. Both up or down.
I tried replacing the buttons and the counter, but no luck. The 5V supply seems stable, it's rated for 30W.
I'm using this schematic with additional 330 Ohm resistors inline each segment input.
View attachment 307679
Buttons: Adafruit buttons
Digit: Wurth WL-T7DS 7 Segments Display THT Single Digit T7DS056SC
Counter: CD40110B
Any idea of what the issue could be?
Thanks
Matt
Can you give me some suggestions? I found a wide range of debouncers... I assume I have to go for non-inverting, but I don't know about 1 element, 8 elements, ... thanksThe clock pin requires a rise/fall time less than 15 microseconds. An RC type debouncer in intended to provide a slow rise of the input signal from the switch. The switch bounce duration usually is greater than 20 milliseconds, so the RC signal needs to rise slower than that, usually 50ms to cover most decent quality switches. That far exceeds 15 microseconds. So..to keep the input signal that the clock pins see "nice and square", add a schmitt inverter between the RC filter and clock pin. That way the RC filter can rise slowly, but the inverter output will switch quickly (much less than 15us). You'll have to rearrange the filter and switch to be active low, however.
Here is a common circuit that provides debouncing. See below.Can you give me some suggestions? I found a wide range of debouncers... I assume I have to go for non-inverting, but I don't know about 1 element, 8 elements, ... thanks
https://www.digikey.ie/en/products/detail/toshiba-semiconductor-and-storage/TC74HC245APF/870490
https://www.digikey.ie/en/products/detail/texas-instruments/SN74HC126N/376889
by Dale Wilson
by Aaron Carman
by Jeff Child