EasyManua.ls Logo

ADEEPT PiCar-Pro - Lesson 8: How to Control the Ultrasonic Module; Components for Ultrasonic Module; Ultrasonic Module Introduction

ADEEPT PiCar-Pro
178 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
86
Lesson 8 How to Control the Ultrasonic Module
In this lesson, we will learn how to read the data of the RGB ultrasonic ranging
module.
8.1Components used in this course
Components
Quantity
Picture
Raspberry Pi
1
Robot HAT
1
ultrasonic module
1
4 pin wire
1
8.2 Introduction of RGB ultrasonic ranging module
The ultrasonic ranging module used in our PiCarPro product has four pins,
namely VCC, GND, Echo and Trig. The HC-SR04 can provide a non-contact distance
sensing function of 2cm-400cm, and the ranging accuracy can reach 3mm; The
module includes an ultrasonic transmitter, receiver and control circuit. The basic
working principle is as follows:
Use IO port TRIG to trigger distance measurement, and give a high level signal
of at least 10us.
The module automatically sends eight 40khz square waves, and automatically
detects whether there is a signal return.
There is a signal return, and a high level is output with the IO port ECHO. The

Related product manuals