{"id":28717157,"url":"https://github.com/tharindu714/smart-cloth-line-simple-project","last_synced_at":"2026-04-29T14:03:04.780Z","repository":{"id":298681271,"uuid":"1000749960","full_name":"Tharindu714/Smart-Cloth-Line-Simple-Project","owner":"Tharindu714","description":"An Arduino-driven retractable clothesline system that protects clothes from rain automatically.","archived":false,"fork":false,"pushed_at":"2025-06-12T09:10:06.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-12T10:25:00.149Z","etag":null,"topics":["arduino","cpp","iot","smartdry"],"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/Tharindu714.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}},"created_at":"2025-06-12T09:07:55.000Z","updated_at":"2025-06-12T09:11:07.000Z","dependencies_parsed_at":"2025-06-12T10:25:22.820Z","dependency_job_id":"27c104f7-7ed1-485b-beb6-04d356920ee1","html_url":"https://github.com/Tharindu714/Smart-Cloth-Line-Simple-Project","commit_stats":null,"previous_names":["tharindu714/smart-cloth-line-simple-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tharindu714/Smart-Cloth-Line-Simple-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FSmart-Cloth-Line-Simple-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FSmart-Cloth-Line-Simple-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FSmart-Cloth-Line-Simple-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FSmart-Cloth-Line-Simple-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tharindu714","download_url":"https://codeload.github.com/Tharindu714/Smart-Cloth-Line-Simple-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FSmart-Cloth-Line-Simple-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914931,"owners_count":22931334,"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":["arduino","cpp","iot","smartdry"],"created_at":"2025-06-15T03:13:26.096Z","updated_at":"2026-04-29T14:02:59.746Z","avatar_url":"https://github.com/Tharindu714.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ☔ Smart Cloth Line Control System\n\n\u003e An Arduino-driven retractable clothesline system that protects clothes from rain automatically.\n\n---\n\n## 📖 Description\n\nThis project monitors a **water sensor** to detect raindrops.\n\n* When rain is detected, the system activates a **motor** for **2 seconds** to retract the clothesline under a protective roof.\n* Once the sensor is dry (rain stops), the motor runs again for **2 seconds** to extend the line back outside.\n\n---\n\n## 📂 Project Files\n\n```\nSmart_Drayer_Project/\n├── Smart_Drayer.ino  # Arduino sketch for rain detection and motor control\n└── README.md         # This documentation file\n```\n\n---\n\n## ⚙️ Hardware Setup\n\n* **Arduino UNO** (or compatible)\n* **Water Sensor Module**\n* **DC Motor** + Driver (e.g., L298N)\n* **Power supply** (matching motor requirements)\n* **Clothesline mechanism** with retractable pulley\n\n---\n\n## 🚀 Installation \u0026 Usage\n\n1. **Open** `Smart_Drayer.ino` in the Arduino IDE.\n2. **Connect** the water sensor to an analog pin and the motor driver to digital pins.\n3. **Select** your board \u0026 port under **Tools**.\n4. **Upload** the sketch.\n5. **Test** by simulating raindrops on the sensor; observe retraction and extension.\n\n---\n\n## 📷 Circuit Diagram\n\n\u003e *Insert your wiring schematic here*\n\n![SmartDrayer_img](https://github.com/user-attachments/assets/af0c44f5-1621-49f0-b2ed-3b70927d5e63)\n\n---\n\n## 🔧 Configuration\n\nAdjust these `#define` settings at the top of `Smart_Drayer.ino`:\n\n```cpp\n#define SENSOR_PIN A0         // Water sensor analog input\n#define MOTOR_PIN1 9          // Motor driver IN1\n#define MOTOR_PIN2 10         // Motor driver IN2\n#define RETRACT_DURATION 2000 // Retract time in milliseconds\n#define EXTEND_DURATION 2000  // Extend time in milliseconds\n#define THRESHOLD 500         // Sensor threshold for rain detection\n```\n\nModify the `THRESHOLD` value to calibrate sensitivity, and motor pins/times as needed.\n\n---\n\n## 🛠️ Operation Flow\n\n1. **Monitor** sensor analog value continuously.\n2. **If** value \u003e `THRESHOLD` (rain detected):\n\n   * Activate motor to retract for `RETRACT_DURATION`\n3. **Else if** value ≤ `THRESHOLD` (dry):\n\n   * Activate motor to extend for `EXTEND_DURATION`\n4. **Loop** indefinitely.\n\n---\n\n## 📜 License\n\nMIT © 2025 Tharindu Chanaka\n\n---\n\n\u003e Automating laundry protection with ☔️ and 🤖 by \\Tharindu Chanaka\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fsmart-cloth-line-simple-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftharindu714%2Fsmart-cloth-line-simple-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fsmart-cloth-line-simple-project/lists"}