I have several different push buttons in my project and think I'll just use Schmitt triggers to deal with debounce, rather than adding complexity to my code. But I have a couple of questions:
I have seen two different schematics for how to connect a Schmitt trigger for debouncing switches with Arduino. Can anybody advise if one is better than the other, and why? Examples of each version attached. You can see that one circuit has an addition resistor, R2. Not sure what that does?
Possibly related...my understanding is that with a Schmitt trigger (and surrounding resistor-capacitor circuit) I don't need a pull-up or pull-down resistor between the Schmitt output and the Arduino input pin, because the Schmitt trigger will always put out either a high or low signal (so long as it has power) -- correct ASSumption?
Thanks for your valuable insight!