I built a digital metronome from scratch.
I designed the circuit, wrote the firmware, soldered the board and 3D printed the case. It keeps time, takes tap tempo, switches time signatures, and cost about $12 in parts.
Play it here
The same features as the real one, running in your browser. The screen on the 3D model follows along.
Space start/stop · T tap · ↑↓ tempo
- My role
- Everything: design, circuit, code, CAD, soldering
- Built with
- Arduino Nano, C++, CAD, Prusa MINI
- Parts cost
- $12, vs $146 for the top competitor I compared
- Case print
- 35 minutes, 12.8 g of PLA
The 3D model shows the finished version with the back cover on. The photos below are of the prototype, which I left open while testing. Hit Explode to see what's inside (internals are simplified).
It started as a class project.
I took a technology class in the physics department and needed a build. I play guitar, so a metronome made sense: it's a simple idea, but getting it right touches every part of making a product. Timing, sound, inputs, a screen, power and a case all have to work together.
Once I started researching, I noticed most good metronomes sell for over $100. That made me want to see how close I could get for a fraction of the price, and it gave me the idea that drives the next version: a metronome that mounts right on the guitar.
What it had to do
These came first. Every part, line of code and cutout in the case had to serve one of them.
1. Click exactly on the beat
Steady timing is the whole point. If it drifts, nothing else matters.
2. Adjustable BPM
A dial so you can change the tempo quickly while you play.
3. Adjustable volume
Turn it up or down to fit where you're playing.
4. A display
Shows BPM, volume and the time signature at a glance.
5. Time signatures
Accents the first beat of each bar so you can hear where you are.
6. Tap tempo
Tap a button along with a song and it sets the BPM to match.
7. A real on/off switch
A physical switch instead of a timed auto shut-off.
8. A sound that isn't annoying
Good speakers and a clean click. This one turned out to be the hardest.
From sketch to faceplate
I started on paper with where everything should go, then cut it down to what actually fit on the board.
The first sketch had the speaker across the top, the display in the middle, tempo and volume dials on the right, a row of edit and preset buttons, and two big pads for tap tempo and start/stop. The power switch went on the side.
The build kept that layout: speaker grille on top, screen in the middle, two dials on the right and seven buttons below.


What's inside
Every part was picked to fit a small case and a small budget.
- Arduino NanoThe brain. Small enough to hide behind the faceplate and plenty fast for timing.
- Tempo dialSets the BPM. The trickiest input to read, more on that below.
- Volume dialSets how loud the click is.
- 7 push buttonsStart/stop, tap tempo, time signature and preset buttons.
- DisplayShows tempo, volume and time signature.
- 2 speakersSide by side behind the grille slots in the top of the faceplate.
- Resistors and capacitorsClean up the Arduino's harsh square wave into a smoother tone.
- BatterySo it works away from a wall outlet.
- Power switchA physical on/off toggle on the side.
Eight small programs, one loop
I split the code into eight parts that each do one job. Inputs feed the timing core, and the core drives the speakers and the screen. Keeping them separate made it much easier to find bugs.
Inputs
Core
Outputs

Soldering and the case
I did the electronics and printing in the UCSB Physics Makerspace.
Soldering on copper perfboard
Most class projects stay on a breadboard. I soldered mine onto copper perfboard instead. It's harder to work with, since every connection is permanent and the pads are tiny, but it let me make the circuit much smaller, which meant a smaller product.

Designing and printing the enclosure
- Measure every componentSo hole sizes, spacing and clearances inside the case are right the first time.
- Design it in CADThe box shape, faceplate cutouts and the room the electronics need.
- Test print and adjustCheck the fit, fix the tolerances, then go again.
- Final print and assemblyPrint the finished case and mount the electronics in it.

Where it got hard
The speakers sounded bad
Getting a satisfying click is harder than you'd think. Natural sounds are smooth, sine-shaped waves, but an Arduino pin can only switch on and off, which makes a square wave. Square waves sound buzzy and harsh.
I fixed it in hardware with a network of resistors and capacitors that rounds off the square wave into something much closer to a sine wave. Press each one to hear and see the difference:
These two clicks are simulations I made of the raw and filtered signal, not recordings of the device.
A dial that never stops turning
My tempo dial spins forever in either direction, with no start or end point. That's great to use, but it makes the electronics harder: a single reading from it doesn't tell the program where the dial is pointing.
I wrote a decoder into the program that reads the dial's signal properly and works out which way it turned and by how much, so turning it speeds up or slows down the tempo smoothly.
Mounting it on a guitar
I want the metronome right on my guitar so I never have to reach for it. That needs a way to attach it and a new shape, because you look at a guitar-mounted screen from below. The next version will be a triangular prism, with the face angled up toward the player.
It works, and it was cheap.
The finished metronome keeps steady time, takes tap tempo, handles different time signatures and sounds clean. It cost me about $12 in parts. The top competitor I compared it to sells for $146.
What I took away from it
- The small things decide whether people like it.Keeping time was the obvious part. Making the click sound good was much harder than I expected, and it's what you notice most when you use it.
- Hardware and software fixes go together.The bad sound was fixed with resistors and capacitors. The endless dial was fixed with code. Knowing both sides meant I could choose the easier fix each time.
- Measure first, print second.Measuring every part and doing a test print first means fit problems show up early, before they cost a full print.
Want to talk about it?
I'm happy to go deeper on the circuit, the code or the CAD.
