Arduino Interrupts Debounce Explained

แชร์
ฝัง

ความคิดเห็น • 6

  • @TheBrickagon
    @TheBrickagon ปีที่แล้ว +2

    You sir provided exactly what I needed, and nowhere else I found this problem addressed as you did... Thank you, i was trying for 2 days to solve this problem :))

  • @dannyaviv4583
    @dannyaviv4583 3 ปีที่แล้ว

    Adam! thanks for adding great extra
    content for us

  • @user-uw7vq8gc4s
    @user-uw7vq8gc4s 3 หลายเดือนก่อน

    You could just put a 100nF cap across the switch which will debounce the switch nicely. No need for code to debounce it.

    • @adamjerozolim800
      @adamjerozolim800  3 หลายเดือนก่อน

      true but at this point the students haven't been introduced to capacitors, so that might be more confusing than a coding solution. both would work. with the cap it's harder to tweak the circuit for video games that require fast and frequent presses. with a coding solution you know exactly how many milliseconds you will have before you can press again