Skip to content

Commit 4c445d4

Browse files
committed
Minor clarification to comments
1 parent 98262cb commit 4c445d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VernierMotionDetectorThreshold/VernierMotionDetectorThreshold.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and then calculates the corresponding distance (based on the speed of ultrasound
77
in air) and displays the distance (in cm) on the Serial Monitor.
88
99
Here is how the Vernier Motion Detector works:
10-
- when pin 2 on BTD is pulled high, this triggers the ultrasound pulse
10+
- when pin 2 on BTD is pulled high the ultrasound pulse is triggered
1111
- the program then starts timing but then delays 0.9 ms *(blanking time,
1212
0.9 seconds is the time it takes ultrasound to travel 15 cm twice (round trip))
1313
- the program then monitors pin 1 on the BTD, waiting for it to go high.
@@ -16,8 +16,8 @@ This happens when an echo is detected.
1616
As written, the reading will be displayed roughly every quarter of a second.
1717
Change the delay at the end of the loop to change the rate.
1818
19-
This version turns on an LED connected to pin 13,
20-
if the distance is less than one meter
19+
This version turns on an LED connected to pin 13 if the distance is less
20+
than one meter.
2121
2222
See www.vernier.com/arduino for more information.
2323
*/
@@ -61,7 +61,7 @@ void loop()
6161
do
6262
{
6363
val =digitalRead(EchoPin);
64-
// if no echo, repeat loop and wait:
64+
// if no echo, repeat loop and wait
6565
}
6666
while (val == LOW) ;
6767
Duration =micros() - time;

0 commit comments

Comments
 (0)