User Guide HC-SR04 (ElecFreaks)

制造商ElecFreaks
描述Ultrasonic transmitter emitted an ultrasonic wave in one direction, and started timing when it launched.
页数 / 页6 / 1 — H -. C S. - R. S 0. R 4. 0 Us. U e. s r. e Gu. G i. u d. i e. P r. a t. r …
文件格式/大小PDF / 740 Kb
文件语言英语

H -. C S. - R. S 0. R 4. 0 Us. U e. s r. e Gu. G i. u d. i e. P r. a t. r 1 Ult. l r. t a. r s. a o. s n. o i. n c. i In. I t. n r. t o. r d. o u. d c. u t. c i. i n. 1 1 Ul. U t. i De. D f

User Guide HC-SR04 ElecFreaks

该数据表的模型线

文件文字版本

HC H - C S - R S 0 R 4 0 Us U e s r e Gu G i u d i e d Pa P r a t r 1 Ult l r t a r s a o s n o i n c i In I t n r t o r d o u d c u t c i t o i n o 1. 1 1 Ul U t l r t a r s a o s n o i n c i De D f e i f n i i n t i i t o i n o
The human ear can hear sound frequency around 20HZ ~ 20KHZ, and ultrasonic is the sound wave beyond the human ability of 20KHZ .
1. 1 2 . Ul U t l r t a r s a o s n o i n c i di d s i t s a t n a c n e c me m a e s a u s r u e r m e e m n e t n pr p i r n i c n i c p i l p e l
Ultrasonic transmitter emitted an ultrasonic wave in one direction, and started timing when it launched. Ultrasonic spread in the air, and would return immediately when it encountered obstacles on the way. At last, the ultrasonic receiver would stop timing when it received the reflected wave. As Ultrasonic spread velocity is 340m / s in the air, based on the timer record
t
, we can calculate the distance (s) between the obstacle and transmitter, namely: s = 340t / 2, which is so- called time difference distance measurement principle The principle of ultrasonic distance measurement used the already-known air spreading velocity, measuring the time from launch to reflection when it encountered obstacle, and then calculate the distance between the transmitter and the obstacle according to the time and the velocity. Thus, the principle of ultrasonic distance measurement is the same with radar. Distance Measurement formula is expressed as: L = C X T In the formula, L is the measured distance, and C is the ultrasonic spreading velocity in air, also, T represents time (T is half the time value from transmitting to receiving ). 1 Document Outline HC-SR04UserGuide Part1UltrasonicIntroduction 1.1UltrasonicDefinition Thehumanearcanhearsoundfrequencyaround20HZ 1.2Ultrasonicdistancemeasurementprinciple Ultrasonictransmitteremittedanultrasonicwave 1.3UltrasonicApplication Part2HC-SR04UltrasonicModuleIntroduction 2.1ProductFeatures 2.2ProductImage 2.3、Modulepindefinitions 2.4、Electricalparameters 2.5ModuleoperatingPrinciple Part3UseFreaduinoUNOtotestHC-SR04 3.1FreaduinounoandHC-SR04Connection 3.2HCSR04libraryfunctiondescription Longtiming() floatCalcDistance(longmicrosec,intmetric) 3.3AddtheHC-SR04Library 3.4TesttheModulewiththeExamplesofLibraryF