Skip to the content
PCBKitNew board
2 layers82.5 × 178.8 mmLighthouse, the printed circuit board in 3D

PCB lightsaber with gyroscope and accelerometer

Size
82.5 × 178.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
94
Nets
65
Pads
339
Tracks, vias
729, 52
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
23 Aug 2024
Updated
27 Jul 2026

Overview

Lighthouse is an open-source printed circuit board by themagicfrog, from the themagicfrog/lightsaber repository on GitHub, published under the MIT licence. It is a 2-layer board of 82.5 × 178.8 mm with 94 parts on 65 nets, routed with 729 tracks and 52 vias.

It is built around the 74AHCT125D, MCP73831 and MIC5219YMM, with the MPU-6050, TSW-101-23-L-T and 67997-206HLF among its other parts. Its parts include 27 capacitors, 11 resistors, 6 diodes, 6 connectors and 5 ICs. It belongs with the sensors and measurement boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

9

README

README.md

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, an event organized by Hack Club.

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

Acknowledgements

Special thanks to Thomas Stubblefield, Kevin Yang, and Isaac Davenport 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.

Parts

94
QtyValueFootprintReferences
8SEWTAP9TestPoint:TestPoint_Pad_1.5x1.5mm3.3V, ADC8, PB7, PE6, RX, SCL1, SDA1, TX
7C-EUC0603Capacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC10, C11, C15, C16, C17, C19, C20
510pFCapacitor_SMD:C_0402_1005MetricC23, C24, C25, C26, C27
4330Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR7, R9, R10, R11
4BBS-106-X-X1my_library:BBS-106-X-XJ3, J4, J5, J6
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
4REDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderLED8, LED13, LED14, LED16
3.1uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC4, C9, C12
30.1uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC2, C7, C8
34.7uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C13, C14
210KResistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR2, R4
210kResistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR1, R8
210uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5, C6
222Resistor_SMD:R_0201_0603Metric_Pad0.64x0.40mm_HandSolderR5, R6
2STEMMA_I2C_QTConnector_JST:JST_SH_BM04B-SRSS-TB_1x04-1MP_P1.00mm_VerticalCONN3, CONN4
2TSW-101-23-L-T1my_library:TSW-101-23-L-TJ8, NEOPIXEL
110KResistor_SMD:R_Array_Convex_4x0603R3
11uFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC18
12.2nFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC1
12.2uFCapacitor_SMD:C_0402_1005MetricC22
1470pFCapacitor_SMD:C_0201_0603Metric_Pad0.64x0.40mm_HandSolderC21
167997-206HLF1my_library:67997-206HLFISP
174AHCT1251my_library:DIP794W45P254L1930H508Q14U7
1ATMEGA32U41:1-LESS_PASTE1my_library:ATMEGA32U4-AURU2
1BSS138Package_TO_SOT_SMD:SOT-363_SC-70-6_HandsolderingQ2
1Crystal_GND24Crystal:Crystal_SMD_SeikoEpson_TSX3225-4Pin_3.2x2.5mmY1
1DIODE-SCHOTTKY-B340ADiode_SMD:D_SMA_HandsolderingD18
1GREENLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderLED1
1LOGO1my_library:treasureboxSSG***
1LOGO1my_library:duckSSG***
1LOGO1my_library:seagull3SSG***
1LOGO1my_library:crabSSG***
1LOGO1my_library:anchorSSG***
1LOGO1my_library:planeSSG***
1LOGO1my_library:jellyfishSSG***
1LOGO1my_library:boatSSG***
1LOGO1my_library:seagull4SSG***
1LOGO1my_library:magicfrogsilkscreenspaceG***
1LOGO1my_library:seagull2SSG***
1LOGO1my_library:seagull1SSG***
1LOGO1my_library:squidSSG***
1LOGO1my_library:lighthouseSSG***
1LOGO1my_library:sharkSSG***
1LOGO1my_library:seaweedSSG***
1LOGO1my_library:hotairballoonSSG***
1LOGO1my_library:starfishSSG***
1MCP73831Package_TO_SOT_SMD:SOT-23-5_HandSolderingU5
1MIC52191my_library:MIC5219U6
1MPU-6050Sensor_Motion:InvenSense_QFN-24_4x4mm_P0.5mmU1
1MTMM-102-06-L-S-2501my_library:MTMM-102-06-L-S-250BATTERY
1SWITCH-DPDTAYZ02021my_library:AYZ0202ON
1TL3305BF160QG1my_library:SW_TL3305BF160QGS1
1USB-ABCONN-11794Connector_USB:USB_Micro-AB_Molex_47590-0001USB

Questions

How big is the Lighthouse PCB?

It measures 82.5 × 178.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lighthouse use?

94 parts, built around the 74AHCT125D, MCP73831, MIC5219YMM and MPU-6050. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Lighthouse KiCad files?

From the themagicfrog/lightsaber repository on GitHub, at the commit this page was made from: the board is lighthouse.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lighthouse design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

Similar boards

  • 2 layers7.5 × 2 mmLightwand, the printed circuit board in 3D

    Lightwand

    themagicfrog/lightwandprogress

    a pcb with neopixel lights attached and a gyroscope! for arcade and the Trail

    80 parts
  • 4 layers89 × 61 mmBlocky breakout pcb, the printed circuit board in 3D

    Blocky breakout pcb

    o7-machinehum/RTShield

    Breakout board for a RPi.

    95 parts13
  • 2 layers48 × 100 mmLCD7th, the printed circuit board in 3D

    LCD7th

    danfei/LCD7th

    LCD7th ============ It is an Arduino compatible board.

    59 parts1LGPL-3.0
  • 2 layers319 × 142.5 mmGhoost Board, the printed circuit board in 3D

    Ghoost Board

    Broccoliux/Broccoli-board

    A fully custom 100% mechanical keyboard with a custom black PCB, hot-swap clicky switches, and full RGB where every internal component is hand soldered and nothing is by assemble.

    368 parts3
  • 2 layers51.4 × 61 mmCart, the printed circuit board in 3D

    Cart

    psobot/musicboy

    A high-quality audio playback cartridge for Nintendo® Game Boy® and Game Boy Color®.

    20 parts53MIT
  • 2 layers80 × 79 mmMM Power Subsystem, the printed circuit board in 3D

    MM Power Subsystem

    ALECIA13/EEE3088F-2025

    This repository contains the Power Module for a Micro-Mouse robot project, developed as part of the EEE3088F (2025) course.

    110 parts
  • 2 layers106.1 × 140 mmSuigyomatsu, the printed circuit board in 3D

    Suigyomatsu

    AtiRoMz/Suigyomatsu_KiCad

    水行末の回路図・基板

    132 parts