Data Sheet

UCTRONICS Ultimate Starter Leaning Kit for Raspberry Pi #K0064
94 www.uctronics.com
8.14 Project 14: Measure the distance
8.14.1 Overview
In this lesson, we will learn how to measure the distance by the ultrasonic distance sensor.
8.14.2 Requirement
Raspberry Pi ×1
Ultrasonic distance sensor ×1
Breadboard ×1
Several Jumper wires
8.14.3 Principle
1. What
s ultrasonic distance sensor ?
Please refer to chapter 3.3 HC-SR04 Ultrasonic Distance Sensor Module
8.14.4 Procedures
1. Build the circuit
2. Program
Python user:
2.1 Edit and save the code with vim or nano.
(https://github.com/UCTRONICS/Arducam_Starter_Kit_Python_Code_for_RPi.git)