Pages: [1]   Go Down
Author Topic: help reading diagram for button  (Read 439 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 1
Posts: 142
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello,

i found this button in a drawer and it fits perfectly in the hole I want to install it in...I think I got it at RadioShack years ago. I googled it and all I found was this diagram:

http://www.sci.com.tw/PRODUCTS/AUTO%20ACCESSORIES/(R13)%20Car%20Switch/(A3)%20PUSH/R13-553.html

I can't really make sense of it. Right now I have pin 3 (LED pin) through a 1k resistor and in ground, pin 2 to the arduino and pin 1 in 12V. The arduino also shares the 12V ground.

The arduino isn't recognizing the button. i want the LED in the button to stay on all the time which it is now, but no pin reading. Any idea how I could rig this up to work with an arduino? i'm so bad at switches...

Thanks for any help!
Logged

Valencia, Spain
Online Online
Faraday Member
**
Karma: 149
Posts: 5619
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you own a multimeter? Try investigating it with that before you connect it to the Arduino.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

0
Offline Offline
Full Member
***
Karma: 1
Posts: 142
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ah good idea hahaha. i'm so dumb. already fried a chip before using multimeter...but yeah it's working fine with multimeter.
so i think what the problem is, is that when the button is HIGH it's giving 12V to the arduino pin....how can i not do this?
Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't connect 12v to the button.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

0
Offline Offline
Full Member
***
Karma: 0
Posts: 239
Yeah Arduino surely rocks !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

... when the button is HIGH it's giving 12V to the arduino pin....how can i not do this?

Maybe you are aware already but anyway: You will kill the digital pin or whole chip by feeding 12V to it's inputs.
It's hard to tell what you should do without knowing any details on how your stuff is wired. Did you have any schematics that show your actual button wiring? Are you doing anything different than http://arduino.cc/en/tutorial/button ?
Logged

Pages: [1]   Go Up
Jump to: