https://github.com/themagicfrog/lightsaber
PCB lightsaber with gyroscope and accelerometer
https://github.com/themagicfrog/lightsaber
accelerometer gyroscope lights lightsaber pcb
Last synced: 23 days ago
JSON representation
PCB lightsaber with gyroscope and accelerometer
- Host: GitHub
- URL: https://github.com/themagicfrog/lightsaber
- Owner: themagicfrog
- License: mit
- Created: 2024-08-23T19:32:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-24T01:50:01.000Z (about 1 year ago)
- Last Synced: 2025-04-02T21:43:42.272Z (6 months ago)
- Topics: accelerometer, gyroscope, lights, lightsaber, pcb
- Language: C++
- Homepage:
- Size: 45.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAGIC FROG'S LIGHTSABER
This 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).
## Project Overview
I 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.## Features
Dynamic LED Control: LEDs light up based on movement detected by the gyroscope and acceleromenter.
- The faster you accelerate, the more LEDs illuminate.
- Each axis (x, y, z) on the gyroscope control a different LED color: red, blue, or green.## Components
- Ardunio Nano Microcontroller
- MPU-6050 Gyroscope and Accelerometer
- NeoPixel LED Strip
- 6V Battery
## Photos!!
Here are some really cool long-exposure light photos I took with the lightsaber in action!



## Video
[Demo](https://youtu.be/aVmNQV3bQB4)
[Making](https://youtu.be/FEkJ6_g3jb8)## Acknowledgements
Special thanks to [Thomas Stubblefield](https://github.com/serenityUX), Kevin Yang, and [Isaac Davenport](https://isaacdavenport.com/) for helping and encouraging me on the way!## License
Magic Frog's Lightsaber is licensed under the MIT License. See the full license text in [License](https://github.com/themagicfrog/lightsaber/blob/main/LICENSE).