I have been trying to get my hardware debounce finished so I am able to use it with Hardware interrupts. I have been using the below schematic and have laid it out on a breadboard.
and this is how I have laid it out on my bread board. keep in mind I have regulated a 9v input down to 5v for use on the IC chip and signal. The Ic is a 74ls14 Schmitt trigger inverter and the Cap and resistor values are both at 10uf and 10k respectively.
I keep getting behaviour as if the switch is not debounced and im not sure what I am doing wrong.When the button is pressed the voltage on the outbound pin goes from about 0.15v to around 4.5v (approx). The test sketch should cycle through the array and follow itself back again. I have included my breadboard setup, a video and the code.
I keep getting behaviour as if the switch is not debounced
Which would be what?
When the button is pressed the voltage on the outbound pin goes from about 0.15v to around 4.5v (approx).
That's consistent with the design. Are you saying the transition isn't fast enough?
BTW, 10uf is quite excessive for debouncing.
as per the video when i press the button it sometimes doesn't change, but then other times it skips a number, things consistent with a bouncing switch.
i tried alot of different values and time constants. are there any values you could suggest that may fix this problem? from the calculations im using a 10k resistor and a 10uf cap would give a 0.1sec time constant.
Discharging a 10uF capacitor directly through a push button is not a good idea. It will cause a high current pulse to flow, which will induce a voltage on the ground line. Add a 100 ohm resistor in series with the push button.
Personally, I would use software debouncing. BTW, is there a particular reason you want to trigger an interrupt when the switch is operated? The only time I use interrupts with push buttons is when I want it to wake up the mcu from sleep mode.
came up as an option after watching your video. It recommends a 1K ohm resistor in series as DC42 mentioned.
He even scopes it to show you what the circuit is doing.
as per the video when i press the button it sometimes doesn't change, but then other times it skips a number, things consistent with a bouncing switch.
Tough to see any finger action in a video.
i tried alot of different values and time constants. are there any values you could suggest that may fix this problem? from the calculations im using a 10k resistor and a 10uf cap would give a 0.1sec time constant.
as per the video when i press the button it sometimes doesn't change, but then other times it skips a number, things consistent with a bouncing switch.
Tough to see any finger action in a video.
i tried alot of different values and time constants. are there any values you could suggest that may fix this problem? from the calculations im using a 10k resistor and a 10uf cap would give a 0.1sec time constant.
I typically use 10k/0.1u or 100k/0.1u.
using the below calculator those values give me a HUUGGEEEE time constant (1000 sec?)is the calcualtor wrong or is it just me?
I've looked at that video above and tried the exact circuit that was shown on it with the pull down resistor and I'm still not getting results. Could it have something to do with using the 5v regulator into the 14 and the + rail? I'm somewhat lost for ideas