Skip to datasheet
Momentary SPST-NO tactile switch

Push Button (Tactile Switch) Basic Circuit

Build a basic Push Button (Tactile Switch) circuit with labeled pins, component values and connection guidance.

Package view

Push Button (Tactile Switch) in a circuit

5 V, a 10 kΩ pull-up, the button to ground.

5 V through a 10 kilohm pull-up to the input pin; the push button from the pin to ground; released reads HIGH, pressed reads LOW with 0.5 mA.
INPUT_PULLUP replaces the external resistor with the chip’s own.

Connect it, step by step

Follow the component values and pin connections

Pull the input up

10 kΩ to 5 V (or INPUT_PULLUP) makes the pin read HIGH while the button is open.

Button to ground

Pressed, the button shorts the pin to ground: it reads LOW, and 0.5 mA flows.

Debounce

Ignore edges for 10–20 ms after the first, or add 100 nF across the button.

Component view