Pages: [1]   Go Down
Author Topic: using a permanent switch  (Read 500 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

how do I have to wire a switch that has 3 pins instead of a switch that has the 4 pins in
this example? http://arduino.cc/en/Tutorial/Button
I would like to use such a switch: http://www.conrad.de/medias/global/ce/7000_7999/7000/7010/7013/701343_ZB_00_FB.EPS_250.jpg

greetings

Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 211
Posts: 13490
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Most important is - http://arduino.cc/en/uploads/Tutorial/button_schem.png -

The switch is in the upper corner of the schema. The fact it has four pins is for mechanical stability, but it is just an on off switch. The witch you provide is a ON/ON switch, either left or right is connected. You need to use the middle and the left pin of your switch. The right pin can be left not connected.

Hopes this helps.


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Jr. Member
**
Karma: 0
Posts: 79
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

that helped, thnx.
I have that working now
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 211
Posts: 13490
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you could connect the right pin of the switch to another input pin of the Arduino ...
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

BTW, the switch pictured is a panel-mount. You drill a hole in a panel, stick it through, and secure it with the included nut tightly. That's the only way it will work, stable enough, besides connecting it. You can also buy sliding switches for PCB through holes to easily prototype on a breadboard.

Like this I found on google: http://www.directindustry.com/prod/nkk-switches/slide-micro-switches-9308-39132.html
Logged


Pages: [1]   Go Up
Jump to: