Skip to content

Commit 64a1ba7

Browse files
committed
Copy edit
1 parent 51f13c7 commit 64a1ba7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

distance.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
# Ultrasonic Distance Sensor
1+
# Ultrasonic distance sensor
22

3-
In air, sound travels at a speed of 343ms<sup>-1</sup>. An Ultrasonic Distance Sensor sends out pulses of ultrasound (which is inaudiable to humans) and when then detects the echo that is sent back when the sound bounces off a nearby object.
3+
In air, sound travels at a speed of 343ms<sup>-1</sup>. An ultrasonic distance sensor sends out pulses of ultrasound, which is inaudible to humans, and detects the echo that is sent back when the sound bounces off a nearby object.
44

55
![usd](images/ultrasonic-distance-sensor.png)
66

7-
By knowing the speed of sound and the time taken for the ultrasound to be detected, and ultrasonic distance sensor can be used to detect how far away an object is.
7+
By knowing the speed of sound and the time taken for the ultrasound to be detected, an ultrasonic distance sensor can be used to detect how far away an object is.
88

9-
## Wiring an Ultrasonic Distance Sensor
9+
## Wiring an ultrasonic distance sensor
1010

11-
To wire up an ultrasonic distance sensor, you will need to use a pair of resistors as a potential divider.
12-
Use the diagram below as a guide.
11+
To wire up an ultrasonic distance sensor, you'll need to use a pair of resistors as a potential divider. Use the diagram below as a guide.
1312

1413
![wiring](images/wiring-uds.png)
1514

1615
## Detecting distance
1716

18-
The ultrasonic distance sensor has not yet been included in the gpiozero library, but it will be soon. Until then, you can use a generic input and output device to detect the distance of an object.
17+
The ultrasonic distance sensor has not yet been included in the GPIO Zero library, but it will be soon. Until then, you can use a generic input and output device to detect the distance of an object.
1918

2019

2120
```python

0 commit comments

Comments
 (0)