Go Down

Topic: using a permanent switch (Read 574 times) previous topic - next topic

Rupertt

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


robtillaart

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.


Rob Tillaart

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

Rupertt

that helped, thnx.
I have that working now

robtillaart

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

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

liudr

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

Go Up