sparkfun Qwiic GPIO Hook-up Manual

File Specifications

Brand: sparkfun
Category: Microcontrollers
Model: Qwiic GPIO (Hook-up Manual), prPknL9Ua0aK6
File Type: PDF
File Size: —
Pages: 23 pages

Download Document

Get a high-quality, printable PDF version of this manual for offline use.

Download PDF Manual (23 pages)

⚠️ Download Safety: This PDF is completely safe to download (last scan date: 17/06/2026).

Read Online

Read the sparkfun Qwiic GPIO Hook-up Manual online using the built-in PDF viewer.

Key Pages of Document

SparkFun Qwiic GPIO Hookup Guide

  Introduction The SparkFun Qwiic GPIO is an I C device aimed at simplifying adding extra GPIO pins to a microcontroller. The board uses the TCA9534U I/O Expander IC from Texas Instruments to add up to 8 digital inputs and outputs controlled via an I C interface. The TCA9534U features three address select pins that can be set to configure eight unique addresses meaning you can have up to 64 I/O pins controlled from a ...

To simplify wiring everything up, we've broken out all eight of the general-purpose I/O pins on the TCA9534U

along with several power rail pins to latch terminals and, as you would expect from a Qwiic board, the I C interface is broken out to a pair of Qwiic connectors. Controlling the TCA9534 is relatively straightforward but to make things even easier, we've written an Arduino Library and a Python Package for the Qwiic GPIO to make writing code for it as ...

Finally, you'll need at least one Qwiic cable and possibly some hook up wire or jumper cables. Below are a few

options for each of those cable types: SparkFun Qwiic Shield for Thing Plus  DEV-16790 SparkFun Qwiic Shield for Arduino  DEV-14352 SparkFun Qwiic Adapter  DEV-14495 SparkFun Qwiic Shield for Arduino Nano  DEV-16789 Jumper Wires Standard 7" M/M - 30 AWG (30 Pack)  PRT-11026 Qwiic Cable - 100mm  PRT-14427 ...

If 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 the concepts covered in them: Hook-Up Wire - Assortment (Stranded, 22 AWG)  PRT-11375 Qwiic Cable - 200mm  PRT-14428 Polarity An introduction to polarity in electronic components. Discover what polarity is, which parts have it, and how to identify it. Se ...

As we mentioned in the Introduction, the Qwiic GPIO features the TCA9534 I/O Expander to communicate with up

to eight digital input/output pins via I C. In this section we'll examine the characteristics of the TCA9534 as well as the features of the Qwiic GPIO breakout. TCA9534 I/O Expander IC The TCA9534 from Texas Instruments provides an I C to parallel digital input output interface. We'll cover the basics here but for a thorough overvi ...

Each I/O pin defaults as an input at power on. Sending the appropriate commands will switch them to an output

and you can also invert the polarity of each pin as well via I C. Read on to the Qwiic GPIO Arduino Library and Python package sections for more information on how to configure and interact with these pins. Qwiic and I C Interface As you have come to expect with Qwiic boards, the connections for the I C bus (SDA, SCL, GND and 3.3V) on the Qwiic GPI ...

I C Jumper

This jumper ties the SDA and SCL lines to 3.3V via two 4.7kΩ resistors. The default state is closed. To disable the pull-up resistors, simply sever the traces in between the pads to open the jumper. If you have multiple Qwiic GPIO's or other I C devices on the same bus, disable all but one pair of pull-up resistors to avoid creating too strong of a resistance on the SDA and SCL lines. Power Jumper This jumper controls voltage to the power LED ...

Now that we are more familiar with the hardware present on the Qwiic GPIO it's time to hook it up to our

microcontroller and attach some peripherals to the I/O pins. Next up we'll detail how to assemble the board and your Qwiic GPIO circuit. Hardware Assembly The Qwiic system makes connecting the Qwiic GPIO to your chosen microcontroller a breeze. All you need to do is connect your Qwiic GPIO to your chosen development board with a Qwiic cable or adapter c ...

Having trouble seeing the detail in this mess of jumper wires? Click on the photo for a larger view!

With the Qwiic GPIO circuit assembled and connected to your microcontroller it's time to get some code uploaded and start controlling the extra I/O pins via I C! Qwiic GPIO Arduino Library Note: This library assumes you are using the latest version of the Arduino IDE on your desktop. If this is your first time using Arduino, please review our tutorial on in ...

bool digitalWrite(bool *gpioOutStatus); - Write to the entire port set up using a bool to either HIGH or

LOW . bool digitalRead(uint8_t gpioNumber); - Standard Digital Read function. Returns the status of the selected GPIO pin. uint8_t digitalReadPort(bool *gpioInStatus); - Read the status of the entire port set up using a bool . Returns status of all selected pins on the port. Take a look at Example2B - Read_GPIO_Port for reference. Advanced Function ...

The demo circuit above shows a visual representation of GPIO 0 being toggled HIGH and LOW using an LED. If

you want to control more pins, simply add another myGPIO.pinMode(); for whichever pin you want to use to set it as an output and then control it using myGPIO.digitalWrite(); . Example 1B: Write GPIO - Port This version of writing to the Qwiic GPIO controls the entire port (all eight GPIO pins). In order to set up the port we need to define the number ...

void loop() {

bool gpioState = myGPIO.digitalRead(0); switch (gpioState) { case true: Serial.println("HIGH"); break; case false: Serial.println("LOW"); break; } delay(250); } The example circuit pictured above demonstrates how to monitor an active HIGH input on the Qwiic GPIO by driving the selected I/O pin (in this case GPIO 0) LOW whenever the button is pressed. Note: Defining a pin as an input is not absolutely ne ...

void loop() {

//There are two ways to read from a port, either by returning the full register value as a uin t8_t, or passing in an array of 8 boolean's to be modified by the function with the statuses of each pin uint8_t portValue = myGPIO.digitalReadPort(gpioStatus); Serial.print("uint8_t: "); Serial.println(portValue, BIN); Serial.print("Bool array: "); for (uint8_t arrayPosition = 0; arrayPosition < NUM_GPIO; arrayPosition++) { Serial. ...

Example 3B: Inversion - Port

Example 3B, as you might expect by now, exhibits how to invert the entire port on the Qwiic GPIO. The code starts as the other port examples do by defining the number of pins and setting the pin mode of all pins on the port. It then inverts half of the pins' polarity using a second boolean. The setup can be seen below: #define NUM_GPIO 8 bool currentPinMode[NUM_GPIO] = {GPIO_IN, GPIO_IN, GPIO_IN, GPIO_IN, GPIO_IN, GPIO_IN, GPIO ...

attachInterrupt(digitalPinToInterrupt(INTERRUPT_PIN), ISR, FALLING);

Now that our interrupt pin is configured the code monitors the GPIO pins' statuses and any time the status changes, the interrupt pin on the Qwiic GPIO will be driven LOW. You can view the entire loop and ISR function below: void loop() { if (dataReady) { myGPIO.digitalReadPort(gpioStatus); for (uint8_t arr ...

Note: Don't forget to double check that the hardware I C connection is enabled on your Raspberry Pi or other

single board computer. PyPi Installation This repository is hosted on PyPi as the sparkfun-qwiic-gpio package . On systems that support PyPi installation via pip3 (use pip for Python 2) is simple using the following commands: For all users (note: the user must have sudo privileges): sudo pip3 install sparkfun-qwiic-gpio For the curren ...

With the Qwiic GPIO Python Package installed, we can start working with the examples included with it. In this

section we'll go over each example and highlight pertinent bits of code. To run the examples, download or copy the code into a file then open/save the example file (if needed) and execute the code in your preffered Python IDE. Qwiic GPIO Example 1 This example sets up all eight I/O pins as outputs and toggles them on and off each second. Note you ...

from __future__ import print_function

import qwiic_gpio import time import sys def runExample(): print("\nSparkFun Qwiic GPIO Example 1\n") myGPIO = qwiic_gpio.QwiicGPIO() if myGPIO.isConnected() == False: print("The Qwiic GPIO isn't connected to the system. Please check your connection", \ file=sys.stderr) return myGPIO.begin() myGPIO.mode_0 = myGPIO.GPIO_OUT myGPIO.mode_1 = myGPIO.GPIO_OUT myGPIO.mo ...

except (KeyboardInterrupt, SystemExit) as exErr:

print("\nEnding Example 1") sys.exit(0) Qwiic GPIO Example 2 Example 2 shows how to read each I/O pin when they are configured as inputs. It first sets up all pins using the setMode function as we did in Example 1. The code then monitors and prints out the status of each input every 0.25 seconds. You can copy the entire example below or open it from your downloaded copy of t ...

from __future__ import print_function

import qwiic_gpio import time import sys def runExample(): print("\nSparkFun Qwiic GPIO Example 2\n") myGPIO = qwiic_gpio.QwiicGPIO() if myGPIO.isConnected() == False: print("The Qwiic GPIO isn't connected to the system. Please check your connection", file=sys.stderr) return myGPIO.begin() myGPIO.mode_0 = myGPIO.GPIO_IN myGPIO.mode_1 = myGPIO.GPIO_IN myGPIO.mode ...

Related Devices for sparkfun Qwiic GPIO:

Qwiic Pro Micro USB-C
sparkfun Qwiic Pro Micro USB-C Hook-up manual
04.05.2026 45 pages

Qwiic Pro Micro USB-C (ATmega32U4) Hookup Guide   Introduction Heads up! This is for the Qwiic Pro Micro USB-C (ATmega32U4) version. If you are looking fo Device maintenance guide for the sparkfun Qwiic Pro Micro USB-C Microcontrollers. The manual highlights user preferences, regulatory notices, calibration steps, usage tips.

Decade Resistance Box
sparkfun Decade Resistance Box Hook-up manual
13.03.2026 16 pages

Decade Resistance Box Hookup Guide   Introduction A decade box is a tool that contains resistors of many values accessed via mechanical switches. Adjust t Official operating instructions for the sparkfun Decade Resistance Box Microcontrollers. The document highlights operating procedures and maintenance schedule, hardware instructions, installation guides.

KIT-14173
sparkfun KIT-14173 Hook-up manual
27.07.2026 33 pages

Spectacle Light and Sound Kit Hookup Guide   Introduction The Spectacle Light and Sound Kit allows you to add button-activated sound and light effects to Product operation guide for the sparkfun KIT-14173 Motherboard. It details device setup and device features, safety guidelines, performance guidelines, device calibration.

JetBot AI Kit
sparkfun JetBot AI Kit Assembly manual
08.06.2026 23 pages

Assembly Guide for SparkFun JetBot AI Kit   Introduction SparkFun’s version of the JetBot merges the industry leading machine learning capabilities of t Complete user documentation for the sparkfun JetBot AI Kit Robotics. The document details configuration and service instructions, configuration options, safety information.

Qwiic Twist
sparkfun Qwiic Twist Hook-up manual
02.06.2026 12 pages

Qwiic Twist Hookup Guide   Introduction Sometimes you just need a volume knob. The Qwiic Twist is a digital RGB encoder, also known as a continuously rota Operating and setup manual for the sparkfun Qwiic Twist Media Converter. The manual elaborates on features and compatibility information, operating modes, safety protocols.

Pro Micro
sparkfun Pro Micro Hook-up manual
04.04.2026 27 pages

P M A Pro Micro & Fio v3 Hookup Guide   CONTRIBUTORS: JIMB0 Introduction Welcome to the new frontier of Arduino-compatible boards, made possible by the AT Complete service manual for the sparkfun Pro Micro Motherboard. This guide presents troubleshooting, user instructions, user preferences, error handling.

Qwiic Shield for Thing Plus
sparkfun Qwiic Shield for Thing Plus Hook-up manual
19.08.2026 10 pages

SparkFun Qwiic Shield for Thing Plus Hookup Guide   Introduction The SparkFun Qwiic Shield for Thing Plus provides an easy-to-assemble way to add the Spar Device setup guide for the sparkfun Qwiic Shield for Thing Plus Motherboard. This documentation details installation, compatibility information, technical overview.

Binary Blaster Series
sparkfun Binary Blaster Series Assembly manual
11.06.2026 15 pages

Binary Blaster Assembly Guide   Introduction Binary Blaster is a game that helps teach the player how to count in binary as well as convert from decimal ( Owner’s manual for the sparkfun Binary Blaster Series Microcontrollers. The guide explains operation and error codes, startup procedures, assembly reference, installation procedures.

Microcontrollers: Frequently Requested PDF Instructions

CC11 L Series
Texas Instruments CC11 L Series Quick start manual
22.07.2026 3 pages

SWRU292A January 2012 Web sites: www.ti.com/lprf E2E Forum: www.ti.com/lprf-forum Make sure to subscribe to the Low-Power RF Newsletter to receive information a Device guide for the Texas Instruments CC11 L Series Microcontrollers. It covers technical specifications, firmware installation, component overview.

PSoC 4
Cypress PSoC 4 Manual 
18.04.2026 110 pages

CY8CKIT-042 PSoC® 4 Pioneer Kit Guide Doc. # 001-86371 Rev. *D Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone Instruction guidebook for the Cypress PSoC 4 Microcontrollers. It explains usage scenarios and maintenance schedule, device operation tips, device instructions.

AR1100
Microchip Technology AR1100 Quick start manual
31.08.2026 1 pages

Other Information To obtain the most recent and complete documentation for this demonstration board, including: - User's Guide - Board Description - Board Schem Essential instructions for the Microchip Technology AR1100 Microcontrollers. It includes usage scenarios and interface navigation, connectivity options, installation procedures.

J-Link
Segger J-Link Operation & user’s manual
14.04.2026 480 pages

A product of SEGGER Microcontroller GmbH & Co. KG www.segger.com J-Link / J-Trace User Guide Software Version V6.14 Manual Rev. 0 Document: UM08001 Date: Februa Advanced user manual for the Segger J-Link Adapter. This guide offers instructions on setup instructions, setup tips, regulatory notices.