Source: https://mokxi.com/learn/path/build-laser-sword
Updated: 2026-11-20

All paths

# Build a laser sword

A light saber style sword in three builds: a blade that ignites, motion you can hear, then the whole hilt with a sound font.

Arduino Uno R3 Free 3 lessons 3 h 1 chapter 1,006 XP Maker · Intermediate +150 XP

0 of 3 done

Start the course free Light the blade Build it as a kit Retails for about $50, free on Mokxi. Lesson plan for teachers

What you will build

## One project, built step by step

3 lessons in 1 chapter, about 3 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### The whole sword

Blade, motion and a real sound font together: a DFPlayer Mini plays ignition, hum, swing, clash and retract, and a gauge shows the battery.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Blade, motion, sword

Light the blade, give it motion and sound, then put the whole hilt together.

Open 205 XP

### Light the blade

Twenty-four WS2812 LEDs on one data wire and a single button. Ignite the blade from the hilt up, retract it, and pick its color.

0 of 5 steps

Start What is in it

Locked 205 XP

### Hear the swing

An MPU6050 feels every move of the hilt. Tell a swing from a clash with a gyroscope and an accelerometer, and give each its own sound on a piezo.

0 of 5 steps

Project Locked 596 XP

### The whole sword

Blade, motion and a real sound font together: a DFPlayer Mini plays ignition, hum, swing, clash and retract, and a gauge shows the battery.

0 of 8 steps

Syllabus

## Every lesson in the course

All 3 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Blade, motion, sword

- Light the blade Twenty-four WS2812 LEDs on one data wire and a single button. Ignite the blade from the hilt up, retract it, and pick its color.
- Hear the swing An MPU6050 feels every move of the hilt. Tell a swing from a clash with a gyroscope and an accelerometer, and give each its own sound on a piezo.
- The whole sword Blade, motion and a real sound font together: a DFPlayer Mini plays ignition, hum, swing, clash and retract, and a gauge shows the battery.

Keep going

## The next course on your track

Build a laser sword is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a macro pad

Twelve keys, a volume knob, three layers and a screen on a Pro Micro that plugs in as a keyboard.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

### Laser Sword Kit

A 24-LED blade, a motion sensor, a sound board, a charge gauge and a battery pack.
Open the kit

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a laser sword

Is Build a laser sword free?

Yes. All 3 lessons of Build a laser sword are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a laser sword take?

About 3 hours: 3 lessons in 1 chapter, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: The whole sword.

Where do I start?

With "Light the blade", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
