{"id":51878104,"url":"https://github.com/ericbsantana/interstellar-time-dilation","last_synced_at":"2026-07-25T08:02:18.582Z","repository":{"id":203410452,"uuid":"53672770","full_name":"ericbsantana/interstellar-time-dilation","owner":"ericbsantana","description":"🪐 A time dilation calculator of Miller's planet from Interstellar. Made with C++.","archived":false,"fork":false,"pushed_at":"2016-03-13T16:08:13.000Z","size":2257,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-10-24T23:27:39.027Z","etag":null,"topics":["arduino","cpp","portfolio"],"latest_commit_sha":null,"homepage":"","language":null,"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/ericbsantana.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}},"created_at":"2016-03-11T14:31:19.000Z","updated_at":"2023-10-24T23:27:39.723Z","dependencies_parsed_at":null,"dependency_job_id":"25c36a49-a7d2-42a3-a0c1-250c0431cd60","html_url":"https://github.com/ericbsantana/interstellar-time-dilation","commit_stats":null,"previous_names":["ericbsantana/interstellar-time-dilation"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ericbsantana/interstellar-time-dilation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericbsantana%2Finterstellar-time-dilation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericbsantana%2Finterstellar-time-dilation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericbsantana%2Finterstellar-time-dilation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericbsantana%2Finterstellar-time-dilation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericbsantana","download_url":"https://codeload.github.com/ericbsantana/interstellar-time-dilation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericbsantana%2Finterstellar-time-dilation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35871569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-25T02:00:06.922Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","cpp","portfolio"],"created_at":"2026-07-25T08:02:18.020Z","updated_at":"2026-07-25T08:02:18.576Z","avatar_url":"https://github.com/ericbsantana.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# interstellar-time-dilation\nA time dilation calculator of Miller's planet from Interstellar.\n## Arduino\n\n### Nokia 5110 LCD\n![Protoboard](/nokia5110.jpg)\nFrom left to right: \n- RST: pin 8\n- CE: pin 9\n- DC: pin 10\n- Din: pin 11\n- CLK: pin 12\n- Vcc: pin 5V\n- BL: pin 5V with 330ohm resistor\n- Gnd: pin GND\n\n#### Library\nUses Rinky-Dink Electronics' LCD5110 Graph library to print time on Nokia 5110 display (available on [LCD5110_Graph](http://www.rinkydinkelectronics.com/library.php?id=48)).\n```cpp \n#include \u003cLCD5110_Graph.h\u003e\n```\n#### Code\nSource: [lcdtimedilation.ino](/examples/lcdtimedilation/lcdtimedilation.ino)\n\nUsing a Nokia 5110 display (84x48 pixels), LCD5110.print parameters are: \n```cpp\nLCD5110.print(string text, int x, int y); \n```\nSo, for a 84x48 display the code'll be like: \n```cpp\nscreen.print(\"INTERSTELLAR\", CENTER, 0);                          // First line (0) print\nscreen.print(\"Time dilation\", CENTER, 8);                         // Second line (8) print\nscreen.print(\"Miller's Time:\", CENTER, 16);                       // Third line (16) print\nscreen.print(String(seconds)+\"s\", CENTER, 24);                    // Fourth line (24) print\nscreen.print(\"Earth Time:\", CENTER, 32);                          // Fifth line (32) print\n\nscreen.print(String(nYears)+\" years\", CENTER, 40);                // Sixth line (40) print, if nYears \u003e 2\n```\n#### I want to use it without Nokia 5110, how?\nYou may want to use these variables:\n```cpp \n  timeDilation = seconds * timeFactor; // Seconds on Miller's -\u003e Second's on Earth conversion\n  nYears = timeDilation/yearSec; // Where nYears = number of years passed on earth based on Miller's time dilation \n```\nThere is a [serialtimedilation.ino](/examples/serialtimedilation/serialtimedilation.ino) example that uses Serial to print values.\n\n## Web\nSoon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericbsantana%2Finterstellar-time-dilation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericbsantana%2Finterstellar-time-dilation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericbsantana%2Finterstellar-time-dilation/lists"}