{"id":25209109,"url":"https://github.com/nopnop2002/esp-idf-usb-switch","last_synced_at":"2026-02-23T07:42:55.274Z","repository":{"id":276582435,"uuid":"929688495","full_name":"nopnop2002/esp-idf-usb-switch","owner":"nopnop2002","description":"Turning USB ON/OFF using ESP-IDF","archived":false,"fork":false,"pushed_at":"2025-12-03T23:17:54.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T05:19:23.325Z","etag":null,"topics":["esp-idf","esp32","usb-devices"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nopnop2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-09T06:16:22.000Z","updated_at":"2025-12-03T23:17:58.000Z","dependencies_parsed_at":"2025-07-26T19:32:47.614Z","dependency_job_id":null,"html_url":"https://github.com/nopnop2002/esp-idf-usb-switch","commit_stats":null,"previous_names":["nopnop2002/esp-idf-usb-switch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nopnop2002/esp-idf-usb-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-usb-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-usb-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-usb-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-usb-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nopnop2002","download_url":"https://codeload.github.com/nopnop2002/esp-idf-usb-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-usb-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29739427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:21:16.360Z","status":"ssl_error","status_checked_at":"2026-02-23T07:21:16.007Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["esp-idf","esp32","usb-devices"],"created_at":"2025-02-10T13:15:19.829Z","updated_at":"2026-02-23T07:42:55.258Z","avatar_url":"https://github.com/nopnop2002.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp-idf-usb-switch\nTurning USB ON/OFF using ESP-IDF.   \n\nWe can obtain products that turn USB on/off with a remote control about $4.   \nBoth of these use a frequency of 433MHz radio signal.   \nUsing these, you can turn on/off the USB device from the ESP32.   \n__The product on the right has only one button, so ON/OFF may not work as expected.__   \n![Image](https://github.com/user-attachments/assets/88d1a4d8-c98b-44c4-b589-0b053ff2534b)\n\n\n# Software requirements\nESP-IDF V5.0 or later.   \nESP-IDF V4.4 release branch reached EOL in July 2024.   \n\n# Hardware requirements\nThis project supports these wireless transceivers.   \n\n- Wireless transmitter   \nH34A-315/H34A-433   \nSYN115   \nSTX882   \n\n- Wireless receiver   \nH3V3/H3V4   \nSYN480R   \nLR43B/LR33B   \nSRX882/SRX887   \n\n- Wireless RF Remote Control Switch   \n\nI used these transceivers.\nFrom left: H3V4F, H34A, SYN480, SYN115   \n![Image](https://github.com/user-attachments/assets/e0a27e32-cebe-457a-aaa8-11da5f5dcc31)   \n![Image](https://github.com/user-attachments/assets/ef3ad73b-3aec-4a89-b507-498fb9ddbcc7)   \n\n\n# How to use\nFirst, do teaching.   \nThe teaching results are stored in NVS.   \nTurn the USB ON/OFF using the teaching results.   \n\n# Teaching\n```\ngit clone https://github.com/nopnop2002/esp-idf-usb-switch\ncd esp-idf-usb-switch/teaching\nidf.py menuconfig\nidf.py flash\n```\n\n## Configuration\n![Image](https://github.com/user-attachments/assets/cb6fb520-e9eb-47b0-9246-33516a4a5e9d)\n![Image](https://github.com/user-attachments/assets/65c98e54-c370-470d-a14b-f5fcb31ed772)\n\n\n## Wirering\n|Receiver Module||ESP32|\n|:-:|:-:|:-:|\n|DATA|--|GPIO4|\n|GND|--|GND|\n|VCC|--|3.3V|\n\n## Typical circuit\n![Image](https://github.com/user-attachments/assets/f185c4a0-90ab-4232-b97a-7e03921ae8a1)\n\n## Start teaching\nAt this timing, press the ON button on the remote control.   \n![Image](https://github.com/user-attachments/assets/942728d0-ae7e-48ac-b827-6270c3a87930)   \n\nAt this timing, press the OFF button on the remote control.   \n![Image](https://github.com/user-attachments/assets/61a7b880-2af8-4051-8ef7-5b0ec154ca35)\n\n# Re-teaching\nRun this project again.   \nPrevious information will be overwritten.   \n\n# ON/OFF by timer\nRead [this](https://github.com/nopnop2002/esp-idf-usb-switch/tree/main/timer).   \n\n# ON/OFF by cron\nRead [this](https://github.com/nopnop2002/esp-idf-usb-switch/tree/main/cron).   \n\n# ON/OFF by http/mqtt\nRead [this](https://github.com/nopnop2002/esp-idf-usb-switch/tree/main/network).   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fesp-idf-usb-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnopnop2002%2Fesp-idf-usb-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fesp-idf-usb-switch/lists"}