Data Sheet

52
Lesson 20 Ultrasonic Sensor Module
Overview
In this lesson, you will learn how to measure the distance by the ultrasonic distance sensor.
Components Required
Name Qty Name Qty
UNO R3 or MEGA2560 1 LCD1602 1
Ultrasonic Sensor Module 1 10KΩ Potentiometer 1
DuPont Wire 20
Component Introduction
The HC-SR04 ultrasonic sensor is a device that can measure the distance
to an object by using sound waves. It measures distance by sending out a
sound wave at a specific frequency and listening for that sound wave to
bounce back. By recording the elapsed time between the sound wave being generated and
the sound wave bouncing back, it is possible to calculate the distance between the sonar
sensor and the object.
Connection Schematic
VSS
VDD
V0
RS
RW
E
D0
D1
D2
D3
D4
D5
D6
D7
A
K
AREF
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
GND
SDA
SCL/RESET
3V3
5V
A0
A1
A2
A3
A4
A5
GND1
GND2
VIN
Analog Input
Digi tal Input/Output
ARDUINO-NOHOLE
1
2
3
LCD1602
Potenti
ometer
UNO R3/
Mega 2560
Trig
Echo
VCC
GND
Ultrasonic
sensor
module