[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-689906-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-689906-en":130,"doc-similar-689906":149},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","ultrasonic-sensor-module-specifications-wiring-and-testing","Ultrasonic Sensor Module - Specifications, Wiring, and Testing","","Ultrasonic sensor module documentation explains how to measure object distances using a stable, high-accuracy 40kHz ultrasonic ranging system. It describes operating behavior: sending ultrasonic pulses, receiving echoes as a time-proportional waveform, and processing the signal via a connected microcontroller. Key specifications cover the HC-SR04 model, 5V operation, detection range of 2cm to 450cm, precision up to 3mm, I/O trigger timing, and pin functions (VCC, Trig, Echo, GND). Wiring steps and Arduino sample code outline how to test and view results on the serial monitor.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/ultrasonic-sensor-module-specifications-wiring-and-testing/689906/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/ultrasonic-sensor-module-specifications-wiring-and-testing/689906.png","ImageObject",300,407,{"name":42,"@type":43},"Dipper","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-12","2026-11-08",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the operating principle of the ultrasonic sensor module?","Question",{"text":62,"@type":63},"The module transmits eight pulses of a 40kHz square wave and receives the echo. The receiver outputs a waveform whose time period is proportional to distance, which the microcontroller processes.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What are the key specifications for the HC-SR04 module?",{"text":67,"@type":63},"It operates at 5V DC with working current around 15mA and supports detection from 2cm to 450cm with precision up to 3mm. The I/O trigger requires at least a 10µs high signal and the sensor angle is not more than 15 degrees.",{"name":69,"@type":60,"acceptedAnswer":70},"How do you test the module using Arduino?",{"text":71,"@type":63},"Connect VCC to 5V, GND to ground, and Trig/Echo to digital I/O pins, then load the sample sketch into the Arduino IDE. After uploading via USB, read the distance results (cm) in the serial monitor.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},689906,1794133617,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":101,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":143,"preview_page_count":22,"preview_urls":144},1374404997633,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","ULTRASONIC SENSOR MODULE  \nDescription  \nThe Ultrasonic sensor module is a convenient way for measuring distances from objects. This module has a lot of applications such as parking sensors, obstacle and terrain monitoring systems, industrial distance measurements, etc. It has a stable performance and high accuracy ranging from 2cm to 450cm with a resolution of 0.3 cm.  \nThe module sends an ultrasonic signal, eight pulses of 40kHz square wave from the transmitter; the echo is then picked up by the receiver and outputs a waveform with a time period proportional to the distance. The connected microcontroller accepts the signal and performs necessary processing.  \nSpecifications  \n􀁸 Model: HC-SR04  \n􀁸 Working Voltage: 5V DC  \n􀁸 Working Current: 15mA  \n􀁸 Static Current: Less than 2mA  \n􀁸 Output Signal: Electric Frequency signal, high level 5V, low level 0V  \n􀁸 Sensor angle: not more than 15 degrees  \n􀁸 Detection Distance: 2cm to 450cm  \n􀁸 High Precision: Up to 3mm  \n􀁸 Mode of Connection: VCC / Trig / Echo / GND  \n􀁸 Adopt I/O trigger through supplying at least 10µs sequence of high level signal  \n􀁸 Dimensions: 1.77in x 0.79in x 0.51in (4 .5cm x 2.0cm x 1.3cm)  \n􀁸 Weight: 10g  \nPin Configuration  \n1 2 3 4  \n1. VCC: 5V DC power supply  \n2. Trig: trigger signal for starting the transmission with 10µs high time  \n3. Echo: output  \n4. GND: ground  \nSchematic Diagram  \nWiring Diagram  \nSample Sketch  \nconst int trig = 3; const int echo = 2; long time, dist;  \nvoid setup(){ Serial.begin(9600);  \npinMode(trig, OUTPUT); pinMode(echo, INPUT);  \n}  \nvoid loop(){ digitalWrite(trig, LOW); delayMicroseconds(2); digitalWrite(trig, HIGH); delayMicroseconds(10); digitalWrite(trig, LOW);  \ntime = pulseIn(echo, HIGH); dist = (time/2) / 29 . 1;  \nSerial.print(dist);  \nSerial. println (\" cm\");  \ndelay(500);  \n}  \nHow to test  \nThe components to be used are:  \n􀀐 Microcontroller (any compatible arduino)  \n􀀐 HC-SRO4 Ultrasonic sensor module  \n􀀐 1 Pin M-M connectors  \n􀀐 Breadboard  \n􀀐 USB cable  \n1. Connect the components based on the figure shown in the wiring diagram using a M-M pin connector. VCC pin is connected to the 5V power supply , GND pin is connected to the GND and the Trig and Echo pins are connected to the digital I/O pins. Pin number will be based on the actual program code.  \n2. After hardware connection, insert the sample sketch into the Arduino IDE.  \n3. Using a USB cable, connect the ports from the microcontroller to the computer.  \n4. Upload the program.  \n5. See the results in the serial monitor.  \nTesting Results  \nThe serial monitor shows the distance (cm) between the sensor module and the ruler.  \nWhen the sensor module was moved closer:","cbCaipTsCUy7R9B0","https://ap.wps.com/l/cbCaipTsCUy7R9B0","pdf",559011,"English","# Specifications\n## Pin Configuration\n## Wiring Diagram\n## Sample Sketch\n## How to test\n## Testing Results","[{\"question\":\"What is the operating principle of the ultrasonic sensor module?\",\"answer\":\"The module transmits eight pulses of a 40kHz square wave and receives the echo. The receiver outputs a waveform whose time period is proportional to distance, which the microcontroller processes.\"},{\"question\":\"What are the key specifications for the HC-SR04 module?\",\"answer\":\"It operates at 5V DC with working current around 15mA and supports detection from 2cm to 450cm with precision up to 3mm. The I/O trigger requires at least a 10µs high signal and the sensor angle is not more than 15 degrees.\"},{\"question\":\"How do you test the module using Arduino?\",\"answer\":\"Connect VCC to 5V, GND to ground, and Trig/Echo to digital I/O pins, then load the sample sketch into the Arduino IDE. After uploading via USB, read the distance results (cm) in the serial monitor.\"}]","Ultrasonic Sensor Module - Specifications, Wiring, and Testing | PDF",15,[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/147b2e76f950fca37207367d1abd9f80.webp",983,1272,{"list":150,"token":11},[151,157,163,169,175,181,187,193,199,205],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":33,"category_name":29,"create_tm":156},681644,"Ultrasonic Ranging Module HC-SR04 - Usage Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998373282/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=Jecn5ok6pF%2B6UALy1Ih6LUy7g%2BQ%3D","ultrasonic-ranging-module-hc-sr04-usage-notes",1793951567,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":30,"category_name":29,"create_tm":162},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":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":33,"category_name":29,"create_tm":168},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":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":33,"category_name":29,"create_tm":174},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":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":30,"category_name":29,"create_tm":180},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":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":33,"category_name":29,"create_tm":186},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":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":110,"category_name":29,"create_tm":192},689891,"PCA9685 - ENG","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002212486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=iK8Gk%2B9OqeZ4Wm1dnS4MJmGeoWw%3D","pca9685-eng",1794133095,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":101,"category_name":29,"create_tm":198},720629,"MAX7219 8x8 LED Matrix Module - Datasheet - Pinout & Interfacing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676434/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=ueHXZxi%2BrpbjmWD6fkL3KaZmr0Q%3D","max7219-8x8-led-matrix-module-datasheet-pinout-interfacing",1795038531,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":96,"category_name":29,"create_tm":204},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":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},562276,"Service Manual - SMPS - Power Supply Schematic Diagram","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947674584/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=5eDb5GV5q716Ykj0wzM4uMlVtR4%3D","service-manual-smps-power-supply-schematic-diagram",21,1791808180]