Python

Python is a programming language that lets you write code quickly and effectively. With a design philosophy that focuses on code readability, Python is easy to learn and use. Thanks to the advances in single board computers and powerful microcontrollers, Python can now be used to control hardware. Check out some of the tutorials below to get started graphing, charting and GUI design in Python.
Qwiic SHIM for Raspberry Pi Hookup Guide
December 5, 2019
Ever wanted to prototype I2C components on a Pi? Now you can!
SparkFun Qwiic Micro (SAMD21E) Hookup Guide
October 24, 2019
An introduction to the Qwiic Micro SAMD21E. Level up your Arduino-skills with the powerful SAMD21 ARM Cortex M0+ processor!
Qwiic Atmospheric Sensor (BME280) Hookup Guide
August 21, 2019
Measure temperature, humidity, barometric pressure with the SparkFun Atmospheric Sensor Breakout BME280 (Qwiic).
Assembly Guide for SparkFun JetBot AI Kit
August 13, 2019
Assembly Guide for the SparkFun JetBot AI Kit. This tutorial includes photos & comments to assemble the two-layer chassis & additional components unique to the JetBot kit.
Pi Servo pHAT (v2) Hookup Guide
July 11, 2019
This hookup guide will get you started with connecting and using the Pi Servo pHAT on a Raspberry Pi.
Qwiic Kit for Raspberry Pi Hookup Guide
July 4, 2019
Get started with the CCS811, BME280, VCNL4040, and microOLED via I2C using the Qwiic system and Python on a Raspberry Pi! Take sensor readings from the enviroment and display them on the microOLED, serial terminal, or the cloud with Cayenne!
TPL5110 Nano Power Timer Hookup Guide
June 6, 2019
The TPL5110 Nano Power Timer is ideal for applications that require low power, and especially those projects that are running off of a LiPo battery. The Nano Power Timer will turn on your project after the set amount of time, continuously.
SAMD51 Thing Plus Hookup Guide
May 24, 2019
This tutorial covers the basic functionality of the SAMD51 Thing Plus and highlights the features of the new ARM Cortex-M4F development board.
Keyboard Shortcut, Qwiic Keypad
April 25, 2019
A simple project using the Qwiic Keypad and the RedBoard Turbo to create your own custom hotkey-pad.
Using SparkFun Edge Board with Ambiq Apollo3 SDK
March 28, 2019
We will demonstrate how to get started with your SparkFun Edge Board by setting up the toolchain on your computer, examining an example program, and using the serial uploader tool to flash the chip.
Transparent Graphical OLED Breakout Hookup Guide
March 7, 2019
The future is here! Our Qwiic Transparent Graphical OLED Breakout allows you to display custom images on a transparent screen using either I2C or SPI connections.
Qwiic Joystick Hookup Guide
February 21, 2019
Looking for an easy way to implement a joystick to your next Arduino or Raspberry Pi project? This hookup guide will walk you through using the Qwiic Joystick with the Arduino IDE on a RedBoard Qwiic and in Python on a Raspberry Pi.
Computer Vision and Projection Mapping in Python
February 6, 2019
Use computer vision to detect faces and project images on top of them.
RedBoard Turbo Hookup Guide
January 24, 2019
An introduction to the RedBoard Turbo. Level up your Arduino-skills with the powerful SAMD21 ARM Cortex M0+ processor!
LumiDrive Hookup Guide
January 17, 2019
The LumiDrive LED Driver is SparkFun’s foray into all things Python on micro-controllers. With the SparkFun LumiDrive you will be able to control and personalize a whole strand of APA102s directly from the board itself.
SparkFun Pro nRF52840 Mini Hookup Guide
November 29, 2018
A hardware overview and hookup guide for the SparkFun Pro nRF52840 Mini -- a breakout for Nordic's impossibly cool Bluetooth/ARM Cortex M4 SoC.
nRF52840 Development with Arduino and CircuitPython
November 29, 2018
How to use Arduino or CircuitPython to develop applications for the nRF52840 Cortex-M4 Bluetooth SoC.
How to Run a Raspberry Pi Program on Startup
September 18, 2018
In this tutorial, we look at various methods for running a script or program automatically whenever your Raspberry Pi (or other Linux computer) boots up.
How to Load MicroPython on a Microcontroller Board
September 4, 2018
This tutorial will show you how to load the MicroPython interpreter onto a variety of development boards.
Python GUI Guide: Introduction to Tkinter
August 13, 2018
Tkinter is the standard graphical user interface package that comes with Python. This tutorial will show you how to create basic windowed applications as well as complete full-screen dashboard examples complete with live graph updates from matplotlib.
Pi AVR Programmer HAT Hookup Guide
July 26, 2018
In this tutorial, we will use a Raspberry Pi 3 and the Pi AVR Programmer HAT to program an ATMega328P target. We are going to first program the Arduino bootloader over SPI, and then upload an Arduino sketch over a USB serial COM port.
Graph Sensor Data with Python and Matplotlib
July 23, 2018
Use matplotlib to create a real-time plot of temperature data collected from a TMP102 sensor connected to a Raspberry Pi.
Python Programming Tutorial: Getting Started with the Raspberry Pi
June 27, 2018
This guide will show you how to write programs on your Raspberry Pi using Python to control hardware.
Flexible Grayscale OLED Hookup Guide
May 31, 2018
Figure out how to get images displaying on your new flexible OLED screen.
Old Tutorials
Looking for the old, archived tutorials? Head on over to the
archived tutorials on the main
SparkFun site.
Please be aware that the tutorials you find there are no longer
actively maintained.