4
\$\begingroup\$

I have a small electrical device that communicates with USB-C power bricks and selects a voltage. (This product if anyone's wondering.) You select the voltage by bridging a specific pair of two contacts on the PCB. I have two desired voltages I would like to switch between with a switch (or button if that works too). So, I was wondering if there's any switch that can alternate between connecting one pair of four wires. Here's an image to help explain:

Image of the off and on position of the switch. In the off position, both sides of the 9V selection are connected. In the on position, both sides of the 12V selection are connected.

Also, I know that the device supports selecting voltages via I2C but I would prefer to not have to use a microcontroller.

\$\endgroup\$
5
  • \$\begingroup\$ the red and blue wires are both connected to ground ... you only need an SPDT switch \$\endgroup\$
    – jsotola
    Commented Jul 28 at 23:26
  • \$\begingroup\$ it is unknown what happens if you flip the switch live ... it may re-negotiate the output voltage ... the output may rise to 20 V after one contact opens and before the second contact closes \$\endgroup\$
    – jsotola
    Commented Jul 28 at 23:28
  • \$\begingroup\$ Good point. I’ll be sure to unplug it before flipping the switch. As for them both being connected to ground, how did you figure that out? \$\endgroup\$
    – Anders_
    Commented Jul 29 at 0:24
  • 1
    \$\begingroup\$ searched through the info on the adafruit site ... found a schematic diagram \$\endgroup\$
    – jsotola
    Commented Jul 29 at 0:28
  • \$\begingroup\$ The generalized question here is great, if you ignore the small details. The core of it is "What do engineers call this type of switch?", a good question since it's a bit convoluted. \$\endgroup\$
    – pipe
    Commented Jul 29 at 23:33

3 Answers 3

8
\$\begingroup\$

Certainly, there are great number of switches which can do this.

One of the most common kinds of switch is the Double Pole Double Throw switch (DPDT) also called Dual Pole Dual Throw or Two Pole Changeover and many other variants. It will do exactly what you want. You can find them in all varieties: slide switches, toggle switches with a lever, push switches.

You have to make sure it's break-before-make, which means that it disconnects everything before the new connection is made. (This is the usual kind.)

schematic

simulate this circuit – Schematic created using CircuitLab

In your particular case (because RED and BLUE are connected together on your board), you can use just one pole:

schematic

simulate this circuit

\$\endgroup\$
5
  • 2
    \$\begingroup\$ Also referred to as a Double Pole Double Throw (DPDT; DPST is a typo) switch. Make sure it's non-shorting, most of them are. \$\endgroup\$
    – vir
    Commented Jul 28 at 23:05
  • \$\begingroup\$ Thanks for the quick response! I’ve noticed most push buttons for breadboards have four pins. Does that mean they are likely a DPDP switch? \$\endgroup\$
    – Anders_
    Commented Jul 29 at 0:21
  • 2
    \$\begingroup\$ No, those are usually momentary SPST switches with two pins for each terminal. \$\endgroup\$
    – vir
    Commented Jul 29 at 0:22
  • \$\begingroup\$ Gotcha, thanks for the help! \$\endgroup\$
    – Anders_
    Commented Jul 29 at 0:28
  • 1
    \$\begingroup\$ @Anders_ A non-shorting switch would also be known as a break-before-make switch. \$\endgroup\$ Commented Jul 30 at 12:52
4
\$\begingroup\$

according to the published documentation https://learn.adafruit.com/assets/124712

circuit detail

The right side pads are all interconnected and the left side pads select a resistor,

So you could use a simpler single pole doiuble switch for this task.

Or possibly simpler bridge the pads pads for 12V and and use a single throw switch to add a resistor in parallel reduce the 10K down to 6k to get 9V operation. (the resistor you want is 15K) Solder the 15K in series with a switch and connect both to the 5V pads.

\$\endgroup\$
3
\$\begingroup\$

A 4-terminal SPDT toggle switch would do.

enter image description here

Image credit: Indiamart

Here's the schematic.

enter image description here

\$\endgroup\$

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.