{"id":23085273,"url":"https://github.com/saeed-dev2/distance-measurement-with-esp32","last_synced_at":"2026-01-01T23:05:14.192Z","repository":{"id":256413991,"uuid":"829306257","full_name":"Saeed-dev2/Distance-Measurement-with-ESP32","owner":"Saeed-dev2","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-10T14:20:13.000Z","size":43163,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-16T17:54:31.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saeed-dev2.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T07:06:22.000Z","updated_at":"2024-11-20T16:39:44.000Z","dependencies_parsed_at":"2024-09-10T16:15:45.246Z","dependency_job_id":null,"html_url":"https://github.com/Saeed-dev2/Distance-Measurement-with-ESP32","commit_stats":null,"previous_names":["saeed-dev2/distance-measurement-with-esp32"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2FDistance-Measurement-with-ESP32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2FDistance-Measurement-with-ESP32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2FDistance-Measurement-with-ESP32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saeed-dev2%2FDistance-Measurement-with-ESP32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saeed-dev2","download_url":"https://codeload.github.com/Saeed-dev2/Distance-Measurement-with-ESP32/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237901438,"owners_count":19384391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T17:51:56.791Z","updated_at":"2025-10-24T02:30:45.056Z","avatar_url":"https://github.com/Saeed-dev2.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distance Measurement\n\nThis project demonstrates how to Measure the distance and how to interface the HC-SR04 ultrasonic sensor with an ESP32 using the ESP-IDF framework. The implementation includes initialization of GPIO pins, sending trigger pulses, measuring echo pulses, and calculating distances.\n\n## Prerequisites\n\n- ESP32 development board\n- HC-SR04 Ultrasonic Sensor\n- ESP-IDF environment set up\n- Connection wires\n\n## Hardware Connections\n\n- Connect the VCC of the HC-SR04 sensor to the 3.3\nV of the ESP32.\n- Connect the GND of the HC-SR04 sensor to the GND of the ESP32.\n- Connect the TRIG pin of the HC-SR04 sensor to GPIO 4 of the ESP32.\n- Connect the ECHO pin of the HC-SR04 sensor to GPIO 5 of the ESP32.\n\n## Project Structure\n\n```plaintext\nultrasonic_sensor\n├── main\n│   ├── CMakeLists.txt\n│   └── ultrasonic_sensor.c\n├── CMakeLists.txt\n└── sdkconfig\n\n```\n## Getting Started\n1. Create a New ESP-IDF Project\nCreate a new directory for your project and navigate to it:\n\n```\nidf.py create-project my_project\n```\n2. Build and Flash the Project\nSet the target to ESP32, build the project, and flash it to your ESP32 board:\n```\nidf.py set-target esp32\nidf.py build\nidf.py flash\n```\n3. Monitor the Output\nStart the serial monitor to see the output:\n```\nidf.py monitor\n```\nTo exit the serial monitor, press `Ctrl + ]`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeed-dev2%2Fdistance-measurement-with-esp32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeed-dev2%2Fdistance-measurement-with-esp32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeed-dev2%2Fdistance-measurement-with-esp32/lists"}