David Seong
Team: Atharva Ramdas, David Seong, Korell Adikpeto, Pubordee Aussavavirojekul, Vrishabh Kenkre
Course: Advanced Mechatronic Design 16-878, Carnegie Mellon University
An all-inclusive, immersive Star Wars project that takes users from building the lightsaber, choosing a crystal, to duel practice against Darth Vader. Built with dual STM32F446ZE Nucleo boards, featuring RGB LED blade (288 LEDs), custom gummy bear color detector, motion-based gameplay with IMU, synchronized audio, haptic feedback, and mechanical flipboard displays—all implemented from scratch without any libraries.
Custom color detection system using LEDs and a phototransistor to identify gummy bear colors (red, blue, green, yellow). The lightsaber blade color is set based on the detected crystal. All algorithms implemented from scratch without libraries.
MPU6050 IMU detects lightsaber movements for swing detection during gameplay. Vibration motors provide haptic feedback synchronized with sound effects. All sensor fusion and motion processing implemented from scratch.
Two parallel WS2812B Neopixel LED strips (288 LEDs total) with custom PWM + DMA control at 800 kHz. Modular 3D printed hilt houses all electronics. 48-inch polycarbonate blade diffuser for even light distribution.
8-state machine controls the experience: IDLE → SABER_INITIALIZE (color detection) → SABER_TURN_ON → SABER_READY → IN_GAME_WAITING → IN_GAME_PARRYING → END_OF_GAME → SABER_TURN_OFF. Game features 6 rounds of 5 seconds each with directional parrying cues.
Two STM32F446ZE Nucleo boards communicate via GPIO interrupts. Primary Nucleo handles lightsaber (state machine, LEDs, audio, IMU, swing detection, color detection, vibration). Secondary Nucleo controls flipboard displays (directional cues and timer dial) with PID position control.
Built entirely from scratch: no libraries, no batteries (tethered), STM32F446ZE only. Custom drivers for I²C, DMA, PWM, ADC, GPIO, timers. Register-level manipulation for all peripherals. Budget: ~$135 excluding filaments.