Pages: [1]   Go Down
Author Topic: How to use toggle switches with arduino  (Read 719 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* toggle switch.jpg (28.8 KB, 660x495 - viewed 14 times.)
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 146
Posts: 5494
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


a) Place switch in different positions

b) Measure resistance between pins with multimeter
Logged

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

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 484
Posts: 18768
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://www.gammon.com.au/switches
Logged


Sydney, Australia
Offline Offline
Sr. Member
****
Karma: 6
Posts: 397
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

London
Offline Offline
Edison Member
*
Karma: 47
Posts: 1435
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

The Netherlands
Offline Offline
Edison Member
*
Karma: 50
Posts: 1651
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Sydney, Australia
Offline Offline
Sr. Member
****
Karma: 6
Posts: 397
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: