Datasheet HY-SRF05 - 3

描述Precision Ultrasonic Sensor
页数 / 页3 / 3 — Measurement Procedure & Formula
文件格式/大小PDF / 221 Kb
文件语言英语

Measurement Procedure & Formula

Measurement Procedure & Formula

该数据表的模型线

文件文字版本

Measurement Procedure & Formula
Distance measurements can be made with microcontrollers in a straightforward manner: You can find an Arduino Library with code here: http://forum.arduino.cc/index.php?topic=106043.0 Send a 10 uS wide pulse to the sensor on the Trigger Pin. The sensor will automatically send out a 40 kHz wave. Begin monitoring the output from the Echo Pin and When the Echo Pin goes high, begin a timer. When the Echo Pin goes low, record the elapsed time from the timer and use the following conversion formula: Distance (in cm) = (elapsed time * sound velocity (340 m/s)) / 100 / 2 Note: we divide distance by 2 because the sensor returns the round trip time, which doubles the distance measurement.