science tinker

DIP switch DPST (×2)

Two tiny on/off switches side by side in one package.

Switches and controls · Elements inside: CuAuCHO

Function: what a DIP switch DPST does in a circuit

Two tiny on/off switches side by side in one package.

  • Gives two small on/off switches in one part
  • Sets one of four options that stays put
  • Feeds test inputs to logic chips

DIP switch DPST key facts

Switches2 separate on/off switches
Legs4: each switch joins the leg above it to the leg below
Pitch2.54 mm
Ratingabout 25 mA

Pinout

The legs from left to right, as the part is drawn in the simulator:

No.Name
1switch 1 (top)
2switch 2 (top)
3switch 1 (bottom)
4switch 2 (bottom)

How it works

Each switch joins the leg above it to the leg below it. Put it across the middle gap and read each switch with a pin set to INPUT_PULLUP (other side to GND): ON reads 0, OFF reads 1. Two switches give 4 settings (00, 01, 10, 11).

What it is made of

  • Contacts: Gold-plated copper alloy CuAu
  • Body: Heat-resistant plastic CHO

Where the materials come from: Copper from chalcopyrite; gold plating from gold mines.

The chemistry

Gold is so unreactive that it stays shiny and conductive for decades, so even a thin layer protects the contacts.

Biology connection

Two switches give 2² = 4 combinations, like the two alleles of two genes giving four combinations in a Punnett square. Gametes and meiosis →

Safety and the environment

Flip them with a pen tip.

Did you know? DPST means "double pole, single throw": two separate switches that each just open or close.

Try it in the simulator

Add it from the parts bin in Free build: it works with a battery and no code at all.

Questions students ask

What does a DIP switch DPST do?

Two tiny on/off switches side by side in one package. Main functions: gives two small on/off switches in one part; sets one of four options that stays put; feeds test inputs to logic chips.

Are the two switches of a DIP ×2 connected?

No. Each switch only joins its own top leg to its own bottom leg, so the two can switch two different circuits.

What are the connections of a DIP switch DPST?

In order: switch 1 (top), switch 2 (top), switch 1 (bottom), switch 2 (bottom).

How does a DIP switch DPST work?

Each switch joins the leg above it to the leg below it. Put it across the middle gap and read each switch with a pin set to INPUT_PULLUP (other side to GND): ON reads 0, OFF reads 1. Two switches give 4 settings (00, 01, 10, 11).

What is a DIP switch DPST made of?

Contacts: Gold-plated copper alloy. Body: Heat-resistant plastic.

Is a DIP switch DPST safe? How should it be recycled?

Flip them with a pen tip.

More switches and controls

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.