Go Down

Topic: How to use toggle switches with arduino (Read 826 times) previous topic - next topic

Hi,
can any one help with respect to toggle switches connection, i do not want to use it as ON/OFF switch only but as a toggle switch to connect 2 different circuits at one time .. im unable to read the data on both the ends while keeping middle pins as stand alone

fungus


a) Place switch in different positions

b) Measure resistance between pins with multimeter
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Nick Gammon

Ground the middle pin. Connect the other ones to data pins appropriately.

http://www.gammon.com.au/switches
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

craigcurtin


Hi,
can any one help with respect to toggle switches connection, i do not want to use it as ON/OFF switch only but as a toggle switch to connect 2 different circuits at one time .. im unable to read the data on both the ends while keeping middle pins as stand alone



This is an ON/OFF/ON switch.

As Nick has said - treat the centre poll as ground and connect the other two legs to which input pin you wish to measure

Craig

Henry_Best



Hi,
can any one help with respect to toggle switches connection, i do not want to use it as ON/OFF switch only but as a toggle switch to connect 2 different circuits at one time .. im unable to read the data on both the ends while keeping middle pins as stand alone

This is an ON/OFF/ON switch.
As Nick has said - treat the centre poll as ground and connect the other two legs to which input pin you wish to measure
Craig

But using it, he won't be able
Quote
to connect 2 different circuits at one time.
Only one at a time.

MAS3

Hold the switch like the picture you showed.

With the lever in the center position, no connection will be made.
With the lever in the left position, the center pin will be connected to the right pin.
With the lever to the right, the center pin will be connected to the left pin.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

craigcurtin


Hi,
can any one help with respect to toggle switches connection, i do not want to use it as ON/OFF switch only but as a toggle switch to connect 2 different circuits at one time .. im unable to read the data on both the ends while keeping middle pins as stand alone



Hang on - can you state what you are trying to do here ? If you want to connect TWO DIFFERENT circuits at once then you need a Dual Pole Dual Throw (DPDT) switch. That is not what you have pictured .

Craig

Go Up