HC-SR04 Sensor and Arduino Basics

HC-SR04 Sensor and Arduino Basics

Assessment

Interactive Video

Physics, Science, Computers

7th - 12th Grade

Hard

Created by

Lucas Foster

FREE Resource

This tutorial by Dejan Nedelkovski from HowToMechatronics.com explains how to use the HC-SR04 Ultrasonic Sensor to measure distances. The sensor can measure from 2 cm to 4 meters with an accuracy of 3 mm. It works by emitting ultrasound at 40,000 Hz, which bounces back upon hitting an object. The tutorial covers connecting the sensor to an Arduino board, generating ultrasound, and calculating distance using the travel time of the sound wave. It also provides example code for implementing the sensor with Arduino, and concludes with additional resources for further learning.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum distance the HC-SR04 sensor can measure?

4 meters

2 meters

8 meters

6 meters

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the frequency of the ultrasound emitted by the HC-SR04 sensor?

40,000 Hz

50,000 Hz

30,000 Hz

20,000 Hz

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pin on the HC-SR04 is used to trigger the ultrasound wave?

VCC

Trig

Ground

Echo

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pins on the HC-SR04 need to be connected to the Arduino's Ground and 5V?

Trig and Echo

Ground and VCC

Echo and VCC

Trig and Ground

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How long should the Trig pin be set to HIGH to generate an ultrasound wave?

20 microseconds

15 microseconds

10 microseconds

5 microseconds

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Echo pin output?

Time in microseconds

Frequency in Hz

Distance in centimeters

Voltage in volts

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used in Arduino to read the travel time of the sound wave?

pulseIn()

delay()

digitalRead()

analogRead()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?