{"id":1097,"date":"2025-04-25T20:36:37","date_gmt":"2025-04-25T15:06:37","guid":{"rendered":"https:\/\/vihaaniotgateway.in\/?post_type=product&#038;p=1097"},"modified":"2026-05-10T12:24:00","modified_gmt":"2026-05-10T06:54:00","slug":"hc-sr04-ultrasonic-distance-sensor-module","status":"publish","type":"product","link":"https:\/\/vihaaniotgateway.in\/index.php\/product\/hc-sr04-ultrasonic-distance-sensor-module\/","title":{"rendered":"HC-SR04 Ultrasonic Distance Sensor Module"},"content":{"rendered":"<p class=\"\" data-start=\"349\" data-end=\"399\"><strong data-start=\"349\" data-end=\"399\"><a class=\"\" href=\"#\" rel=\"noopener\" data-start=\"351\" data-end=\"397\">HC-SR04 Ultrasonic Distance Sensor Module<\/a><\/strong><\/p>\n<p class=\"\" data-start=\"401\" data-end=\"1031\">The <strong data-start=\"405\" data-end=\"455\"><a class=\"\" href=\"#\" rel=\"noopener\" data-start=\"407\" data-end=\"453\">HC-SR04 Ultrasonic Distance Sensor Module<\/a><\/strong> is a reliable, easy-to-use sensor that accurately measures the distance between the module and objects using ultrasonic waves. This sensor is perfect for a variety of <strong data-start=\"623\" data-end=\"672\"><a class=\"\" href=\"#electronics-projects\" rel=\"noopener\" data-start=\"625\" data-end=\"670\">electronics projects<\/a><\/strong>, especially in <strong data-start=\"688\" data-end=\"713\"><a class=\"\" href=\"#robotics\" rel=\"noopener\" data-start=\"690\" data-end=\"711\">robotics<\/a><\/strong>, <strong data-start=\"715\" data-end=\"739\"><a class=\"\" href=\"#iot-projects\" rel=\"noopener\" data-start=\"717\" data-end=\"737\">IoT<\/a><\/strong>, and <strong data-start=\"745\" data-end=\"789\"><a class=\"\" href=\"#automated-systems\" rel=\"noopener\" data-start=\"747\" data-end=\"787\">automation systems<\/a><\/strong>. It measures distances from 2 cm to 4 meters with impressive precision and is compatible with various <strong data-start=\"892\" data-end=\"937\"><a class=\"\" href=\"#development-boards\" rel=\"noopener\" data-start=\"894\" data-end=\"935\">development boards<\/a><\/strong>, such as <strong data-start=\"947\" data-end=\"970\"><a class=\"\" href=\"#arduino\" rel=\"noopener\" data-start=\"949\" data-end=\"968\">Arduino<\/a><\/strong>, <strong data-start=\"972\" data-end=\"1005\"><a class=\"\" href=\"#raspberry-pi\" rel=\"noopener\" data-start=\"974\" data-end=\"1003\">Raspberry Pi<\/a><\/strong>, and <strong data-start=\"1011\" data-end=\"1030\"><a class=\"\" href=\"#esp32\" rel=\"noopener\" data-start=\"1013\" data-end=\"1028\">ESP32<\/a><\/strong>.<\/p>\n<p class=\"\" data-start=\"1033\" data-end=\"1369\">This module works by emitting ultrasonic waves through its transmitter, waiting for the echo to return from any object in its path. The time it takes for the echo to return allows the module to calculate the distance. Its non-contact measurement method makes it ideal for situations where direct contact with the object is not feasible.<\/p>\n<h3 class=\"\" data-start=\"1371\" data-end=\"1392\"><strong data-start=\"1375\" data-end=\"1392\">Key Features:<\/strong><\/h3>\n<ul data-start=\"1393\" data-end=\"2191\">\n<li class=\"\" data-start=\"1393\" data-end=\"1497\">\n<p class=\"\" data-start=\"1395\" data-end=\"1497\"><strong data-start=\"1395\" data-end=\"1417\">Measurement Range:<\/strong> 2 cm to 4 meters, ideal for both short-range and longer-range distance sensing.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1498\" data-end=\"1673\">\n<p class=\"\" data-start=\"1500\" data-end=\"1673\"><strong data-start=\"1500\" data-end=\"1522\">Operating Voltage:<\/strong> Runs on a <strong data-start=\"1533\" data-end=\"1542\">5V DC<\/strong> power supply, making it fully compatible with <strong data-start=\"1589\" data-end=\"1612\"><a class=\"\" href=\"#arduino\" rel=\"noopener\" data-start=\"1591\" data-end=\"1610\">Arduino<\/a><\/strong>, <strong data-start=\"1614\" data-end=\"1647\"><a class=\"\" href=\"#raspberry-pi\" rel=\"noopener\" data-start=\"1616\" data-end=\"1645\">Raspberry Pi<\/a><\/strong>, and <strong data-start=\"1653\" data-end=\"1672\"><a class=\"\" href=\"#esp32\" rel=\"noopener\" data-start=\"1655\" data-end=\"1670\">ESP32<\/a><\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1674\" data-end=\"1801\">\n<p class=\"\" data-start=\"1676\" data-end=\"1801\"><strong data-start=\"1676\" data-end=\"1696\">Detection Angle:<\/strong> The module detects within a <strong data-start=\"1725\" data-end=\"1743\">15-degree cone<\/strong>, ensuring accurate measurements within its field of view.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1802\" data-end=\"1916\">\n<p class=\"\" data-start=\"1804\" data-end=\"1916\"><strong data-start=\"1804\" data-end=\"1817\">Accuracy:<\/strong> Offers high accuracy with a <strong data-start=\"1846\" data-end=\"1854\">\u00b13mm<\/strong> margin of error, making it suitable for precise applications.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1917\" data-end=\"2061\">\n<p class=\"\" data-start=\"1919\" data-end=\"2061\"><strong data-start=\"1919\" data-end=\"1942\">Simple Integration:<\/strong> It integrates easily with development boards, requiring just two main pins: <strong data-start=\"2019\" data-end=\"2030\">Trigger<\/strong> (input) and <strong data-start=\"2043\" data-end=\"2051\">Echo<\/strong> (output).<\/p>\n<\/li>\n<li class=\"\" data-start=\"2062\" data-end=\"2191\">\n<p class=\"\" data-start=\"2064\" data-end=\"2191\"><strong data-start=\"2064\" data-end=\"2079\">Durability:<\/strong> Designed with robustness in mind, the module functions well in various environments, both indoors and outdoors.<\/p>\n<\/li>\n<\/ul>\n<h3 class=\"\" data-start=\"2193\" data-end=\"2214\"><strong data-start=\"2197\" data-end=\"2214\">Applications:<\/strong><\/h3>\n<ul data-start=\"2215\" data-end=\"3021\">\n<li class=\"\" data-start=\"2215\" data-end=\"2422\">\n<p class=\"\" data-start=\"2217\" data-end=\"2422\"><strong data-start=\"2217\" data-end=\"2243\"><a class=\"\" href=\"#robotics\" rel=\"noopener\" data-start=\"2219\" data-end=\"2240\">Robotics<\/a>:<\/strong> Used for obstacle avoidance, distance measurement, and autonomous navigation. It&#8217;s an essential component for any <strong data-start=\"2358\" data-end=\"2380\"><a class=\"\" href=\"#robotics\" rel=\"noopener\" data-start=\"2360\" data-end=\"2378\">robot<\/a><\/strong> aiming to interact with its surroundings.<\/p>\n<\/li>\n<li class=\"\" data-start=\"2423\" data-end=\"2609\">\n<p class=\"\" data-start=\"2425\" data-end=\"2609\"><strong data-start=\"2425\" data-end=\"2459\"><a class=\"\" href=\"#iot-projects\" rel=\"noopener\" data-start=\"2427\" data-end=\"2456\">IoT Projects<\/a>:<\/strong> The <strong data-start=\"2464\" data-end=\"2475\">HC-SR04<\/strong> plays a crucial role in smart systems like proximity sensors, object detection, and level sensing in <strong data-start=\"2577\" data-end=\"2608\"><a class=\"\" href=\"#iot-devices\" rel=\"noopener\" data-start=\"2579\" data-end=\"2606\">IoT devices<\/a><\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"2610\" data-end=\"2789\">\n<p class=\"\" data-start=\"2612\" data-end=\"2789\"><strong data-start=\"2612\" data-end=\"2656\"><a class=\"\" href=\"#automated-systems\" rel=\"noopener\" data-start=\"2614\" data-end=\"2653\">Automated Systems<\/a>:<\/strong> Ideal for applications like parking sensors, material handling, and water level monitoring in industrial or home automation systems.<\/p>\n<\/li>\n<li class=\"\" data-start=\"2790\" data-end=\"3021\">\n<p class=\"\" data-start=\"2792\" data-end=\"3021\"><strong data-start=\"2792\" data-end=\"2842\"><a class=\"\" href=\"#educational-projects\" rel=\"noopener\" data-start=\"2794\" data-end=\"2839\">Educational Projects<\/a>:<\/strong> Perfect for hands-on learning in <strong data-start=\"2876\" data-end=\"2913\"><a class=\"\" href=\"#maker-projects\" rel=\"noopener\" data-start=\"2878\" data-end=\"2911\">maker projects<\/a><\/strong> and educational kits, helping students understand sensor technology, programming, and distance measurement.<\/p>\n<\/li>\n<\/ul>\n<h3 class=\"\" data-start=\"3023\" data-end=\"3044\"><strong data-start=\"3027\" data-end=\"3044\">How It Works:<\/strong><\/h3>\n<p class=\"\" data-start=\"3045\" data-end=\"3398\">The <strong data-start=\"3049\" data-end=\"3067\">HC-SR04 module<\/strong> uses ultrasonic waves to measure the distance between the sensor and an object. When triggered, the module emits a pulse, and upon hitting an object, the wave bounces back to the sensor. The time delay between the emission and the echo helps calculate the distance, using the formula:<br data-start=\"3352\" data-end=\"3355\" \/><strong data-start=\"3355\" data-end=\"3397\">Distance = (Time \u00d7 Speed of Sound) \/ 2<\/strong>.<\/p>\n<h3 class=\"\" data-start=\"3400\" data-end=\"3456\"><strong data-start=\"3404\" data-end=\"3456\">Why Choose the HC-SR04 Ultrasonic Sensor Module?<\/strong><\/h3>\n<ul data-start=\"3457\" data-end=\"4039\">\n<li class=\"\" data-start=\"3457\" data-end=\"3624\">\n<p class=\"\" data-start=\"3459\" data-end=\"3624\"><strong data-start=\"3459\" data-end=\"3478\">Cost-Effective:<\/strong> The <strong data-start=\"3483\" data-end=\"3494\">HC-SR04<\/strong> offers affordable distance sensing without compromising on quality. It\u2019s the perfect choice for both professionals and hobbyists.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3625\" data-end=\"3820\">\n<p class=\"\" data-start=\"3627\" data-end=\"3820\"><strong data-start=\"3627\" data-end=\"3641\">Versatile:<\/strong> Whether you&#8217;re building a <strong data-start=\"3668\" data-end=\"3690\"><a class=\"\" href=\"#robotics\" rel=\"noopener\" data-start=\"3670\" data-end=\"3688\">robot<\/a><\/strong>, a <strong data-start=\"3694\" data-end=\"3736\"><a class=\"\" href=\"#home-automation-systems\" rel=\"noopener\" data-start=\"3696\" data-end=\"3734\">smart home<\/a><\/strong> device, or an industrial automation system, the <strong data-start=\"3785\" data-end=\"3796\">HC-SR04<\/strong> adapts to various uses.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3821\" data-end=\"4039\">\n<p class=\"\" data-start=\"3823\" data-end=\"4039\"><strong data-start=\"3823\" data-end=\"3838\">Compatible:<\/strong> Works seamlessly with a wide range of development boards including <strong data-start=\"3906\" data-end=\"3929\"><a class=\"\" href=\"#arduino\" rel=\"noopener\" data-start=\"3908\" data-end=\"3927\">Arduino<\/a><\/strong>, <strong data-start=\"3931\" data-end=\"3964\"><a class=\"\" href=\"#raspberry-pi\" rel=\"noopener\" data-start=\"3933\" data-end=\"3962\">Raspberry Pi<\/a><\/strong>, and <strong data-start=\"3970\" data-end=\"3989\"><a class=\"\" href=\"#esp32\" rel=\"noopener\" data-start=\"3972\" data-end=\"3987\">ESP32<\/a><\/strong> for easy integration into your existing projects.<\/p>\n<\/li>\n<\/ul>\n<h3 class=\"\" data-start=\"4041\" data-end=\"4064\"><strong data-start=\"4045\" data-end=\"4064\">Specifications:<\/strong><\/h3>\n<ul data-start=\"4065\" data-end=\"4248\">\n<li class=\"\" data-start=\"4065\" data-end=\"4092\">\n<p class=\"\" data-start=\"4067\" data-end=\"4092\"><strong data-start=\"4067\" data-end=\"4086\">Supply Voltage:<\/strong> 5V DC<\/p>\n<\/li>\n<li class=\"\" data-start=\"4093\" data-end=\"4122\">\n<p class=\"\" data-start=\"4095\" data-end=\"4122\"><strong data-start=\"4095\" data-end=\"4105\">Range:<\/strong> 2 cm to 4 meters<\/p>\n<\/li>\n<li class=\"\" data-start=\"4123\" data-end=\"4143\">\n<p class=\"\" data-start=\"4125\" data-end=\"4143\"><strong data-start=\"4125\" data-end=\"4138\">Accuracy:<\/strong> \u00b13mm<\/p>\n<\/li>\n<li class=\"\" data-start=\"4144\" data-end=\"4172\">\n<p class=\"\" data-start=\"4146\" data-end=\"4172\"><strong data-start=\"4146\" data-end=\"4161\">Beam Angle:<\/strong> 15 degrees<\/p>\n<\/li>\n<li class=\"\" data-start=\"4173\" data-end=\"4211\">\n<p class=\"\" data-start=\"4175\" data-end=\"4211\"><strong data-start=\"4175\" data-end=\"4189\">Interface:<\/strong> Trigger and Echo Pins<\/p>\n<\/li>\n<li class=\"\" data-start=\"4212\" data-end=\"4248\">\n<p class=\"\" data-start=\"4214\" data-end=\"4248\"><strong data-start=\"4214\" data-end=\"4229\">Dimensions:<\/strong> 45mm x 20mm x 15mm<\/p>\n<\/li>\n<\/ul>\n<p class=\"\" data-start=\"4250\" data-end=\"4537\">The <strong data-start=\"4254\" data-end=\"4299\">HC-SR04 Ultrasonic Distance Sensor Module<\/strong> is perfect for anyone looking to incorporate distance sensing into their <strong data-start=\"4373\" data-end=\"4422\"><a class=\"\" href=\"#electronics-projects\" rel=\"noopener\" data-start=\"4375\" data-end=\"4420\">electronics projects<\/a><\/strong>. With its precision, ease of use, and affordability, it&#8217;s an ideal choice for engineers, educators, and hobbyists.<\/p>\n","protected":false},"excerpt":{"rendered":"<article class=\"text-token-text-primary w-full\" dir=\"auto\" data-testid=\"conversation-turn-26\" data-scroll-anchor=\"true\">\n<div class=\"text-base my-auto mx-auto py-5 [--thread-content-margin:--spacing(4)] @[37rem]:[--thread-content-margin:--spacing(6)] @[70rem]:[--thread-content-margin:--spacing(12)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:32rem] @[34rem]:[--thread-content-max-width:40rem] @[64rem]:[--thread-content-max-width:48rem] mx-auto flex max-w-(--thread-content-max-width) flex-1 text-base gap-4 md:gap-5 lg:gap-6 group\/turn-messages focus-visible:outline-hidden\" tabindex=\"-1\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"relative flex-col gap-1 md:gap-3\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"bec613f7-1abc-4682-add7-33cffc6bec52\" data-message-model-slug=\"gpt-4o-mini\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words light\">\n<p class=\"\" data-start=\"0\" data-end=\"150\">The HC-SR04 Ultrasonic Distance Sensor Module accurately measures distances from 2 cm to 4 meters, perfect for robotics, IoT, and automation projects<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"absolute\">\n<div class=\"flex items-center justify-center\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<div class=\"pointer-events-none h-px w-px\" aria-hidden=\"true\" data-edge=\"true\"><\/div>\n","protected":false},"featured_media":1098,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false},"product_brand":[],"product_cat":[19,73],"product_tag":[],"class_list":{"0":"post-1097","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-electronics","7":"product_cat-sensors-and-modules","9":"first","10":"instock","11":"sale","12":"taxable","13":"shipping-taxable","14":"purchasable","15":"product-type-simple"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/product\/1097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/comments?post=1097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/media\/1098"}],"wp:attachment":[{"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/media?parent=1097"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/product_brand?post=1097"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/product_cat?post=1097"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/vihaaniotgateway.in\/index.php\/wp-json\/wp\/v2\/product_tag?post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}