Kenedy Statner ← All builds Contact
Hardware project · Fall 2025 · UCSB Physics Makerspace

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.

Loading the 3D model…
Drag to spin · scroll to zoom

Play it here

The same features as the real one, running in your browser. The screen on the 3D model follows along.

120BPM · Allegro
beat
7
Time signature
Click sound

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

01 · Why

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.

02 · Requirements

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.

03 · Design

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.

Hand-drawn sketch of the metronome faceplate: speaker on top, display, tempo and volume dials, preset buttons, tap tempo and start/stop pads, and a side view with the on/off switch
The first sketch
The working prototype: a red 3D printed faceplate with a speaker grille, screen, two knobs and seven colored buttons
The working prototype
04 · Hardware

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.
05 · Firmware

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

Button input and debouncingReads presses and filters out the electrical noise, so one press counts once.
Tempo controlReads the tempo dial and turns it into a BPM.
Tap tempoTurns the time between your taps into a BPM.

Core

Beat timingFires each beat at a precise interval: 60,000 ms ÷ BPM.
Modes and presetsSwitches modes and stores tempo settings.
StartupSets safe defaults when it powers on (120 BPM, 4/4).

Outputs

Audio outputPlays the click, with an accent on beat one.
Display updateShows the BPM, volume and time signature.
Arduino code showing pin definitions for the buttons and dials, the LCD setup, and variables for BPM, beat count and tap tempo timing
Part of the setup code: pins for the buttons and dials, the screen, and the state the timing loop keeps track of.
06 · Build

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.

Two copper perfboards with soldered joints and red, yellow and green wires
The two soldered boards before they went into the case

Designing and printing the enclosure

  1. Measure every componentSo hole sizes, spacing and clearances inside the case are right the first time.
  2. Design it in CADThe box shape, faceplate cutouts and the room the electronics need.
  3. Test print and adjustCheck the fit, fix the tolerances, then go again.
  4. Final print and assemblyPrint the finished case and mount the electronics in it.
The faceplate sliced in PrusaSlicer on an Original Prusa MINI bed, showing button, knob and screen cutouts
The faceplate sliced for the Prusa MINI
Original Prusa MINIPLA0.20 mm layers35 min print12.8 g filament
07 · Problems I solved

Where it got hard

Challenge 1

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.

After the RC filter: corners rounded off, close to a sine
Challenge 2

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.

Cutaway drawing of a rotary dial showing the knob, wiper, resistive element and terminals
Up next

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.

Sketch of a triangular prism, the planned shape for the guitar-mounted version
08 · Outcome

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.