I have the following Xbee Shield where I need to constantly switch jumpers in order to allow Xbee communication and/or USB communication.

The following is set for Xbee communication:

Xbee Communication

"Xbee Communication"

The following is set for USB communication:

USB Communication

"USB Communication"

The following is without jumpers (which also acts as USB communication as well):

Without, also USB

"Without (also USB)"

As my Arduino and Xbee Shield are going to sit inside an enclosure with screws and my USB port being quickly available to plug a USB cord into I'd like to attach an ON/OFF switch that acts as XBEE/USB rather than have to unscrew it and manually shift the jumpers into the correct places. I'm not quire sure how to wire up a switch to do this.

Looking from a birds eye view. If the pins are as follows:

(1) (2) (3)
(4) (5) (6)

Considering that without any jumpers attached, it acts as USB communication. Am I then safe to assume that hooking up a switch like the following is going to be easy?


Any help is greatly appreciated.


2 Answers 2


Of course it's possible!

You just need a 3-pin switch that maps exactly the pins of the jumpers, and that commutes from the right to the left pin.

These are some examples...

Then, to connect it I would suggest to use a connector, so you can always come back to the jumpers way, but this way you usually can't disable both...there are also 3-positions switches that allow also to leave the contacts open.

UPDATE: I don't understand well the part with numbers; you need to keep the 2 jumpers separate, so you can use 2 switches and try to mechanically switch them simultaneously, or maybe you can find a switch that can simultaneously command 2 channels...

  • \$\begingroup\$ Grazie tanto! Can you see my updated question. I've added some reference numbers, which I'm not so sure of. \$\endgroup\$
    – gotnull
    Jan 24, 2012 at 9:30
  • \$\begingroup\$ @Fulvio Prego! But the part with numbers has confused me... \$\endgroup\$
    – clabacchio
    Jan 24, 2012 at 9:32
  • \$\begingroup\$ Let's say you're counting from top-left to bottom-right where the top-left is (1) and the bottom-right is (6). \$\endgroup\$
    – gotnull
    Jan 24, 2012 at 9:34
  • \$\begingroup\$ @Fulvio yes but what are you meaning with "the positive lead is attached to (1) (2) and the negative lead is attached to (4) (5)"? \$\endgroup\$
    – clabacchio
    Jan 24, 2012 at 9:35
  • \$\begingroup\$ I've added a photo of the switch I want to use. \$\endgroup\$
    – gotnull
    Jan 24, 2012 at 9:40

Something like this? It will connect either of the two Jumper settings but not do the no jumpers at all mode, if thats even neeeded. Totally use a connector.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.