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 😊

Комментарии • 34

  • @YvanLamontagne
    @YvanLamontagne Месяц назад

    Very clear and complete theorical information. Well appreciated. If you have a chance could you please suggest typical resistance and capacitor values. Thanks.

  • @willibaldkothgassner4383
    @willibaldkothgassner4383 10 месяцев назад +1

    Thank you, perfect explanation and very easy to follow and understand even for non english speaking people!❤❤❤

  • @stalwartekwere2157
    @stalwartekwere2157 11 месяцев назад +1

    Good I read this today. And I'm seeing the practical way of implementing it. Thanks.

  • @aaronocelot
    @aaronocelot Год назад +2

    Great tutorial: simple, but not too simple.

  • @jimedgar6789
    @jimedgar6789 2 года назад +1

    A great option for debouncing! Thank you sir.

  • @CrazyBite2007
    @CrazyBite2007 11 дней назад

    does it matter how the capacitor is orientated? (does it have a positive and negative side or does it not matter?)

  • @HardwareUnknown
    @HardwareUnknown 2 года назад +1

    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.

  • @roguetimz
    @roguetimz Год назад

    Subscribed! Your explanations are clear and concise.

  • @YigalBZ
    @YigalBZ 2 года назад +2

    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.

    • @j.a.seabrook2676
      @j.a.seabrook2676 2 года назад +1

      Is a H11L1 not a Isocom Transistor output Optocoupler?

  • @CarlosAlbertBR
    @CarlosAlbertBR 3 года назад +5

    Excellent explanation, thank you!

  • @Akeshma
    @Akeshma 2 года назад +1

    very clear and nice explanation thanks

  • @danielguimaraesgouve
    @danielguimaraesgouve 2 года назад +1

    Perfect vídeo. Thanks.

  • @welltronic8216
    @welltronic8216  3 года назад +2

    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 😊

  • @arezooslt1236
    @arezooslt1236 8 месяцев назад

    Thank you so much, it was so helpful

  • @djough1
    @djough1 3 года назад +1

    Thanks! What I've been looking for.

  • @pokpikchan
    @pokpikchan 7 месяцев назад

    wow I undertood after soo long.

  • @ericgroen253
    @ericgroen253 2 года назад +4

    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. 🙂

    • @thepvporg
      @thepvporg 2 года назад +1

      I have seen a similar video they said 100 ohm for R1 and 10 ohm for R2 with a .47uF cap.

  • @0MoTheG
    @0MoTheG 11 месяцев назад

    Would not a delay RCRC+SchTrig and comparison NXOR be better?

  • @rpasco9352
    @rpasco9352 2 года назад +1

    Why are there no switch(es) debouncer(s)/switch(es)+debouncer(s) modules available ANYWHERE ???

  • @educationaltechnology8363
    @educationaltechnology8363 3 года назад

    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?

    • @sleepib
      @sleepib 2 года назад

      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.

  • @minhkhoivotan6546
    @minhkhoivotan6546 3 года назад +1

    Can i ask the value for R2? 1K Ohm or anything else ?

  • @tranxuannam1820
    @tranxuannam1820 3 месяца назад

    thanks

  • @MadMatty72
    @MadMatty72 Год назад

    Nice, thx

  • @thepvporg
    @thepvporg 2 года назад +2

    Christ sake, do something about the intro and outro volume, its nearly popped my speakers.

  • @9700784176
    @9700784176 Год назад

    you are an excellent teacher. Thank you

  • @lukaskolinsky8639
    @lukaskolinsky8639 Год назад

    Ehrenmann!

  • @eliastv799
    @eliastv799 3 года назад

    ❤️❤️❤️

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 Год назад

    👍

  • @electronmath8609
    @electronmath8609 3 года назад

    👍👍👍

  • @bobharrison9620
    @bobharrison9620 3 года назад

    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.