Arduino Forum
>
Using Arduino
>
General Electronics
>
Need help reversing a button
Print
Go Down
Pages:
[1]
Topic: Need help reversing a button
(Read 602 times)
previous topic
-
next topic
CyborgHamster
Guest
Need help reversing a button
Oct 25, 2013, 06:53 pm
Hello,
I'm sure there is a simple solution to this but I can't find one. I have an led wired similar to
http://arduino.cc/en/Tutorial/Fade
. Instead of the LED fading in and out, I want the LED to light up by default and turn off when a button is held in. I know I can do this using code, but I was wondering how to do this using only the 5V and GND pegs.
Any help will be appreciated.
Thanks
AWOL
Global Moderator
Brattain Member
Posts: 48,855
Karma: 1479
[add]
I don't think you connected the grounds, Dave.
Re: Need help reversing a button
#1
Oct 25, 2013, 07:14 pm
Use a normally-closed switch.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.
CyborgHamster
Guest
Re: Need help reversing a button
#2
Oct 25, 2013, 07:17 pm
I knew it was something simple. I did not know those existed.
Thanks!!!
Pelleplutt
Sr. Member
Posts: 324
Karma: 15
[add]
Re: Need help reversing a button
#3
Oct 25, 2013, 07:59 pm
Let the pushbutton short the LED. This will draw a little bit more current but..........
Pelle
Print
Go Up
Pages:
[1]
Loading...