5v Arduino input with standard 110v Rated button

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Great! I was just double checking. I wanted to make sure all my hardware was there before soldering.

Yes this button will work fine with 5V. But you have to do software de-bouncing.

Yes, I found I needed to do that with the light weight proto button. It was an odd awakening seeing the interrupt trip without me pressing the button.
 
If interrupt occurs without pressing the button, it is wired incorrectly. You probably left the pin floating. You'll need an external pull up/down resistor or enable the internal pull up (if switch is connected to ground).
Debouncing is only to avoid having one press registering multiple times. A trick that I find very useful to avoid messy debouncing, is to not use interrupts, but rather poll switch every 50ms or so.
 
Back
Top