How to debounce a button (Hardware approach)
HTML-код
- Опубликовано: 6 фев 2025
- Hello and Welcome to my channel! In this Video I will explain you how to debounce a button. I will guide you step by step through the Hardware circuit. If you enjoyed this video, give a thumbs up and subscribe 😊 If you have a question, write it down in the comments section. I will answer it as soon as possible.
If you want me to explain a certain topic in a video let me know in the comments! Thanks for watching and see you in the next video 😊
Very clear and complete theorical information. Well appreciated. If you have a chance could you please suggest typical resistance and capacitor values. Thanks.
Thank you, perfect explanation and very easy to follow and understand even for non english speaking people!❤❤❤
Good I read this today. And I'm seeing the practical way of implementing it. Thanks.
Great tutorial: simple, but not too simple.
A great option for debouncing! Thank you sir.
does it matter how the capacitor is orientated? (does it have a positive and negative side or does it not matter?)
Great tutorial, instant save to my electronics playlist for later reference. I had heard of Schmitt triggers but haven't used them so far, and this was a great basic overview of them. Thanks so much, this should help me debounce a vibration sensor I'm working with.
Subscribed! Your explanations are clear and concise.
Thanks for the good video. Few comments: 1) add values for the R & C and explain the effect on the down/up time (and of course on the no-interrupts time) 2) Give a specific Schmidt Trigger reference (i.e. H11L1 ). 3) Usually such debouncers are connected to GPIO, specifically to interrupt. It could be nice to see that connection as well.
Is a H11L1 not a Isocom Transistor output Optocoupler?
Excellent explanation, thank you!
very clear and nice explanation thanks
Perfect vídeo. Thanks.
if you want me to explain a certain topic in a video let me know in the comments!
Thanks for watching and see you in the next video 😊
Thank you so much, it was so helpful
Thanks! What I've been looking for.
wow I undertood after soo long.
Nice one!
I would advise you to also get into the values of the resistors and the capacitator somewhat more.
Or make a different video about that issue with a link in the debounce video. 🙂
I have seen a similar video they said 100 ohm for R1 and 10 ohm for R2 with a .47uF cap.
Would not a delay RCRC+SchTrig and comparison NXOR be better?
Why are there no switch(es) debouncer(s)/switch(es)+debouncer(s) modules available ANYWHERE ???
is this bad when you want a fast response from a button can someone get away without denouncing
how much delay does it introduce to the circuit?
how much time is the delay of this process? and how to lessen the impact and improve response?
If you want low latency and reliable debouncing, I'd recommend using a double throw switch and latched debouncing. You can do this either using separate IO pins for the NC and NO contacts, or you can connect NC and NO to opposite rails, and use a non-inverting buffer with positive feedback to maintain state during a bounce. This will latch into the correct state on the first edge of the closed, and the delay added is whatever the propagation delay is for the buffer you choose, generally some nanoseconds. There are a whole bunch of different kinds of logic, transceiver, or line driver ICs that can be used for this purpose.
Delay or RC filter based debouncing on the other hand usually takes a few to tens of milliseconds. Most people are able to click somewhere between 10 and 20hz, so if you need more than ~25ms to determine what state the switch is in, you have problems missing valid inputs, Also a problem is that some switches bounce for a long time, so much so that a bad debouncing method might both miss valid inputs and also generate spurious inputs.
Can i ask the value for R2? 1K Ohm or anything else ?
thanks
Nice, thx
Christ sake, do something about the intro and outro volume, its nearly popped my speakers.
you are an excellent teacher. Thank you
Ehrenmann!
❤️❤️❤️
👍
👍👍👍
Hello,
Sir there is a utube video that has gotten me tied up in arduino for months now that was explained as just download and your done... I'm not stupid but I bit the hook and am getting my tail kicked bad. I'm about to throw a couple hundred bucks out the door if this next attempt doesn't work. What I was wondering if you hire your Arduino knollage out ? I have books and all the tutorials I can find. But.... Thanks Bob H.