{"id":28717163,"url":"https://github.com/tharindu714/charging-timer-unit-simple-sketch","last_synced_at":"2026-04-29T15:07:04.245Z","repository":{"id":298680956,"uuid":"1000740346","full_name":"Tharindu714/Charging-Timer-Unit-simple-Sketch","owner":"Tharindu714","description":"A simple Arduino-based timer that indicates charge status via an LED and enforces a cooldown period.","archived":false,"fork":false,"pushed_at":"2025-06-12T09:05:20.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-12T10:23:56.009Z","etag":null,"topics":["arduino","cpp","iot"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Tharindu714.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,"zenodo":null}},"created_at":"2025-06-12T08:49:43.000Z","updated_at":"2025-06-12T09:06:06.000Z","dependencies_parsed_at":"2025-06-12T10:24:05.487Z","dependency_job_id":"4cc5907b-828b-4163-aba8-8fb36cd0b0e9","html_url":"https://github.com/Tharindu714/Charging-Timer-Unit-simple-Sketch","commit_stats":null,"previous_names":["tharindu714/charging-timer-unit-simple-sketch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tharindu714/Charging-Timer-Unit-simple-Sketch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FCharging-Timer-Unit-simple-Sketch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FCharging-Timer-Unit-simple-Sketch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FCharging-Timer-Unit-simple-Sketch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FCharging-Timer-Unit-simple-Sketch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tharindu714","download_url":"https://codeload.github.com/Tharindu714/Charging-Timer-Unit-simple-Sketch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tharindu714%2FCharging-Timer-Unit-simple-Sketch/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"],"created_at":"2025-06-15T03:13:27.861Z","updated_at":"2026-04-29T15:07:04.211Z","avatar_url":"https://github.com/Tharindu714.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## **README.md for Timer Project**\n\n# ⏲️ Timer Charging Unit\n\n\u003e A simple Arduino-based timer that indicates charge status via an LED and enforces a cooldown period.\n\n---\n\n## 📖 Description\n\nWhen powered on, the **LED** glows continuously for **1 minute** to indicate startup.\nAfter this initial period, the unit enters a **1-hour charging** cycle; during this time the LED remains on.\nOnce charging is complete, the LED turns off automatically, and the system locks out for **24 hours**, during which the LED remains off and charging is disabled.\n\n---\n\n## 📂 Project Files\n\n```\nTimer_Project/\n├── Timer.ino       # Arduino sketch implementing LED timing logic\n└── README.md       # This documentation file\n```\n\n---\n\n## ⚙️ Hardware Setup\n\n* **Arduino UNO** (or compatible board)\n* **LED** with appropriate resistor\n* **Power supply** (e.g., USB or battery pack)\n\n---\n\n## 🚀 Installation \u0026 Usage\n\n1. **Open** `Timer.ino` in the Arduino IDE.\n2. **Connect** your Arduino board via USB.\n3. **Select** the correct board and port under **Tools**.\n4. **Upload** the sketch.\n5. **Power cycle** the unit to start the timing sequence.\n\n---\n\n## 📷 Circuit Diagram\n\n\u003e *Insert your circuit schematic here*\n\n\n![Timer Charging Unit ](https://github.com/user-attachments/assets/ba5833c1-ff16-437f-8f9e-ff53e74009d0)\n\n---\n\n## 🔧 Configuration\n\nWithin `Timer.ino`, you can adjust the timing constants near the top of the file:\n\n```cpp\nconst unsigned long STARTUP_DELAY = 60000UL;      // 1 minute in milliseconds\nconst unsigned long CHARGE_DURATION = 3600000UL;  // 1 hour in milliseconds\nconst unsigned long COOLDOWN_PERIOD = 86400000UL; // 24 hours in milliseconds\nconst int LED_PIN = 13;                           // On-board LED pin\n```\n\nModify these values to change durations or LED pin assignments.\n\n---\n\n## 🛠️ How It Works\n\n1. **Power On** →  waits `STARTUP_DELAY`, LED on\n2. **Charging Phase** →  runs for `CHARGE_DURATION`, LED on\n3. **Cooldown Phase** →  runs for `COOLDOWN_PERIOD`, LED off\n4. **Cycle Reset** → repeats from step 1 after cooldown\n\n---\n\n## 📜 License\n\nMIT © 2025 Tharindu Chanaka\n\n---\n\n\u003e Built with Arduino and 💡 by \\Tharindu Chanaka\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fcharging-timer-unit-simple-sketch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftharindu714%2Fcharging-timer-unit-simple-sketch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharindu714%2Fcharging-timer-unit-simple-sketch/lists"}