Tag Archives: Mega

Debounced switches


I have been working on some physical interaction methods with my animations. This is the final version of the pushbutton board for a new project. It has 6 pushbuttons permenently connected to Gnd, the outputs default to Gnd and are fed back to the microcontroller. When a button is pushed, 5v is fed to the output, bur doesnt short out the feed. I use a diode and resistor in series in each button to achieve this. 0 bounce when the button ia pushed combined with a digital read method that does a quick sweep of all inputs