I did a lot of research on the topic and even for a supposedly "minimal" debouncing solution it doesn't make sense to me. Can a resistor and capacitor be wired in parallel like that? What is the initial current through the capacitor when I plug in the Arduino? Could this not potentially damage the board? I am probably missing something but this circuit looks incorrect to me. Even when I try replicating it in Falstad's Circuit JS I get an error message that reads "Capacitor loop with no resistance!"
Thank you, yes that looks much more reasonable with the R and C in series...
I'm still wondering: What does the circuit from that "educational" kit accomplish exactly? And can it potentially cause damage by drawing too much current when it is first switched on?
Supposedly the resistor will keep the input of the processor (would be at the left) in a LOW state if the switch is not connected to 5V. But in that scenario the switch is connected to GND so the resistor is redundant; the resistor will only be useful if you remove the switch.
The capacitor is useless for debounce because it charges with a hard 5V in no time and discharges in no time via GND if the switch is thrown to GND.
Each time you move the switch from 0V to 5V or vice versa the capacitor charges or discharges through very little resistance, which will just be the internal resistance of the power supply, the resistance of the connecting wires and the switch. This will result in a very short spike of current to the capacitor and a matching voltage spike on the power supply. Voltage spikes on the power supply can cause weird problems, and is what decoupling capacitors are there to suppress. That alone makes this a bad design.
A current spike could in principle damage the switch contacts, but I suspect there isn't enough energy involved in charging a 0u1 capacitor by 5V to damage anything.
Thank you @PerryBebbington and @sterretje . I learned a lot from your explanations.
I must say my first experience with this forum has left a very positive impression. I look forward to engaging more with the community and in time, giving back.