
HC-SR04 Ultrasonic sensor
Authored by Regie Ocampo
Computers
9th - 10th Grade
Used 30+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of signals does a HC-SR04 sensor use?
ultrasonic waves
microwave
digital
radio waves
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What HC-SR04 pin is used to transmit signals?
VCC
GND
Trig
Echo
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What pin is used to receive signals?
VCC
GND
Trig
Echo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to turn ON the HC-SR04 sensor?
digitalWrite(trigPin, HIGH);
analogWrite(trigPin, HIGH);
digitalWrite(trigPin, LOW);
analogWrite(trigPin, LOW);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the formula to compute for the duration of time travelled by the signal from the sensor to the object?
distance = time * .034 / 2
time = distance/ .034
distance = speed * .034 /2
time = 0.034 /distance
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the command to initialize echoPin in void setup?
pinMode(echoPin,INPUT);
pinMode(echoPin,OUTPUT);
const int echoPin;
long echoPin;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In what pin do we connect VCC?
GND
5V
Digital pin
Analog pin
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?