Quiz 1 of 0
Quiz-5-> Interfacing of Ultrasonic sensor with Node MCU
25/04/2024
Time limit: 0
Quiz Summary
0 of 5 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Quiz complete. Results are being recorded.
Results
0 of 5 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 5
1. Question
Q-1-: What is the use of the Ultrasonic Sensor?
CorrectIncorrect -
Question 2 of 5
2. Question
Q-2 -:What will happen if we supply a voltage of 25V to the Vcc of the Ultrasonic sensor?
CorrectIncorrect -
Question 3 of 5
3. Question
Q-3-: How many pins are present in the Ultrasonic Sensor?
CorrectIncorrect -
Question 4 of 5
4. Question
Q-4-: Is the circuit correct?
CorrectIncorrect -
Question 5 of 5
5. Question
Q-5-: What is the final value of the d2 variable?
const int trigPin = 9; const int echoPin = 10; long d1; int d2; void setup() { pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); Serial.begin(9600); } void loop() { digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); d1 = pulseIn(echoPin, HIGH); d2 = d1*0.034/2; Serial.println(d2); }
CorrectIncorrect