{"id":26190877,"url":"https://github.com/codingabi/7segmentmultiplexing","last_synced_at":"2026-04-22T00:31:53.871Z","repository":{"id":59546307,"uuid":"537830323","full_name":"codingABI/7SegmentMultiplexing","owner":"codingABI","description":"Demonstration of segment multiplexing for a 7-segment display with an Arduino Uno/Nano","archived":false,"fork":false,"pushed_at":"2023-05-27T15:50:43.000Z","size":4183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-27T09:56:18.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingABI.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-17T14:17:54.000Z","updated_at":"2022-09-17T16:34:45.000Z","dependencies_parsed_at":"2023-01-19T02:16:07.660Z","dependency_job_id":null,"html_url":"https://github.com/codingABI/7SegmentMultiplexing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingABI/7SegmentMultiplexing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingABI%2F7SegmentMultiplexing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingABI%2F7SegmentMultiplexing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingABI%2F7SegmentMultiplexing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingABI%2F7SegmentMultiplexing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingABI","download_url":"https://codeload.github.com/codingABI/7SegmentMultiplexing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingABI%2F7SegmentMultiplexing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32115793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"ssl_error","status_checked_at":"2026-04-22T00:30:22.894Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-03-12T00:58:29.063Z","updated_at":"2026-04-22T00:31:53.858Z","avatar_url":"https://github.com/codingABI.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 7SegmentMultiplexing\nDemonstration of segment multiplexing for a 7-segment display with an Arduino Uno/Nano.\n\nPrinciple:\n- Only one segment at the same time is enabled\n- All digits uses the same segment at the same time\n- Every digit, where the current segment should be shown, is enabled \n- On every display update the next segment will be enabled. If the last segment is reached the next segment will be the first segment.\n\nThis technic could be used to drive a 7-segment display with a common anode or cathode (for example 4041AH):\n- directly by an Arduino Uno/Nano and\n- without a special display controller and \n- without too much current on microcontroller I/O-pins \n   (Max. 40mA per I/O-pin would be allowed for an ATmega328P and 200mA for all I/O-pins in sum.\n   We will use only ~11mA per I/O-pin and in sum 11mA*\"Number of digits\" due segment muliplexing, for example 44mA for a 4 digit display)\n- with only one current limiting resistors per digit and\n- without brightness flickering depending on how many segments of digit are used\n\nDisadvantages:\n- We use use only 1/8 of the maximum possible brightness of the display\n- We have to update the display every ~2ms to avoid flickering (for example by timer2)\n\n![captured display sequence](/assets/images/Capture.gif) \n\nSimulation https://wokwi.com/projects/342698937471205971\n\nVideo https://youtu.be/b8dgzbctinw\n\n## Used 7-segment display\nModel: 4041AH\n\nType: Common cathode\n\n### Segments\n![segments](/assets/images/segments.png)\n\n### Pinout (Top view)\n\n![View from top](/assets/images/viewFromTop.png)\n\n| Pin | 12 | 11 | 10 | 9 | 8 | 7 |\n| --- | --- | --- | --- | --- | --- | --- |\n| Usage | DIG1 | A | F | DIG2 | DIG3 | B |\n\n| Pin | 1  | 2  | 3 | 4 | 5 | 6 |\n| --- | --- | --- | --- | --- | --- | --- |\n| Usage | E | D | DP | C | G | DIG4 |\n\n\nDIG1 = Common cathode for digit on left side\n...\nDIG4 = Common cathode for digit on right side\n\n## Schema\n![schema](/assets/images/schema.png)\n\n## Breadboard\n![Breadboard](/assets/images/Breadboard.jpg) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingabi%2F7segmentmultiplexing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingabi%2F7segmentmultiplexing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingabi%2F7segmentmultiplexing/lists"}