Contributors:
El Duderino IntroductionButtons are a great way to add a tactile input to your project but dealing with pull-up resistors, debouncing, polling, and using GPIO pins for each button can be a hassle. Enter the Qwiic Button (Red or Green) and the Qwiic Button Breakout! These breakouts eliminate nearly all the inconvenience of using buttons by converting everything to an easy-to-use I2C connection using the Qwiic Interface.
SparkFun Qwiic Button - Red LED BOB-15932The SparkFun Qwiic Button with red LED simplifies all of those nasty worries away into an easy to use I2C device, no solderin…
SparkFun Qwiic Button - Green LED BOB-16842The SparkFun Qwiic Button with green LED simplifies all of those nasty worries away into an easy to use I2C device, no solder…
SparkFun Qwiic Button Breakout BOB-15931The SparkFun Qwiic Button Breakout simplifies all of those nasty worries away into an easy to use I2C device, and with our Qw…
We have three versions of the Qwiic Button available. The Qwiic Button (Red) and Qwiic Button (Green) come with a pre-populated red or green pushbutton with a built in LED to illuminate the button and the Qwiic Button Breakout leaves the button unpopulated so you can choose your own tactile button.
Using the Qwiic Button is as simple as sending the command button.isPressed()
to check the status of the button. In addition to handling status checks and debouncing, the Qwiic Button has a configurable interrupt pin which can be adjusted to activate upon a button press or click. This allows you to trigger specific behavior or functions in your code when the button is used and frees up processing time that would normally be used to constantly poll a button's state.
The Qwiic Button also includes a First-in First-Out (FIFO Queue) which keeps track of when the button was pressed so if you are hosting a game show you can easily keep track of which contestant pressed their button first without needing to constantly poll the buttons!
Required MaterialsThe Qwiic Button requires a Qwiic-enabled microcontroller:
SparkFun RedBoard Qwiic DEV-15123The SparkFun RedBoard Qwiic is an Arduino-compatible development board with a built in Qwiic connector, eliminating the need …
SparkFun RedBoard Artemis DEV-15444The RedBoard Artemis takes the incredibly powerful Artemis module from SparkFun and wraps it up in an easy to use and familia…
And you will also need a Qwiic cable:
Qwiic Cable - 100mm PRT-14427This is a 100mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
Qwiic Cable - 50mm PRT-14426This is a 50mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together …
Retired Qwiic Cable - 200mm PRT-14428This is a 200mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
Retired Qwiic Cable - 500mm PRT-14429This is a 500mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
RetiredOr, if you want to use a microcontroller without a Qwiic connector, you can add one using one of our Qwiic Shields, the Qwiic Adapter board, or adapter cables:
SparkFun Qwiic Adapter DEV-14495The SparkFun Qwiic Adapter provides the perfect means to make any old I2C board into a Qwiic enabled board.
SparkFun Qwiic Shield for Arduino DEV-14352The SparkFun Qwiic Shield is an easy-to-assemble board that provides a simple way to incorporate the Qwiic Connect System wit…
Qwiic Cable - Female Jumper (4-pin) CAB-14988This is a jumper adapter cable that comes pre-terminated with a female Qwiic JST connector on one end and female connectors o…
RetiredFinally, if you are using the Qwiic Button Breakout you'll need to solder a button to the board:
LED Tactile Button - Green COM-10440This is a simple LED-illuminated tactile button with a green cap. It's just like a basic tactile button, but it lights up gre…
LED Tactile Button - Blue COM-10443This is a simple LED-illuminated tactile button with a clear cap. It's just like a basic tactile button, but it lights up blu…
LED Tactile Button- White COM-10439This is a simple LED-illuminated tactile button with a clear cap. It's just like a basic tactile button, but it lights up whi…
Realistically, you can solder any pushbutton to the Qwiic Button Breakout so long as it fits the button footprint. We have a couple other options available in our Button Category that will work perfectly with the Qwiic Button Breakout.
Heads Up!If you choose an LED Tactile Button, pay close attention to the polarity marks on your button and Qwiic Button Breakout to place it correctly. If the button is inserted with reverse-polarity, the LED will not work. If you are not positive on the polarity of your LED Button, you can
use a multimeter to check.Note: If you want to use the Qwiic Button Breakout then you will need to solder a tactile button to the board. You may already have a few of these items, so feel free to modify your cart based on your needs.
Digital Multimeter - Basic TOL-12966The digital multimeter (DMM) is an essential tool in every electronic enthusiasts arsenal. The SparkFun Digital Multimeter, h…
Solder Lead Free - 15-gram Tube TOL-09163This is your basic tube of unleaded (Pb-free) solder with a no clean, water soluble resin core. 0.031" gauge and 15 grams
Soldering Iron - 30W (US, 110V) TOL-09507This is a very simple fixed temp, quick heating, 30W 110/120 VAC soldering iron. We really enjoy using the more expensive iro…
SparkFun Beginner Tool Kit TOL-14681This assortment of tools is great for those of you who need a solid set of tools to start your workbench on the right foot!
Retired Suggested ReadingIf you aren't familiar with the Qwiic system, we recommend reading here for an overview:
We would also recommend taking a look at the following tutorials if you aren't familiar with them.
Button and Switch BasicsA tutorial on electronics' most overlooked and underappreciated component: the switch! Here we explain the difference between momentary and maintained switches and what all those acronyms (NO, NC, SPDT, SPST, ...) stand for.
I2CAn introduction to I2C, one of the main embedded communications protocols in use today.
Processor Interrupts with ArduinoWhat is an interrupt? In a nutshell, there is a method by which a processor can execute its normal program while continuously monitoring for some kind of event, or interrupt. There are two types of interrupts: hardware and software interrupts. For the purposes of this tutorial, we will focus on hardware interrupts.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4