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 simulatorA 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.
0 of 7 done
7 lessons in 3 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
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 simulatorRecord 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 simulatorPut 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 simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
A microphone, a sample rate, and buffers that swap.
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
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
Bytes per second, then a real WAV file on the card.
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
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
Playback, buttons, and a memo pen of your own.
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
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
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
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Build a voice recorder is part of the maker track, a ladder of courses from zero to expert.
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 courseFollow 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 trackEvery lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. 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.
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.
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.
Each chapter ends in a project that puts it together: Double buffering, WAV files and Project: a memo pen.
With "The microphone", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.