Wiltshire, UK
Offline
Newbie
Karma: 0
Posts: 44
Arduino rocks
|
 |
« on: January 28, 2011, 04:31:49 am » |
Hi all
I'm not sure if this is a standard thing or not, but I'm looking for a switch which will allow any of 3 contacts to join any of the other 3, eg...
A <--> B A <--> C B <--> C
I'm actually after a "double pole" version of the above, but I have no idea if it exists or what name it has.
In terms of what I'm trying to acheive, I'm trying to design a board with 2 arduinos on it, but only one header for a single FTDI cable to swap between the two, plus allow the arduinos to talk over the serial connection.
Hope all that makes sense. Thanks in advance!
Olly
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 269
Posts: 25392
Solder is electric glue
|
 |
« Reply #1 on: January 28, 2011, 08:27:52 am » |
I have not come across such a switch. Generally you can get multy pole mulity way switches. So it should be possible to wire one of these to get what you want, if you can define it better than you have in the first post. You can search for the switches here:-
|
|
|
|
|
Logged
|
|
|
|
|
Wiltshire, UK
Offline
Newbie
Karma: 0
Posts: 44
Arduino rocks
|
 |
« Reply #2 on: January 28, 2011, 11:19:10 am » |
Thanks for the responses.
Essentially what I'm looing to do is have 2 embedded arduinos talk to each other over serial. But they'll need reprogramming in place, so I'd like a header for an FTDI lead on the board. Then, using a switch, I can select one of the 3 options:
- Arduino A talking to Arduino B over serial - Arduino A talking to FTDI over serial - Arduino B talking to FTDI over serial
It looks like this is doable with a 4P3T switch, but the ones I've seen seem to be fairly bulky. Guess that's what you get for wanting so many contacts!
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15309
Measurement changes behavior
|
 |
« Reply #3 on: January 28, 2011, 11:50:18 am » |
It would be best if you could show your usage of such a switch with the circuit they would be used with. However if it's not a switch that needs to be changed often a simple multi-pole single throw DIP switch might work for you. Three of the rocker switches on the dip switch will be called A,B,and C. Wire one side of a,b,c contacts together and the other side of the three rockers will be your a,b,c contacts to wire to whatever you are wiring to. Then just close whichever two rockers you want connected.
Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Wiltshire, UK
Offline
Newbie
Karma: 0
Posts: 44
Arduino rocks
|
 |
« Reply #4 on: January 28, 2011, 12:35:38 pm » |
Hi Lefty I sketched out a quick diagram of what I want to achieve. It allows each of A, B and C to communicate with each other over the serial pins using a 4P3T switch. Sorry for messiness! 
|
|
|
|
|
Logged
|
|
|
|
|
Calgary, AB
Offline
Newbie
Karma: 2
Posts: 46
Arduino Newbie
|
 |
« Reply #5 on: January 28, 2011, 02:45:32 pm » |
Hi Olly
You may want to look at implementing this with an electronic switch
Look at the 74HC153 4:1 multiplexor http://www.datasheetcatalog.org/datasheet/philips/74HC_HCT153_CNV_2.pdf
Your switch would be a simple SPDT center off
Connect the switch to the S0,S1 pins
S0 S1 (S0 and S1 are tied H thru resistors) Center Off 1 1 Toggle UP 0 1 Toggle Down 1 0
Switch will apply ground or low when toggled to one of the pins. Gives you your 3 options.
The multiplexor is a Dual 4:1 so it will handle TX and RX inputs
The only concern; I have not reviewed is the speed of the serial connection you want to switch.
Regards Bill
P.S. after posting I realized it handled A-B, A-C but does not handle B-C
|
|
|
|
« Last Edit: January 28, 2011, 02:53:49 pm by Bill_Kerr »
|
Logged
|
Don't you just hate ONE D 10 T problems?
|
|
|
|
Wiltshire, UK
Offline
Newbie
Karma: 0
Posts: 44
Arduino rocks
|
 |
« Reply #6 on: January 28, 2011, 03:44:07 pm » |
Hi Bill
Thanks for your input. Even if this doesn't work in this situation, it certainly looks like a useful bit of kit, and I'm sure it'll get integrated at some point!
Cheers
Olly
|
|
|
|
|
Logged
|
|
|
|
|
Red Sea, Saudi Arabia
Offline
God Member
Karma: 11
Posts: 579
..On The Red Sea
|
 |
« Reply #7 on: January 28, 2011, 04:04:55 pm » |
Typically this multipole multiposition switch is implemented with a "rotary Wafer Switch". No problem getting a "4 pole 3 or 4 position" switch of that type.
Think of the typical pre-digital tape recorder and stereo function selector.
|
|
|
|
|
Logged
|
|
|
|
|
Reading, UK
Offline
Newbie
Karma: 0
Posts: 5
Arduino rocks
|
 |
« Reply #8 on: January 28, 2011, 04:43:12 pm » |
Hi, When I read this thread, I wondered whether this could be implemented using simple logic... and I came up using with this in LogicSim (well its a start at least)... Three Way by Harkumbar, on Flickr My question is this: could the required switch be implemented using simple logic like this? If not, could someone please explain (in simple terms) as to why not? Obviously the mechanical switch that would be required to switch the inputs has not been included and steps would be needed when wiring it to prevent all three inputs from being HIGH. Harko
|
|
|
|
|
Logged
|
A Newbie knows more than me - so please be patient :o)
|
|
|
|
Calgary, AB
Offline
Newbie
Karma: 2
Posts: 46
Arduino Newbie
|
 |
« Reply #9 on: January 30, 2011, 01:20:58 am » |
Hi Olly I revisited my answer I could not find a quad 2:1 decoder, so stayed with dual 4:1 Here is half the answer, you need to do the same for the RX line. The same 4 address lines can be bussed to the othe multiplexor and decoder. switch by ferroequinologist-srrl, on Flickr The diodes keep the lines isolated (lookup diode matrix) P.S. If the image does not appear, I'll have to see what I am doing wrong. The image is posted here. http://www.flickr.com/photos/selkirksceneryco/5400381380/
|
|
|
|
« Last Edit: January 30, 2011, 01:41:49 am by Bill_Kerr »
|
Logged
|
Don't you just hate ONE D 10 T problems?
|
|
|
|
Wiltshire, UK
Offline
Newbie
Karma: 0
Posts: 44
Arduino rocks
|
 |
« Reply #10 on: February 01, 2011, 05:06:02 pm » |
Many thanks for that Bill! Second arduino is due any day now, so will be giving various ideas a go.
Cheers
Olly
|
|
|
|
|
Logged
|
|
|
|
|
|