Switch PCB: The Board Behind Every Button

What a Switch PCB Is

A switch board is the least glamorous and one of the most heavily used circuits in electronics. Its job is to turn a physical action into an electrical event, and to do it several million times without wearing out. In a mechanical keyboard, each key has its own switch soldered to a board that reports the keystroke. In an industrial control panel, the switch board collects the state of a dozen push buttons and passes it to a controller. In a medical monitor, it is the front panel assembly.

What separates a switch board from a general purpose board is not the conductors but the mechanical interface. The pads, the contact plating, the mounting and the layout of the switch positions all determine whether the product feels solid after a year of use.

The Parts of a Switch Board

  • Switch contacts and pads. The copper pads under each switch transfer the signal. Their plating decides the contact resistance and how it changes with wear and contamination.
  • Traces and matrix wiring. On a keyboard the switches are wired in a row and column matrix, so that reading a key means scanning rows and detecting a column. This keeps the pin count low and makes the layout affordable.
  • Sockets. Hot swap boards use a socket instead of a soldered joint, so a switch can be replaced without touching a soldering iron. The socket adds height and cost and slightly reduces the reliability of the joint.
  • Diode per switch. A matrix needs a diode in series with each switch to prevent ghosting, where three simultaneous keys produce a false fourth. Without diodes the controller has to assume those combinations cannot occur.
  • Controller and connectors. A microcontroller scans the matrix and reports over USB, or a simple connector carries the states to the main board of the product.
  • Mask and coating. Solder mask prevents bridging, the legend identifies positions, and a conformal coating protects the board where the product sees dust, moisture or cleaning fluids.

Mechanical and Membrane Construction

A mechanical switch board mounts discrete switches, each with its own moving contact and, usually, a spring. The action is tactile, the life is typically in the tens of millions of operations, and the switch can be replaced. The board under it carries the matrix, the diodes and the controller, and it has to hold the switch bodies at exactly the right pitch, so the hole pattern and the panel flatness matter.

A membrane switch board replaces the discrete switch with a printed contact pattern covered by a flexible layer with a conductive pad. Pressing the top layer bridges the contacts underneath. The assembly is thin, quiet and cheap, and it is sealed by construction, which is why it appears in appliances, medical devices and industrial panels. The price is that the feel is uniform and unnoticeable and that the life is counted in a million or two operations rather than tens of millions.

Between the two there are hybrid and dome constructions: a metal dome that snaps against a printed contact, which gives a definite click without a full mechanical switch.

Materials and Plating

FR-4 covers nearly every switch board. Thin laminate is sometimes used to save height in a handset or a wearable, at the cost of stiffness, so the mounting has to support the board. Aluminium backed laminate appears where the board also carries power electronics and LEDs. Polyimide is chosen for a flexible switch layer that folds into a curved housing.

The plating on the switch pads is the part that decides the contact life. Bare copper oxidises and the resistance climbs; a thin hot air levelled tin coating is adequate for a membrane panel with a modest life. Electroless nickel immersion gold is the standard for a board that must keep a stable, low contact resistance across millions of operations, and hard gold is used where the contact is also wiped or mated repeatedly. Gold is not chosen for its conductivity but for its resistance to corrosion and to the film that forms on base metals over time.

Where the board will see dust, humidity or cleaning, a conformal coating over the assembly protects the joints and the traces. Our notes on conformal coating describe the process and where it is applied.

mechanical keyboard switch PCB matrix

Design Rules for Switch Boards

Fix the pitch and the panel flatness. In a keyboard or a control panel, every switch must land in its hole at the same height, so the board thickness tolerance and the flatness matter as much as the hole position. Specifying a tighter thickness tolerance is cheaper than adding a tolerance absorbing mechanism to the housing.

Give every switch a diode. It costs a few cents and it removes the ghosting limitation, which is the difference between a keyboard that works and one that drops keys under fast typing.

Keep the switch lines away from noisy circuits. Switch signals are slow and high impedance, and they are read by the controller as a logic level, so a little coupled noise produces a false keypress. Route the matrix on one side and the power or display circuits on the other where the board allows.

Debounce in hardware or firmware. A mechanical contact bounces for a millisecond or two. That is handled by a capacitor at the switch or by firmware, but it must be handled, or a single press will register several times.

Plan the strain relief. A key is pressed vertically, but a knob or a connector is pulled sideways, and the pad under it sees a shear force with every operation. Add copper area around the pad and specify a mounting feature that carries the load.

Provide test points. A matrix is tedious to debug, so bring the row and column lines to accessible vias and label them. Our notes on PCB design and layout cover the layout rules in more depth.

hot swap socket mounted on switch PCB

How the Board Is Made and Assembled

The bare board is fabricated like any other: copper patterned and etched, holes drilled, mask and legend printed, and the pads finished. Where the switch pads need a specific contact plating, it is applied as a selective finish so that the rest of the board keeps a solderable coating.

Assembly depends on the construction. A membrane panel is often a bare board with a printed contact pattern and no components. A mechanical keyboard board is a mixed assembly, with the controller and the diodes placed in surface mount and the sockets or the switches added afterwards, either by hand, by selective soldering or by a second pass through a wave. Our notes on PCB assembly describe how the through hole and surface mount processes are combined, and our notes on PCB manufacturing cover the fabrication of the selective finishes.

Testing and Durability

Every switch position is tested on a switch board, not a sample of them, because a missing diode or a shorted matrix position is a functional defect that only shows when that key is pressed. The test is usually performed with a fixture that shorts each position in turn and confirms the reading, and it is faster than pressing each key by hand.

Endurance testing cycles a representative switch, or a whole panel, through the rated number of operations while monitoring the contact resistance. Contact resistance that climbs steadily indicates a plating problem or contamination; an intermittent reading indicates a mechanical problem with the switch or the solder joint. Panels that will be cleaned with solvents are also tested after cleaning, since the fluid can carry contaminants into the contact area.

Types of Switch Board

  • Mechanical keyboard. High life, individual switches, diode isolated matrix, often with programmable firmware.
  • Hot swap keyboard. Sockets instead of solder joints, aimed at users who change switches.
  • Flexible switch layer. Polyimide, folded into a wearable, a camera or a small handheld device.
  • Rigid control panel. Industrial and automotive panels with discrete switches, sealing and a rugged mounting.
  • Membrane panel. Thin, sealed, low cost, used in appliances and instruments.

What a Switch Board Costs

The board itself is simple, so the cost is dominated by the plating and the assembly rather than by the laminate. A basic FR-4 switch board runs a few dollars in small quantity and falls well below that in volume. An aluminium backed version roughly doubles or triples the price. A flexible polyimide board is higher again. Gold plating and selective finishes add a step to the process and are charged accordingly, and a panel with a controller adds the assembly cost of the surface mount parts.

The number worth watching is the total cost of the interface, including the switches, the housing and the assembly labour, because on a keyboard or a panel the switches usually cost more than the board beneath them. Our notes on prototype PCB assembly describe how to build the first article before committing to a production run.

FAQ

What is a switch PCB used for? It collects the state of buttons, keys or toggles and passes it to a controller, and it is the board inside keyboards, control panels, remote controls and instruments.

Why do keyboards need diodes? To stop ghosting, which is a false keypress produced when three switches in a matrix are pressed at once.

How long does a switch board last? The board itself outlives the switches. Mechanical switches are rated in tens of millions of operations, membrane panels in a million or two.

Does a switch board need gold plating? Only where the contact must stay low resistance over a long life or where the pad is not covered by solder. A soldered joint does not need gold.

Conclusion

A switch board is a simple circuit with a demanding mechanical requirement. Fix the pitch and the flatness, put a diode at every switch, choose the plating from the required contact life, keep the slow switch lines away from noisy circuits, and test every position rather than a sample. Do that and the interface will still feel new after the warranty has expired.

Leave A Comment