{"id":26563789,"url":"https://github.com/matesoft2033/c4","last_synced_at":"2026-04-28T23:04:56.131Z","repository":{"id":282928015,"uuid":"950115364","full_name":"matesoft2033/C4","owner":"matesoft2033","description":"The C4 - Button \u0026 Buzzer Timer is an Arduino project that simulates a timed detonation system. When the button is pressed, a countdown begins, displaying the elapsed time on the Serial Monitor. If the button is held for 10 seconds, the buzzer activates, signaling \"detonation.\" Releasing the button at any point resets the timer. ","archived":false,"fork":false,"pushed_at":"2025-05-16T23:37:40.000Z","size":135,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T00:28:15.955Z","etag":null,"topics":["arduino","button","buzzer","countdown-timer","diy-project","electronics","embedded-systems","engeneering","serial-monitor","tech"],"latest_commit_sha":null,"homepage":"https://www.tinkercad.com/things/7DUghqrBAWY-bomb?sharecode=ZM_eTnb7UmI3vdNoHgQR_0gusHznHeY6w0ev1V62lEg","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/matesoft2033.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}},"created_at":"2025-03-17T16:49:14.000Z","updated_at":"2025-05-16T23:37:44.000Z","dependencies_parsed_at":"2025-03-17T18:35:10.214Z","dependency_job_id":null,"html_url":"https://github.com/matesoft2033/C4","commit_stats":null,"previous_names":["matesoft2033/c4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matesoft2033/C4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matesoft2033%2FC4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matesoft2033%2FC4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matesoft2033%2FC4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matesoft2033%2FC4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matesoft2033","download_url":"https://codeload.github.com/matesoft2033/C4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matesoft2033%2FC4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32402696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["arduino","button","buzzer","countdown-timer","diy-project","electronics","embedded-systems","engeneering","serial-monitor","tech"],"created_at":"2025-03-22T16:17:56.037Z","updated_at":"2026-04-28T23:04:56.115Z","avatar_url":"https://github.com/matesoft2033.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💣 C4 - Button \u0026 Buzzer Timer\n\nThe **C4 - Button \u0026 Buzzer Timer** is an Arduino project that simulates a countdown timer. When a button is pressed, it starts counting up to 10 seconds. If the button remains pressed for 10 seconds, the buzzer activates. If the button is released, the countdown resets.\n\n## 📸 Circuit Diagram\nConnect the components as follows:\n![Circuit Diagram](BOMB.png)\n\n- **Button** → Digital Pin 2\n- **Passive Buzzer** → Digital Pin 3\n- **Resistor (10kΩ)** → Pull-down for button\n- **Arduino Board** (e.g., Arduino Uno)\n\n## 🔧 Features\n✅ **Countdown Timer**: Increments every second while the button is held.\n✅ **Buzzer Activation**: Sounds when 10 seconds are reached.\n✅ **Auto Reset**: Releasing the button resets the countdown.\n✅ **Serial Monitor Output**: Displays countdown progress.\n\n## 🚀 How It Works\n1. **Press \u0026 Hold the Button**: The timer starts counting.\n2. **Monitor the Serial Output**: Each second is printed.\n3. **At 10 Seconds**: The buzzer turns on.\n4. **Release the Button**: The timer resets, and the buzzer stops.\n\n## 📜 Code\n```cpp\n#define BUTTON 2\n#define BUZZER 3\n#define TIME 1000\n\nvoid setup() {\n  Serial.begin(9600);\n  pinMode(BUTTON, INPUT_PULLUP);\n  pinMode(BUZZER, OUTPUT);\n}\n\nvoid loop() {\n  int i = 0;\n\n  while (digitalRead(BUTTON) == LOW) {\n    i++;\n    Serial.print(\"You have pressed the button for: \");\n    Serial.println(i);\n    delay(TIME);\n    \n    if (i == 10) {\n      Serial.println(\"You have pressed it for 10 seconds **BOOM**\");\n      tone(BUZZER, 1000);\n    }\n  }\n  noTone(BUZZER);\n}\n```\n\n## 📢 Notes\n- Use **INPUT_PULLUP** to avoid floating input issues.\n- Adjust the **delay(TIME)** if you need a different timing.\n- The **tone() function** activates the buzzer at 1kHz.\n- Ensure the **button is wired correctly** (pull-down resistor recommended).\n\n🔥 Have fun with your C4 countdown simulation! 🔥\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatesoft2033%2Fc4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatesoft2033%2Fc4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatesoft2033%2Fc4/lists"}