
This circuit features two DPDT switches that control the direction of two MRB Planetary gearbox motors. The switches are connected to a connector, allowing for external control inputs to change the motor directions.

The Electronics-Salon 2 DPDT switch is a versatile and robust component that plays a crucial role in electronic circuits. A Double-Pole, Double-Throw (DPDT) switch can control two different circuits within a single switch mechanism, allowing for more complex switching operations. This switch is commonly used in applications such as reversing the direction of motors, switching between different audio signals, or as part of relay and toggle operations.

This circuit features two DPDT switches that control the direction of two MRB Planetary gearbox motors. The switches are connected to a connector, allowing for external control inputs to change the motor directions.

This circuit consists of two toggle switches and a red lamp connected to panel mount banana sockets. The switches control the connection between the red and black banana sockets, allowing the lamp to be turned on or off depending on the switch positions.

This circuit uses two DPDT switches to control the direction of four center shaft metal geared motors powered by a 3xAA battery pack. The switches allow for reversing the polarity of the motors, enabling forward and reverse motion.

This is a dual-channel pushbutton-controlled LED circuit. Each channel uses a pushbutton to activate an NPN transistor switch, which in turn lights up an LED. The circuit operates on a 5V DC supply.
| Pin Number | Description |
|---|---|
| 1 | Pole 1, Input/Output |
| 2 | Pole 1, Throw 1 |
| 3 | Pole 1, Throw 2 |
| 4 | Pole 2, Input/Output |
| 5 | Pole 2, Throw 1 |
| 6 | Pole 2, Throw 2 |
Q: Can I use this switch with an Arduino UNO? A: Yes, the switch can be used to control circuits connected to an Arduino UNO, provided the voltage and current ratings are within the Arduino's limits.
Q: How do I reverse the direction of a DC motor with this switch? A: Connect the motor between the throws of one pole, and supply voltage to the common pin. Flipping the switch will reverse the polarity and thus the motor direction.
Q: Is debouncing necessary for this switch? A: If the switch is used for digital signal input, debouncing is recommended to prevent multiple signal changes from mechanical vibrations.
// Example code to read the state of the DPDT switch connected to an Arduino UNO
const int switchPin1 = 2; // Connect to Pole 1
const int switchPin2 = 3; // Connect to Pole 2
void setup() {
pinMode(switchPin1, INPUT_PULLUP); // Set the switch pin as input with internal pull-up
pinMode(switchPin2, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
int stateSwitch1 = digitalRead(switchPin1); // Read the state of the switch
int stateSwitch2 = digitalRead(switchPin2);
// Output the state of the switch to the Serial Monitor
Serial.print("Switch 1 State: ");
Serial.print(stateSwitch1);
Serial.print(" | Switch 2 State: ");
Serial.println(stateSwitch2);
delay(100); // Debounce delay
}
Note: The above code assumes that the DPDT switch is connected in such a way that when the switch is in one position, the connection is made between the pole and throw 1, and when in the other position, the connection is made between the pole and throw 2. Adjust the pin numbers and logic according to your specific wiring.