Login / Signup
Cart
Your cart is empty
This little wired momentary push button is a compact and convenient way to add super-simple GPIO control to your project. It acts like a simple 2-wire momentary button. The circuit stays open until the button is pushed, which then connects the circuit until it's released again - it's as simple as that!
It's not a latching type, so this can't be used as a hardware ON/OFF switch (but you could code it that way in your software, just like the Pico example below).
The button has a nice clicky action and comes with a self-adhesive backing to mount it in the ideal position. The end of the wire is bare, ready to strip for use in a solderless breadboard, terminal blocks or soldering directly to a PCB.
The overall length of the unit is approximately 52cm, with the wire section measuring around 49cm. The button also includes some strain relief to ensure the wires stay put.
You could follow the Raspberry Pi guide on wiring a button to the original Raspberry Pi Pico to light the onboard LED on GPIO 25*. Connect one wire to GPIO14 (physical pin 19), another wire to 3.3V (physical pin 36) and use the example code to toggle the LED:
from machine import Pin
import time
led = Pin(25, Pin.OUT)
button = Pin(14, Pin.IN, Pin.PULL_DOWN)
while True:
if button.value():
led.toggle()
time.sleep(0.5)
*Note the Pico W uses a different pin for the onboard LED.