# Ultrasonic Distance Sensor Module

<figure><img src="https://1077748559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuxEcL3mxZNc5Aa92N6%2Fuploads%2FjUvroKtXt8iyALcwpi83%2FYeni%20Microsoft%20PowerPoint%20Sunusu.jpg?alt=media&#x26;token=9b398528-8361-4f15-9f7d-a558a2833b62" alt=""><figcaption><p>Ultrasonic Distance Sensor Module</p></figcaption></figure>

Here is the [datasheet of the distance sensor (HC-SR04)](https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf) on the module.

<mark style="color:red;">The Ultrasonic Distance Sensor Module</mark> is a distance measurement tool. It uses a HC-SR04 ultrasonic distance sensor on it, which is an economical yet powerful sensor for its purpose. The working principle of the HC-SR04 is to send out sound waves and wait for them to return, meanwhile, the sensor holds a signal pin at high voltage level, which is '1' in bool, until the sent out sound waves are received. Thus, the user will be able to calculate the distance between the surface or object facing the sensor.&#x20;

The ultrasonic distance sensor can be used in many projects such as parking systems, object avoidance mobile robots, security systems, automated doors, production lines and much more.

<figure><img src="https://1077748559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuxEcL3mxZNc5Aa92N6%2Fuploads%2FARWH6LmZSqtRUlI1zVIR%2FDistance-removebg-preview%20(1).png?alt=media&#x26;token=a597db7f-160d-4f3e-a152-8087de7a2351" alt=""><figcaption></figcaption></figure>

#### Step Files:

{% file src="<https://1077748559-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuxEcL3mxZNc5Aa92N6%2Fuploads%2F6eCl2qgIIiAfEXP6Vq1s%2FUltrasonic%20Sensor%20Module%20Rev3.step?alt=media&token=a9bd5703-62fd-408f-8e24-c8d164f20a11>" %}

**Here are some of the sample projects that include this module:**

<details>

<summary><a href="../../smd-applications/basics/smart-doorbell">Smart Doorlbell</a>  (including: <a href="../smd-red">SMD RED</a> + <a href="rgb-led-module">RGB Module</a> + <a href="ultrasonic-distance-sensor-module">Ultrasonic Distance Sensor Module</a> +<a href="buzzer-module"> Buzzer Module</a>)</summary>

The Python-based "Buzzer On/Off" application integrates an SMD Motor Driver, an add-on Buzzer Module, and an HC-SR04 Ultrasonic Sensor Module to form an interactive system that reacts to nearby objects. The project is crafted to demonstrate the practical application of combining hardware components with Python programming.

</details>

<details>

<summary><a href="../../smd-applications/interactive/automatic-trash-bin">Automatıc Trash Bin</a> (including: <a href="../smd-red">SMD RED</a> + <a href="ultrasonic-distance-sensor-module">Ultrasonic Distance Sensor Module</a> + DC Motor)</summary>

The Python-based "Automatic Trash Bin" application utilizes an SMD Motor Driver, a DC Motor, and an add-on HC-SR04 Ultrasonic Module to establish a hands-free and hygienic waste disposal solution. This innovative project enables the trash bin lid to open automatically upon a user's approach, enhancing convenience and promoting a touch-free experience.

</details>

<details>

<summary><a href="../../smd-applications/interactive/radar">Radar</a> (including: <a href="../smd-red">SMD RED</a> + <a href="ultrasonic-distance-sensor-module">Ultrasonic Distance Sensor Module</a> + DC Motor + 3D Printed Parts)</summary>

The "Radar" application is a captivating Python-based project that integrates hardware components, 3D printing, and programming to simulate a radar system. This project incorporates an SMD Motor Driver, a DC Motor, and an HC-SR04 Ultrasonic Distance Module mounted on the motor with 3D printed parts. As the motor rotates, the distance sensor gathers data and presents it in real-time on the user's screen, creating a radar-like visualization.

</details>

{% hint style="info" %}
Ready to integrate? You can purchase the <mark style="color:red;">**The Ultrasonic Distance Sensor Module**</mark> directly from our [Online Store](https://www.robotshop.com/products/acrome-ultrasonic-distance-sensor-add-on-module-acrome-smd-products). Worldwide shipping is available for engineering samples and production batches.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.acrome.net/electronics/add-on-modules/ultrasonic-distance-sensor-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
