Source: https://mokxi.com/learn/path/build-voice-recorder
Updated: 2026-11-20

All paths

# Build a voice recorder

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.

Arduino Uno R3 Free 7 lessons 6 h 3 chapters 2,355 XP Maker · Intermediate +150 XP

0 of 7 done

Start the course free The microphone Lesson plan for teachers

What you will build

## 3 projects, built step by step

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

Chapter 1 project

### 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.
Open it in the simulator

Chapter 2 project

### 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.
Open it in the simulator

Chapter 3 project

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

## Sound in

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

Open 267 XP

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

0 of 7 steps

Start What is in it

Project Locked 472 XP

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

0 of 6 steps

5 questions, graded as you go.

Chapter 2

## Keeping it

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

Locked 236 XP

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

0 of 6 steps

Project Locked 472 XP

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

0 of 6 steps

5 questions, graded as you go.

Chapter 3

## The pen

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

Locked 236 XP

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

0 of 6 steps

Locked 236 XP

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

0 of 6 steps

Project Locked 436 XP

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

0 of 6 steps

4 questions, graded as you go.

Syllabus

## Every lesson in the course

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

Chapter 1

### Sound in

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

Chapter 2

### Keeping it

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

Chapter 3

### The pen

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

Keep going

## The next course on your track

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

Next course

### Build a claw machine

Build a real arcade claw machine piece by piece, from one stepper motor to coins, a clock, a win sensor, lights and sound.
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.

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 voice recorder

Is Build a voice recorder free?

Yes. All 7 lessons of Build a voice recorder 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 voice recorder take?

About 6 hours: 7 lessons in 3 chapters, 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: Double buffering, WAV files and Project: a memo pen.

Where do I start?

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