{"id":23999110,"url":"https://github.com/bytekeeper/clock-nanoatmega328","last_synced_at":"2025-08-01T14:07:32.263Z","repository":{"id":85149713,"uuid":"113650276","full_name":"Bytekeeper/clock-nanoatmega328","owner":"Bytekeeper","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-09T07:36:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:20:47.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Bytekeeper.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":"2017-12-09T07:13:24.000Z","updated_at":"2017-12-09T07:13:38.000Z","dependencies_parsed_at":"2023-03-04T20:15:27.316Z","dependency_job_id":null,"html_url":"https://github.com/Bytekeeper/clock-nanoatmega328","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bytekeeper/clock-nanoatmega328","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bytekeeper%2Fclock-nanoatmega328","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bytekeeper%2Fclock-nanoatmega328/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bytekeeper%2Fclock-nanoatmega328/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bytekeeper%2Fclock-nanoatmega328/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bytekeeper","download_url":"https://codeload.github.com/Bytekeeper/clock-nanoatmega328/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bytekeeper%2Fclock-nanoatmega328/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260447678,"owners_count":23010546,"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":[],"created_at":"2025-01-07T23:45:55.911Z","updated_at":"2025-06-17T22:06:24.272Z","avatar_url":"https://github.com/Bytekeeper.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clock-nanoatmega328\n\nPart of a project to build a alarm clock: This part shows the time on a 4 digit 7 segment display using an arduino nano.\n\n## 4 Digit Display Pin Layout\n* The display I'm using has 17 pins\n* There are 2 common anodes: PIN 1 and PIN 2\n* PIN 3 is dead\n* PIN 4 - 17 display different segments depending on which anode is active\n\nThe following table shows which segments associations:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\u003c/th\u003e\n    \u003cth colspan=\"2\"\u003eDIGIT 1\u003c/th\u003e\n    \u003cth colspan=\"4\"\u003eDIGIT 2\u003c/th\u003e\n    \u003cth colspan=\"4\"\u003eDIGIT 3\u003c/th\u003e\n    \u003cth colspan=\"4\"\u003eDIGIT 4\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eAnode\u003c/th\u003e\n    \u003cth\u003ePIN 4\u003c/th\u003e\n    \u003cth\u003ePIN 5\u003c/th\u003e\n    \u003cth\u003ePIN 6\u003c/th\u003e\n    \u003cth\u003ePIN 7\u003c/th\u003e\n    \u003cth\u003ePIN 8\u003c/th\u003e\n    \u003cth\u003ePIN 9\u003c/th\u003e\n    \u003cth\u003ePIN 10\u003c/th\u003e\n    \u003cth\u003ePIN 11\u003c/th\u003e\n    \u003cth\u003ePIN 12\u003c/th\u003e\n    \u003cth\u003ePIN 13\u003c/th\u003e\n    \u003cth\u003ePIN 14\u003c/th\u003e\n    \u003cth\u003ePIN 15\u003c/th\u003e\n    \u003cth\u003ePIN 16\u003c/th\u003e\n    \u003cth\u003ePIN 17\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003ePIN 1\u003c/th\u003e\n    \u003ctd\u003ea,g\u003c/td\u003e\n    \u003ctd\u003ec\u003c/td\u003e\n    \u003ctd\u003ee\u003c/td\u003e\n    \u003ctd\u003ed\u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n    \u003ctd\u003ec\u003c/td\u003e\n    \u003ctd\u003edots\u003c/td\u003e\n    \u003ctd\u003ee\u003c/td\u003e\n    \u003ctd\u003ed\u003c/td\u003e\n    \u003ctd\u003ec\u003c/td\u003e\n    \u003ctd\u003ee\u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n    \u003ctd\u003ed\u003c/td\u003e\n    \u003ctd\u003ec\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003ePIN 2\u003c/th\u003e\n    \u003ctd\u003ee,d\u003c/td\u003e\n    \u003ctd\u003eb\u003c/td\u003e\n    \u003ctd\u003ef\u003c/td\u003e\n    \u003ctd\u003ea\u003c/td\u003e\n    \u003ctd\u003eg\u003c/td\u003e\n    \u003ctd\u003eb\u003c/td\u003e\n    \u003ctd\u003eg\u003c/td\u003e\n    \u003ctd\u003ef\u003c/td\u003e\n    \u003ctd\u003ea\u003c/td\u003e\n    \u003ctd\u003eb\u003c/td\u003e\n    \u003ctd\u003ef\u003c/td\u003e\n    \u003ctd\u003eg\u003c/td\u003e\n    \u003ctd\u003ea\u003c/td\u003e\n    \u003ctd\u003eb\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Implementation\n* Anode 1 and 2 are switched back and forth\n* For each switch, the required pins (segments) for each digit are switched on for a short time and then switched off, lighting up at most 1 digit\n** This way, it's never drawing too much power from the output pins of the Arduino\n** It's kind of a PWM and by changing the delays I can make the display darker or brighter\n* Every half second, the dots are switched\n* Every minute, the clock automatically \"ticks\"\n* It's an I2C slave to an ESP8266 master node, which will update the clock based on some other time source\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytekeeper%2Fclock-nanoatmega328","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytekeeper%2Fclock-nanoatmega328","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytekeeper%2Fclock-nanoatmega328/lists"}