Build a laser sword lesson plan
A light saber style sword in three builds: a blade that ignites, motion you can hear, then the whole hilt with a sound font.
Objectives and materials
By the end, students can
- Light the blade, give it motion and sound, then put the whole hilt together.
Materials for the whole unit
- Accelerometer and gyroscope, MPU6050
- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo
- DFPlayer Mini MP3 module
- Full-size breadboard
- Half breadboard
- LED x 3
- Piezo speaker
- Pushbutton
- Resistor x 7
- Speaker, 8 ohm
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
Blade, motion, sword
Light the blade, give it motion and sound, then put the whole hilt together.
| Lesson | Time | What students do |
|---|---|---|
| Light the bladeTwenty-four WS2812 LEDs on one data wire and a single button. Ignite the blade from the hilt up, retract it, and pick its color. | 50 min |
|
| Hear the swingAn 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. | 50 min |
|
| The whole swordBlade, motion and a real sound font together: a DFPlayer Mini plays ignition, hum, swing, clash and retract, and a gauge shows the battery. | 80 min |
|
Materials
- Accelerometer and gyroscope, MPU6050
- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo
- DFPlayer Mini MP3 module
- Full-size breadboard
- Half breadboard
- LED x 3
- Piezo speaker
- Pushbutton
- Resistor x 7
- Speaker, 8 ohm
Check for understanding
Each student finishes "The whole sword" on their own, without opening the hints. The simulator checks 8 of its 8 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Retract".
Teach this unit as a class
Start a class from this course and its 3 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.