{"id":25129388,"url":"https://github.com/themagicfrog/lightsaber","last_synced_at":"2025-09-22T03:58:33.115Z","repository":{"id":254495673,"uuid":"846708441","full_name":"themagicfrog/lightsaber","owner":"themagicfrog","description":"PCB lightsaber with gyroscope and accelerometer","archived":false,"fork":false,"pushed_at":"2024-08-24T01:50:01.000Z","size":47373,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T21:43:42.272Z","etag":null,"topics":["accelerometer","gyroscope","lights","lightsaber","pcb"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/themagicfrog.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":"2024-08-23T19:32:07.000Z","updated_at":"2024-10-21T18:39:08.000Z","dependencies_parsed_at":"2024-08-23T21:18:11.060Z","dependency_job_id":"1d40344d-ee2a-4a54-b628-a72685fbcca2","html_url":"https://github.com/themagicfrog/lightsaber","commit_stats":null,"previous_names":["themagicfrog/lightsaber"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/themagicfrog/lightsaber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themagicfrog%2Flightsaber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themagicfrog%2Flightsaber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themagicfrog%2Flightsaber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themagicfrog%2Flightsaber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themagicfrog","download_url":"https://codeload.github.com/themagicfrog/lightsaber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themagicfrog%2Flightsaber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276342544,"owners_count":25625581,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"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":["accelerometer","gyroscope","lights","lightsaber","pcb"],"created_at":"2025-02-08T12:16:59.308Z","updated_at":"2025-09-22T03:58:33.099Z","avatar_url":"https://github.com/themagicfrog.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MAGIC FROG'S LIGHTSABER\n\nThis is a PCB lightsaber controlled by a gyroscope and accelerometer that I designed. I created it originally for [The Trail](https://github.com/hackclub/the-trail), an event organized by [Hack Club](https://github.com/hackclub). \n\n## Project Overview\nI initially designed the entire board with a ATmeag32U4 chip, and you can find the schematic and PCB design in the main branch. I also added some lighthouse-themed silkscreens as my original idea was to make it a desk lamp. I encountered a lot of problems along way and decided to use an Ardunio Nano instead. I used my PCB board as a base and connected the Ardunio Nano. \n\n## Features\nDynamic LED Control: LEDs light up based on movement detected by the gyroscope and acceleromenter.\n- The faster you accelerate, the more LEDs illuminate.\n- Each axis (x, y, z) on the gyroscope control a different LED color: red, blue, or green.\n\n## Components\n- Ardunio Nano Microcontroller\n- MPU-6050 Gyroscope and Accelerometer\n- NeoPixel LED Strip\n- 6V Battery\n\n![](https://github.com/themagicfrog/lightsaber/blob/main/pcbphotos/pcbphoto2.JPG )\n\n## Photos!!\nHere are some really cool long-exposure light photos I took with the lightsaber in action!\n\n![](https://github.com/themagicfrog/lightsaber/blob/main/demophotos/demophoto1.JPG)\n![](https://github.com/themagicfrog/lightsaber/blob/main/demophotos/demophoto2.JPG)\n![](https://github.com/themagicfrog/lightsaber/blob/main/demophotos/demophoto3.JPG)\n![](https://github.com/themagicfrog/lightsaber/blob/main/demophotos/demophoto4.JPG)\n![](https://github.com/themagicfrog/lightsaber/blob/main/demophotos/demophoto5.JPG)\n\n## Video\n[Demo](https://youtu.be/aVmNQV3bQB4)\n[Making](https://youtu.be/FEkJ6_g3jb8)\n\n## Acknowledgements\nSpecial thanks to [Thomas Stubblefield](https://github.com/serenityUX), Kevin Yang, and [Isaac Davenport](https://isaacdavenport.com/) for helping and encouraging me on the way!\n\n## License\nMagic Frog's Lightsaber is licensed under the MIT License. See the full license text in [License](https://github.com/themagicfrog/lightsaber/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemagicfrog%2Flightsaber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemagicfrog%2Flightsaber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemagicfrog%2Flightsaber/lists"}