Public projects 1

10 Buttons Using 1 Interrupt

Project tutorial by Svizel_pritula

  • 46,043 views
  • 15 comments
  • 85 respects

Toolbox 3


Respected projects 3

Exoskeleton for Paralytic Arm

by somrkmv1997

  • 7,862 views
  • 9 comments
  • 56 respects

Make an Autonomous "Follow Me" Cooler

Project tutorial by Hacker Shack

  • 228,014 views
  • 303 comments
  • 716 respects

Garden Clock Project

Project showcase by PuranSingh and PiaraSingh

  • 8,152 views
  • 23 comments
  • 35 respects

  • 10 Buttons Using 1 Interrupt 9 months ago

    Hi, I don't know what else you are doing in your loop, but generaly it shouldn't take too long to use polling. If you're doing time sensitive operations, basicaly any solution you might use to detect button presses will distupt it. This solution won't work correctly if you press multiple "buttons" at once anyway. Perhaps you can try change interrupts on multiple ports?

  • 10 Buttons Using 1 Interrupt over 1 year ago

    While there is no way to figure out for sure which one it was, but we assume it's the one that's currently pressed. In my code, I just use a for loop to go over all pins and check if they're being pulled low.

  • 10 Buttons Using 1 Interrupt over 1 year ago

    It's not the debounce, the problem is that having one button pressed will stop the interrupt from being triggered at all. You can get around that by either doing the checking in the loop once you detect a press, or by putting a pin to INPUT once its button is pressed. Both options have flaws, through. In this case, pin change interrupts are probably the best. (See link in the introduction)

Add projectSign up / Login