{"id":25409598,"url":"https://github.com/hugow04/smarthome","last_synced_at":"2026-05-07T17:39:02.295Z","repository":{"id":275799730,"uuid":"927231931","full_name":"HUGOW04/SmartHome","owner":"HUGOW04","description":"Automated smart home system with blinds control and Yeelight sunrise feature using ESP32.","archived":false,"fork":false,"pushed_at":"2025-02-04T17:32:23.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T01:17:32.597Z","etag":null,"topics":["automation","esp32","gearbox","home-automation","iot","mqtt","nema23","ntp","planetary-gearbox","smart-home","stepper-motor","tb6600","yeelight"],"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/HUGOW04.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}},"created_at":"2025-02-04T16:13:44.000Z","updated_at":"2025-02-05T15:32:40.000Z","dependencies_parsed_at":"2025-02-04T17:35:25.611Z","dependency_job_id":null,"html_url":"https://github.com/HUGOW04/SmartHome","commit_stats":null,"previous_names":["hugow04/smarthome"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUGOW04%2FSmartHome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUGOW04%2FSmartHome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUGOW04%2FSmartHome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HUGOW04%2FSmartHome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HUGOW04","download_url":"https://codeload.github.com/HUGOW04/SmartHome/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804824,"owners_count":21164135,"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":["automation","esp32","gearbox","home-automation","iot","mqtt","nema23","ntp","planetary-gearbox","smart-home","stepper-motor","tb6600","yeelight"],"created_at":"2025-02-16T09:21:04.181Z","updated_at":"2026-05-07T17:39:02.289Z","avatar_url":"https://github.com/HUGOW04.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated Blinds System\n\n## Project Overview\nThis project is an automated blinds system powered by WiFi and a **NEMA 23 stepper motor** controlled by an **ESP32 microcontroller**.  \nSince the motor alone was too weak to lift the blinds, I integrated a **planetary gearbox**. The gearbox increases torque output by a factor of 4–5 using its design where one central *sun gear* is surrounded by four *planet gears*. This evenly distributes the load and provides the extra strength needed without requiring a larger, more power-hungry motor.  \nWith this setup, the blinds move smoothly and reliably, even under load.\n\n---\n\n## Planetary Gearbox System\n- **Gear design:** Central sun gear with four planetary gears.  \n- **Purpose:** Torque amplification (4–5×).  \n- **Result:** Stable lifting of blinds with a relatively compact motor.  \n\n---\n\n## How the System Works\n- **ESP32 control:** Connected to the local WiFi network.  \n- **Time synchronization:** Uses **NTP (Network Time Protocol)** for accurate scheduling.  \n- **Automatic schedule:**\n  - Opens blinds at **6 AM on weekdays**.  \n  - Opens blinds at **9 AM on weekends** (for a more relaxed start).  \n  - Closes blinds at **10 PM every night** for privacy and security.  \n\n---\n\n## Manual Control and Sleep-In Mode\nOriginally, the system relied on a second ESP32 with a display to send control signals.  \nThis was replaced by a simpler, more flexible solution:  \n\n- The main ESP32 now hosts its own **web server**.  \n- Features of the web interface:\n  - Manually open/close blinds.  \n  - Override scheduled operations (e.g., sleep in).  \n  - Force blinds to move at any chosen time.  \n  - Temporarily disable automation for specific days.  \n\nThis gives full flexibility and makes the system easy to manage remotely.\n\n---\n\n## Experimental Setup\n- Tested multiple stepper motors to find the right balance of power and efficiency.  \n- Adjusted the gear tracks to perfectly fit the curtain setup.  \n- Iterative trial-and-error ensured smooth operation without motor overload.  \n- The final system achieves **reliable movement with minimal mechanical issues**.  \n\n---\n\n## Demo\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/cc9a33d3-ace7-4c69-aa76-523b4659701e\" alt=\"Planetary Gearbox\" width=\"30%\"/\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/af963ba9-655c-4fcf-a348-8d5cc893c9a2\" alt=\"Motor\" width=\"52%\"/\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/5b6ac11b-9e64-4f91-8573-2422f959ebd0\" alt=\"Webserver Interface\" width=\"60%\"/\u003e\n\u003c/p\u003e\n\n\n\n\n---\n\n## Future Improvements\n- Integration with smart home assistants (Google Home, Alexa).  \n- Light sensor input to adjust blinds dynamically.  \n- Mobile-friendly control dashboard.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugow04%2Fsmarthome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugow04%2Fsmarthome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugow04%2Fsmarthome/lists"}