Spike Brewing 12.5 Conical Fermenter Giveaway - Enter Now!

Home Brew Forums > Home Brewing Beer > Automated Brewing Forum > 5v Arduino input with standard 110v Rated button

Reply
 
LinkBack Thread Tools
Old 06-16-2014, 03:16 PM   #1
t_met
Feedback Score: 0 reviews
Recipes 
 
Join Date: Apr 2009
Posts: 94
Liked 10 Times on 5 Posts
Likes Given: 3

Default 5v Arduino input with standard 110v Rated button

I'm working on an Arduino device and want to hook up one of the digital inputs to a button like this:
http://www.ebrewsupply.com/shop/indicators-switches/push-buttons/mushroom-no-switch.html

This would be hooked up to a 5v circuit, not a 110v circuit. However, I'm wondering if this would work.

Basically I want to use it as an interrupt button.

__________________
t_met is offline
 
Reply With Quote Quick reply to this message
Old 06-16-2014, 04:27 PM   #2
Bill_in_VA
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jan 2011
Location: Near Lynchburg, VA
Posts: 61
Default

That would work fine.

__________________
Bill_in_VA is offline
 
Reply With Quote Quick reply to this message
Old 06-17-2014, 05:12 AM   #3
Brumateur
HBT_SUPPORTER.png
Feedback Score: 0 reviews
 
Brumateur's Avatar
Recipes 
 
Join Date: Jan 2014
Posts: 336
Liked 38 Times on 36 Posts
Likes Given: 16

Default

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

__________________

Keep it simple.

Brumateur is offline
 
Reply With Quote Quick reply to this message
Old 06-17-2014, 01:56 PM   #4
t_met
Feedback Score: 0 reviews
Recipes 
 
Join Date: Apr 2009
Posts: 94
Liked 10 Times on 5 Posts
Likes Given: 3

Default

Great! I was just double checking. I wanted to make sure all my hardware was there before soldering.

Quote:
Originally Posted by Brumateur View Post
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.
__________________
t_met is offline
 
Reply With Quote Quick reply to this message
Old 07-03-2014, 05:49 PM   #5
alphaomega
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jul 2013
Location: , Sweden
Posts: 332
Liked 134 Times on 65 Posts
Likes Given: 115

Default

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.

alphaomega is offline
 
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Options
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Japan standard tank to US standard regulator? kasky99 Bottling/Kegging 29 04-01-2014 01:20 PM
Most over/under rated hop ForsythBrewery Recipes/Ingredients 96 04-02-2013 01:50 AM
This fermentation is so violent it should be rated R... Synack Fermentation & Yeast 12 08-08-2012 04:41 PM
Rated recipes? grathan Recipes/Ingredients 4 09-27-2011 08:12 PM
6 best beers for this fall, as rated by CNN ayrton General Beer Discussion 20 12-24-2007 01:34 PM