Source: https://mokxi.com/teachers/plans/build-voice-recorder
Updated: 2026-11-19

Lesson plan

# Build a voice recorder lesson plan

A memo pen on an Uno: a microphone on A0, double buffers, an EEPROM that keeps up, real WAV files on microSD, PWM playback and debounced buttons.

3 chapters, 7 lessons, about 6 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

- A microphone, a sample rate, and buffers that swap.
- Bytes per second, then a real WAV file on the card.
- Playback, buttons, and a memo pen of your own.

### Materials for the whole unit

- Arduino Uno R3
- Capacitor x 3
- Full-size breadboard
- Function generator
- I2C EEPROM, 24LC256
- LED
- microSD card module
- Piezo speaker
- Pushbutton x 2
- Resistor x 7

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 1 h 50 min

## Sound in

A microphone, a sample rate, and buffers that swap.

Lesson | Time | What students do

The microphone Turn sound into numbers: a microphone module, a bias at mid-rail, 8000 samples a second on A0, and the level and pitch worked out from them. | 60 min

- A voice on A0
- Where silence sits
- How loud
- What pitch
- Too quiet
- Too loud
- Faster than half the rate

Double buffering Two buffers that swap: the interrupt fills one while the sketch stores the other. See what happens when storing takes too long, and why buffers cost RAM. | 50 min

- Why not one sample at a time
- The swap
- A slow store
- Falling behind
- Smaller buffers
- The price in RAM

### Materials

- Arduino Uno R3
- Capacitor x 3
- Full-size breadboard
- Function generator
- I2C EEPROM, 24LC256
- LED
- microSD card module
- Piezo speaker
- Pushbutton x 2
- Resistor x 7

### Check for understanding

Each student finishes "Double buffering" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

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

Chapter 2. About 1 h 40 min

## Keeping it

Bytes per second, then a real WAV file on the card.

Lesson | Time | What students do

Storage limits Bytes per second: what a sample rate needs, what an EEPROM and a microSD card can take on this Uno, how long a memo fits, and how to pick a rate that works. | 50 min

- Bytes per second
- The memory chip
- The card
- How long a memo fits
- Too fast
- Pick a rate

WAV files Record into the EEPROM, then save a real WAV file to the microSD card: the 44-byte header, field by field, little-endian, then the samples. | 50 min

- Record into the chip
- Save it
- Read the header
- Little-endian
- The fmt chunk
- Sizes come last

### Materials

- Arduino Uno R3
- Capacitor x 3
- Full-size breadboard
- Function generator
- I2C EEPROM, 24LC256
- LED
- microSD card module
- Piezo speaker
- Pushbutton x 2
- Resistor x 7

### Check for understanding

Each student finishes "WAV files" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

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

Chapter 3. About 2 h 30 min

## The pen

Playback, buttons, and a memo pen of your own.

Lesson | Time | What students do

Playback Play the WAV file back off the card: read the header, run Timer 2 at its sample rate, and send every sample out as PWM through a filter to a piezo. | 50 min

- Read the file back
- PWM out
- A different voice
- Chipmunk
- Giant
- The end of the file

Buttons Hold REC to record and PLAY to listen: pull-ups, debouncing, press and release events, and a lamp that shows when it is recording. | 50 min

- Pull-ups
- Hold to record
- Let go to save
- Bounce
- Hold to listen
- Nothing to play

Project: a memo pen Put it all together: numbered memos that never overwrite each other, a list read from the card, playing and deleting any memo, and how much room is left. | 50 min

- Numbered memos
- The list
- Press to play
- Room left
- Delete one
- Make it yours

### Materials

- Arduino Uno R3
- Capacitor x 3
- Full-size breadboard
- Function generator
- I2C EEPROM, 24LC256
- LED
- microSD card module
- Piezo speaker
- Pushbutton x 2
- Resistor x 7

### Check for understanding

Each student finishes "Project: a memo pen" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

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

Your class

## Teach this unit as a class

Start a class from this course and its 7 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.
