ToolSphere
All perfboard layouts

Push Button With Pull-Up on Perfboard

A button wired between a GPIO pin and ground, with a 10 kΩ resistor holding the pin high when the button is released. This is how most microcontroller buttons are wired.

Pull-up + button perfboard layoutR1 10kSW1
Open this layout in the simulator Connection check: no shorts, 3 named nets

Red wires carry power, white is ground, yellow and blue are signals. Every hole is an isolated pad; connections are the wires shown. In the simulator you can move parts, add your own and re-run the check.

Parts list

As an Amazon Associate, ToolSphere earns from qualifying purchases.

How it works

Without the resistor, a released button leaves the pin floating: it picks up noise and reads random highs and lows. The pull-up gives it a defined high, and pressing the button connects it straight to ground, which wins.

Current when pressed is tiny: 3.3 V ÷ 10 kΩ = 0.33 mA. The logic is active low: the pin reads LOW when pressed.

Most microcontrollers have built-in pull-ups (pinMode(pin, INPUT_PULLUP) on Arduino), so the external resistor is optional there. Keep it for long wires to a panel button, or for chips without internal pull-ups.

Building it, step by step

  1. Run +3V3 along the top row and GND along the bottom row.
  2. Fit the 10 kΩ resistor from the +3V3 rail down to the junction.
  3. Fit the button from the junction down to the GND rail.
  4. Take a wire from the junction to the GPIO pin.
  5. In code, read the pin: LOW means pressed. Debounce in software (about 20–50 ms).

Tools for this build

Frequently asked questions

Why do I need a pull-up resistor on a button?

So the input has a definite level when the button is open. Without it the pin floats and reads noise, which looks like random presses.

Pull-up or pull-down?

Either works. Pull-up with the button to ground is the common choice because microcontrollers have internal pull-ups, and the button then shares the ground rail.

What value pull-up should I use?

10 kΩ is the usual choice: strong enough to resist noise, weak enough to waste only 0.33 mA at 3.3 V when pressed. 4.7 kΩ suits long wires.