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
ta
l Inpu
t/Output
ARDUINO-NOHOLE
1
2
3
LCD1602
Potenti
ometer
UNO R3/
Mega 2560
Trig
Echo
VCC
GND
Ultrasonic
sensor
module
Содержание Ultimate Starter Kit for Arduino
Страница 1: ......
Страница 2: ......
Страница 3: ......
Страница 17: ...17 Wiring Diagram Result LED is lit up and went out gradually like breathing...
Страница 24: ...24 Wiring Diagram Result The buzzer will ring for 2s and then mute for 2s...
Страница 26: ...26 Result The passive buzzer will play music and the LED blink simultaneously Wiring Diagram...
Страница 32: ...32 Wiring Diagram Result The stronger light the photoresistor received the more LEDs will light up...
Страница 74: ......
Страница 79: ...79 Wiring Diagram...