Source: https://mokxi.com/teachers/plans/build-rhythm-game
Updated: 2026-11-11

Lesson plan

# Build a rhythm game lesson plan

A rhythm game in three builds: notes that fall in time, buttons that judge your timing, then the whole game with combos and a high score.

1 chapter, 3 lessons, about 3 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- Make notes fall to a song, judge a press to the millisecond, then play the whole game.

### Materials for the whole unit

- Addressable RGB LEDs
- Arduino Uno R3
- Character LCD with I2C backpack
- Half breadboard
- LED arcade button x 4
- Piezo speaker
- Resistor

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.

Chapter 1. About 3 h

## Lanes, buttons, game

Make notes fall to a song, judge a press to the millisecond, then play the whole game.

Lesson | Time | What students do

Make the notes fall A 16 x 8 WS2812 panel becomes four lanes of falling notes, timed so each one lands on the bottom row exactly as the piezo plays it. | 55 min

- Four lanes
- Watch them fall
- Hear the song
- Lanes from pitches
- Round again

Hit the beat Four lit arcade buttons and a 16x2 LCD: press on the click and see perfect, good or miss, measured to the millisecond. | 45 min

- The score screen
- Lit buttons
- On the beat
- Off the beat

Play the rhythm game Falling notes, lit buttons, timing windows, combos, a score on the LCD, a song on the piezo and a best score that EEPROM keeps. | 80 min

- Ready
- Start the song
- First hit
- Combo
- The song plays on
- A miss
- Best score

### Materials

- Addressable RGB LEDs
- Arduino Uno R3
- Character LCD with I2C backpack
- Half breadboard
- LED arcade button x 4
- Piezo speaker
- Resistor

### Check for understanding

Each student finishes "Play the rhythm game" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Best score".

Your class

## 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.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
