Display Distance Measurements On an OLED

Pages
Contributors: One Chris Two Chris Red Chris Blue Chris, Elias The Sparkiest
Favorited Favorite 4

Hardware Needed

To follow this experiment, you will need the following materials. While this is a simple project we wanted to make sure that you have everything you need to get started before we get to the code. For this simple project we chose the RedBoard Qwiic but you could choose from many of our development boards such as the Qwiic Pro Micro as well.

SparkFun Ultrasonic Distance Sensor - TCT40 (Qwiic)

SparkFun Ultrasonic Distance Sensor - TCT40 (Qwiic)

SEN-24805
$9.95
SparkFun RedBoard Qwiic

SparkFun RedBoard Qwiic

DEV-15123
$21.50 $15.05
20
SparkFun Qwiic OLED Display (0.91 in., 128x32)

SparkFun Qwiic OLED Display (0.91 in., 128x32)

LCD-24606
$10.95
1
Qwiic Cable - 100mm

Qwiic Cable - 100mm

PRT-14427
$1.50
Qwiic Cable - 100mm

Qwiic Cable - 100mm

PRT-14427
$1.50
USB Micro-B Cable - 6 Foot

USB Micro-B Cable - 6 Foot

CAB-10215
$5.50
15
Note: This tutorial calls for two 100mm Qwiic Cables (which is why it's listed twice), but any Qwiic cable can be used instead of the 100mm version. Please be sure to have the correct amount in your cart before purchasing.