Lesson 21 Measuring the Distance
Introduction
Ultrasonic Distance Sensor module supports a contactless detection within a distance of
2cm-400cm. It contains an ultrasonic emitter, receiver and control circuits.
Notes
:
1. The module is not suggested to connect wires when power is on. If you have to do so,
please first connect the GND and then other pins; otherwise, the module may not work.
2. During the ranging, the area of the targeted object should be no less than 0.5cm and the
surface facing the module should be as flat as possible; otherwise the result may be
inaccurate.
Components
- 1 * Raspberry Pi
- 1 * GPIO Extension Board
- 1 * 40-Pin GPIO Cable
- 1 * Breadboard
- 1 * Ultrasonic Sensor Module
- 4 * Jumper Wires
Experimental Principle
The Fritzing image:
The Physical picture:
Pin definition: