SunFounder picar-x
5.5 Test Ultrasonic Module
PiCar-X has a built-in Ultrasonic Sensor module that can be used for obstacle avoidance and automatic object-
following experiments. In this lesson the module will read a distance in centimeters (24 cm = 1 inch), and Print
the results in a Debug window.
TIPS
The Ultrasonic get distance block will read the distance from the PiCar-X to an obstacle directly ahead.
96 Chapter 5. Play with Ezblock