{"id":25632928,"url":"https://github.com/migueltc13/hc-sr04","last_synced_at":"2025-04-14T18:09:51.930Z","repository":{"id":117591325,"uuid":"382970120","full_name":"migueltc13/HC-SR04","owner":"migueltc13","description":"Basic sensor alarm system made with ESP8266 and HC-SR04.","archived":false,"fork":false,"pushed_at":"2023-02-26T11:40:13.000Z","size":973,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T18:09:46.931Z","etag":null,"topics":["arduinoide","blynk","blynk-arduino","blynk-mobile","blynk-server","customizable","distance-sensor","esp8266","esp8266-arduino","esp8266-projects","esp8266wifi","hc-sr04","hc-sr04-ultrasonic-sensor","opensource","sublime-text-3","vscode"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/migueltc13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"migueltc13","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-07-04T23:51:53.000Z","updated_at":"2024-02-01T02:02:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"71184bb2-2c8f-406a-b393-b0735076e035","html_url":"https://github.com/migueltc13/HC-SR04","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueltc13%2FHC-SR04","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueltc13%2FHC-SR04/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueltc13%2FHC-SR04/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migueltc13%2FHC-SR04/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/migueltc13","download_url":"https://codeload.github.com/migueltc13/HC-SR04/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933340,"owners_count":21185460,"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":["arduinoide","blynk","blynk-arduino","blynk-mobile","blynk-server","customizable","distance-sensor","esp8266","esp8266-arduino","esp8266-projects","esp8266wifi","hc-sr04","hc-sr04-ultrasonic-sensor","opensource","sublime-text-3","vscode"],"created_at":"2025-02-22T21:19:18.797Z","updated_at":"2025-04-14T18:09:51.923Z","avatar_url":"https://github.com/migueltc13.png","language":"C++","funding_links":["https://github.com/sponsors/migueltc13"],"categories":[],"sub_categories":[],"readme":"# HC-SR04 Sensor Alarm\n\n***Distance detection system made with HC-SR04 Ultrasonic Sensor and micro-controller ESP8266.\u003cbr /\u003e***\n- Circuit controlled by Wi-Fi with the Blynk app/website.\u003cbr /\u003e\n- Trigger distances are customizable in centimeters (cm).\u003cbr /\u003e\n- Delay times are customizable in milliseconds (ms).\u003cbr /\u003e\n\nStill in progress...\n\n---\n\nA special thanks to the ***ESP8266 Community*** for the board driver for the ESP8266 in Arduino IDE and also to ***Volodymyr Shymanskyy*** for the Blynk library used in this project for Wi-Fi connectivity.\n\n---\n\n## Installation\n\nYou can use multiple IDEs, such as Arduino IDE (Genuino), to transfer the code to the micro-controller ESP8266.\u003cbr /\u003e\nThere are also plugins to use in IDEs like VSCode, Sublime-text, etc.\u003cbr /\u003e\n\nAfter compiling the .ino main file the code can be sent to the ESP and the installation/programming phases are over.\n\n---\n\n## Components\n\n- 1x - ESP8266 \u003cbr/\u003e\n- 1x - HC-SR04 \u003cbr/\u003e\n- 1x - LED* \u003cbr/\u003e\n- 1x - 1k Resistor* \u003cbr/\u003e\n- 4x or 6x(*) - Jumper Wires \u003cbr/\u003e\n\n(*) Optional - Can be replaced with other components.\n\n---\n\n### Circuit Sketch\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\".github/img/sketch.png\" alt=\"Circuit Sketch\"/\u003e\n\u003c/p\u003e\n\n---\n\n### Issues \u0026 Solutions\n\n***a) Port closed or access denied in the USB connection.***\u003cbr /\u003e\n\na.1) There's a shell file \"ttyUSB0.sh\", located in the \"src\" dir made to open the USB0 port to enable the ESP connection, fixing issue ***a)***.\u003cbr /\u003e\n\nThat executes the following command:\n\n```bash\nsudo chmod -R 777 /dev/ttyUSB0 \n  ```\n  \nTo run simply type:\n\n```bash\n./src/ttyUSB0.sh\n```\n\nFeel free to modify it to your respective USB port.\n\n---\n\n***Or:***\n\na.2) You can run the following commands:\n\n```bash\ngroups\n```\n\nTo see all available groups type:\n\n```bash\ncompgen -g\n```\n\nMost of them are self-explanatory, in this case, you want to add yourself to either the tty group or dial-out, which you would do by:\n\n```bash\nsudo usermod -a -G tty \u003cUSERNAME\u003e\n```\n\nThen you should have access to tty without the use of sudo.\n\n---\n\n### TODO\n\n- [x] Sketch\n- [ ] Config file\n- [ ] Blynk LED\n- [ ] Blynk screenshot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigueltc13%2Fhc-sr04","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmigueltc13%2Fhc-sr04","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigueltc13%2Fhc-sr04/lists"}