[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-681644-105":59,"doc-detail-681644-en":130,"doc-similar-681644":156},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","ultrasonic-ranging-module-hc-sr04-usage-notes","Ultrasonic Ranging Module HC-SR04 - Usage Notes","","Ultrasonic Ranging Module HC-SR04 enables non-contact distance measurement from 2cm to 400cm with up to 3mm accuracy. The module uses an IO trigger pulse to send an 8-cycle burst at 40kHz and returns an echo whose pulse width is proportional to distance. The document provides wiring signals (Vcc, Trig, Echo, GND), key electrical parameters, timing diagram description, calculation formulas, and practical attention points to ensure stable readings.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/ultrasonic-ranging-module-hc-sr04-usage-notes/681644/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/ultrasonic-ranging-module-hc-sr04-usage-notes/681644.png","ImageObject",300,407,{"name":92,"@type":93},"Liam","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-21","2026-11-06",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does the HC-SR04 determine distance from the echo signal?","Question",{"text":112,"@type":113},"After receiving a short 10µS trigger pulse, the module emits an 8-cycle burst at 40kHz and then outputs an echo. The distance is derived from the time interval between trigger and echo, because echo pulse width is proportional to range.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the recommended wiring connections for HC-SR04?",{"text":117,"@type":113},"Connect 5V to Vcc, send the trigger pulse to Trig, read the returned pulse from Echo, and connect 0V Ground to GND. The GND terminal should be connected to the module first to avoid affecting normal operation.",{"name":119,"@type":110,"acceptedAnswer":120},"What measurement cycle and distance calculation formulas are suggested?",{"text":121,"@type":113},"A measurement cycle over 60ms is suggested to prevent trigger signal interference with the echo. The document provides uS/58 = centimeters, uS/148 = inch, or range = high level time * velocity (340M/S) / 2.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},681644,1793951567,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":81,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":39,"preview_page_count":81,"preview_urls":143},8796095461564,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Tech Support: [services@elecfreaks.com](services@elecfreaks.com)  \nUltrasonic Ranging Module HC-SR04  \nProduct features:  \nUltrasonic ranging module HC-SR04 provides 2cm-400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit. The basic principle of work:  \n(1) Using IO trigger for at least 10us high level signal,  \n(2) The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back.  \n(3) IF the signal back, through high level , time of high output IO duration is the time from sending ultrasonic to returning.  \nTest distance = (high level time×velocity of sound (340M/S) / 2,  \nWire connecting direct as following:  \n􀀁 5V Supply  \n􀀁 Trigger Pulse Input  \n􀀁 Echo Pulse Output  \n􀀁 0V Ground  \nElectric Parameter  \n\n| Working Voltage | DC 5 V |\n| --- | --- |\n| Working Current | 15mA |\n| Working Frequency | 40Hz |\n| Max Range | 4m |\n| Min Range | 2cm |\n| MeasuringAngle | 15 degree |\n| Trigger Input Signal | 10uS TTL pulse |\n| Echo Output Signal | Input TTL lever signal and the range in proportion |\n| Dimension | 45*20*15mm |\n\nVcc Trig Echo GND  \nTiming diagram  \nThe Timing diagram is shown below. You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo. The Echo is a distance object that is pulse width and the range in proportion .You can calculate the range through the time interval between sending trigger signal and receiving echo signal. Formula: uS / 58 = centimeters or uS / 148 =inch; or: the range = high level time * velocity (340M/S) / 2; we suggest to use over 60ms measurement cycle, in order to prevent trigger signal to the echo signal.  \nAttention:  \n􀀁 The module is not suggested to connect directly to electric, if connected electric, the GND terminal should be connected the module first, otherwise, it will affect the normal work of the module.  \n􀀁 When tested objects, the range of area is not less than 0.5 square meters and the plane requests as smooth as possible, otherwise ,it will affect the results of measuring.  \n[www.Elecfreaks.com](www.Elecfreaks.com)","cbCairHLkjemXhrY","https://ap.wps.com/l/cbCairHLkjemXhrY","pdf",80625,"English","# Product features\n## Working principle\n## Wiring\n## Electric parameters\n# Timing and calculation\n## Timing diagram description\n## Distance formulas\n# Attention notes","[{\"question\":\"How does the HC-SR04 determine distance from the echo signal?\",\"answer\":\"After receiving a short 10µS trigger pulse, the module emits an 8-cycle burst at 40kHz and then outputs an echo. The distance is derived from the time interval between trigger and echo, because echo pulse width is proportional to range.\"},{\"question\":\"What are the recommended wiring connections for HC-SR04?\",\"answer\":\"Connect 5V to Vcc, send the trigger pulse to Trig, read the returned pulse from Echo, and connect 0V Ground to GND. The GND terminal should be connected to the module first to avoid affecting normal operation.\"},{\"question\":\"What measurement cycle and distance calculation formulas are suggested?\",\"answer\":\"A measurement cycle over 60ms is suggested to prevent trigger signal interference with the echo. The document provides uS/58 = centimeters, uS/148 = inch, or range = high level time * velocity (340M/S) / 2.\"}]","Ultrasonic Ranging Module HC-SR04 - Usage Notes | PDF",[144,148,152],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0cce9c240780baa090e74742262a4d0b.webp",983,1390,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/af3a5e664a0edf67856d375346b1e3b2.webp",982,1389,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6027b6bc02c11d2d8fc1f893991b4178.webp",981,1387,{"list":157,"token":66},[158,164,170,176,182,188,194,200,207,213],{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":81,"category_name":30,"create_tm":163},689906,"Ultrasonic Sensor Module - Specifications, Wiring, and Testing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443357/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=%2BcuvIutEnUfvy7rradm2qoK%2FzUU%3D","ultrasonic-sensor-module-specifications-wiring-and-testing",1794133617,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":81,"category_name":30,"create_tm":169},689902,"Ultrasonic Sonar Distance Sensors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443304/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=d3luS%2Bqkl8YFORj1%2BgJBU1KWfl4%3D","ultrasonic-sonar-distance-sensors",1794133611,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":19,"category_name":30,"create_tm":175},689903,"HC SR04 Ultrasonic Sensor - How it works and wiring guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443309/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=RbTO68i4DG0mQ1zvNcb0kBeqyro%3D","hc-sr04-ultrasonic-sensor-how-it-works-and-wiring-guide",1794133612,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":81,"category_name":30,"create_tm":181},689901,"HC-SR04 Ultrasonic Distance Sensor On an Arduino - Overview, Specifications, and Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443281/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=AUiTtQ3ucpZSYOxlgmq2ZIqqnBQ%3D","hc-sr04-ultrasonic-distance-sensor-on-an-arduino-overview-specifications-and-code",1794133605,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":19,"category_name":30,"create_tm":187},689898,"HC-SR04 Ultrasonic Sensor Module User Guide - User Guide: Ultrasonic Sensor V2.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443221/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=w1%2Bp5NNcX45BDCgdR5NZKGDSP70%3D","hc-sr04-ultrasonic-sensor-module-user-guide-user-guide-ultrasonic-sensor-v20",1794133600,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":19,"category_name":30,"create_tm":193},689907,"HC SR04 Ultrasonic Sensor - User’s Manual - V1.0 - May 2013","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001443528/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=OYVCg9IVpQlqgtvgEJhEOVfASfE%3D","hc-sr04-ultrasonic-sensor-users-manual-v10-may-2013",1794133650,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":24,"category_name":30,"create_tm":199},720648,"0.91inch IIC OLED Module MC091GX User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024401914/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=IU3NvTa0PBUHWCrt3WBkI8TH%2BcY%3D","091inch-iic-oled-module-mc091gx-user-manual",1795038628,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":30,"create_tm":206},559169,"Ultrasonic Sensor Circuit Diagram - Technical Components","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947445406/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=ao8D3tg16pBUU8Rw%2F1gw6Z%2Fj5%2Bw%3D","ultrasonic-sensor-circuit-diagram-technical-components",11,1791800323,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":24,"category_name":30,"create_tm":212},720638,"4-Digit 8-Segment Display - TelePort - Product Details - Technical Specifications - Test Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676679/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=Kv25RMA5gFzEt%2Fe4Vrjdbe%2B70Is%3D","4-digit-8-segment-display-teleport-product-details-technical-specifications-test-code",1795038592,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":29,"category_name":30,"create_tm":218},562767,"Ultrasonic Sensor Circuit Designs - Technical Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947892644/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=dRHf%2BJj55Hi4e7SNP4XGdfTb4p8%3D","ultrasonic-sensor-circuit-designs-technical-reference",1791809691]