AR-125IntermediatePremium

Arduino Light Saber (MPU-6050 + WS2812B LED Strip + Buzzer)

Press the button and the light shoots from the hilt to the tip with a "vzzz"! A 30-LED WS2812B strip is the blade, an MPU-6050 measures how fast the sword turns and when it hits something, and a passive buzzer plays the hum. Swing it and the hum rises while the blade glows brighter; hit something and it flashes white with a crackle. A long press cycles through six colours, and your pick is remembered after power-off.

0.0(0)
Arduino Light Saber (MPU-6050 + WS2812B LED Strip + Buzzer)
Press the button in a dark room and the light shoots from the hilt to the tip with a "vzzz", then a low hum starts. Swing the sword and the hum rises; hit something and the blade flashes white with a crackle, picked up by a small motion sensor in the hilt. A long press cycles through six colours, and the one you pick is remembered even after you switch it off.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions