Garage Distance Sensor
Garage Distance Sensor
Introduction
Looking for a Qwiic and easy way to set up perfect parking? Look no
further than the SparkFun Qwiic Ultrasonic Distance Sensor! This nifty
device takes your garage parking game to the next level, offering a
high-tech solution to prevent those dreaded wall bumps!
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)
SEN-24805
$11.50
SparkFun RedBoard Qwiic
DEV-15123
$21.95
SparkFun Qwiic Twist - RGB Rotary Encoder Breakout
DEV-15083
$25.50
SparkFun Qwiic OLED - (1.3in., 128x64)
LCD-23453
$19.95
Qwiic Cable - 100mm
PRT-14427
$1.50
Qwiic Cable - 100mm
PRT-14427
$1.50
Flexible Qwiic Cable - 500mm
PRT-17257
$2.75
USB Micro-B Cable - 6 Foot
CAB-10215
$6.50
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.
Software Setup
Note: If this is your first time using Arduino, please review our tutorial
on installing the Arduino IDE. If you have not previously installed an
Arduino library, please check out our installation guide.
You can copy and paste the code below into a shiny new Arduino
sketch: