Pages: [1]   Go Down
Author Topic: Need help reversing a button  (Read 208 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25630
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Use a normally-closed switch.
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I knew it was something simple. I did not know those existed.

Thanks!!!
Logged

Offline Offline
Full Member
***
Karma: 8
Posts: 193
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Let the pushbutton short the LED. This will draw a little bit more current but..........

Pelle
Logged

Pages: [1]   Go Up
Jump to: