Go Down

Topic: Need help reversing a button (Read 300 times) previous topic - next topic

CyborgHamster

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

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.

CyborgHamster

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

Thanks!!!

Pelleplutt

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

Pelle

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy