TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor...
-
Upload
jonathan-briggs -
Category
Documents
-
view
236 -
download
0
description
Transcript of TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor...
![Page 1: TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.](https://reader035.fdocuments.us/reader035/viewer/2022062223/5a4d1b357f8b9ab05999ca1f/html5/thumbnails/1.jpg)
TechKnowTone
Contents:• Sensor Features• Sensor Connections• Sample Sketch• Questions
…Sensor Features…
Arduino Coding – Distance Sensors
![Page 2: TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.](https://reader035.fdocuments.us/reader035/viewer/2022062223/5a4d1b357f8b9ab05999ca1f/html5/thumbnails/2.jpg)
TechKnowTone…Sensor Connections…
Sensor Features
• Low cost < £2.00• Low power 2mA static current• 8 cycle 40 kHz sound burst• Detection range 2cm – 450cm• Sensor angle 15 degrees• High precision +/- 3mm• Easy to use?
• Provide 10µs HIGH trigger pulse• Measure width of returned ‘Echo’ pulse Trigger pulse
10µS Minimum
8 cycles of 40kHzSonic burst
Echo pulse - 100µS to 25mS.Times out after 30mS.
Speed of sound: 340 m/sDistance = speed x Time / 2Distance in cm = echo pulse width in µS / 58Distance in inches = echo pulse width in µS / 148Range: 2cm min – 4m max.
T
R
Tx Burst
ReflectedSound
Distance = 2 x D
D
![Page 3: TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.](https://reader035.fdocuments.us/reader035/viewer/2022062223/5a4d1b357f8b9ab05999ca1f/html5/thumbnails/3.jpg)
TechKnowTone…Sensor Sketch…
Sensor Connections
• Remove power before wiring• Connect GND to Gnd• Connect 5v to Vcc• Connect Pin 3 to Trig• Connect Pin 2 to Echo
Low power so use with USB power.
![Page 4: TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.](https://reader035.fdocuments.us/reader035/viewer/2022062223/5a4d1b357f8b9ab05999ca1f/html5/thumbnails/4.jpg)
TechKnowTone…End…
Sample Sketch Note:• Allow 50 ms between trigger pulses• Avoids false echoes