Source: https://mokxi.com/learn/path/build-midi-controller
Updated: 2026-11-20

All paths

# Build a MIDI controller

Faders, drum pads, a knob and an encoder on a Pro Micro, sending real MIDI bytes you can read.

SparkFun Pro Micro Free 3 lessons 2 h 2 chapters 696 XP Maker · Intermediate +150 XP

0 of 3 done

Start the course free Faders that speak MIDI Build it as a kit Retails for about $20, free on Mokxi. Lesson plan for teachers

What you will build

## One project, built step by step

3 lessons in 2 chapters, about 2 hours on a simulated SparkFun Pro Micro. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Pads that play drums

Four buttons become drum pads: Note On when you hit one, Note Off when you let go, on the channel General MIDI keeps for drums.
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

## Messages

Turn faders into Control Change and pads into notes, one byte at a time.

Open 174 XP

### Faders that speak MIDI

Two slide pots become Control Change messages: three bytes at 31250 baud. Read a voltage, squeeze it into 0 to 127 and send it the way synths expect.

0 of 4 steps

Start What is in it

Project Locked 348 XP

### Pads that play drums

Four buttons become drum pads: Note On when you hit one, Note Off when you let go, on the channel General MIDI keeps for drums.

0 of 4 steps

Chapter 2

## The finished controller

Add a knob, program changes and a panic button.

Locked 174 XP

### A knob, an encoder and a panic button

Finish the controller: a knob for one more control, an encoder that flips through a synth's sounds, and a button that silences everything at once.

0 of 4 steps

Syllabus

## Every lesson in the course

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

Chapter 1

### Messages

- Faders that speak MIDI Two slide pots become Control Change messages: three bytes at 31250 baud. Read a voltage, squeeze it into 0 to 127 and send it the way synths expect.
- Pads that play drums Four buttons become drum pads: Note On when you hit one, Note Off when you let go, on the channel General MIDI keeps for drums.

Chapter 2

### The finished controller

- A knob, an encoder and a panic button Finish the controller: a knob for one more control, an encoder that flips through a synth's sounds, and a button that silences everything at once.

Keep going

## The next course on your track

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

Next course

### Build a rhythm game

A rhythm game in three builds: notes that fall in time, buttons that judge your timing, then the whole game with combos and a high score.
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.

The kit for this course

### MIDI Controller Kit

A Pro Micro, a rotary encoder (KY-040), an LED, a slide potentiometer and a pushbutton: a MIDI controller you play with your hands.
Open the kit

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 MIDI controller

Is Build a MIDI controller free?

Yes. All 3 lessons of Build a MIDI controller are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real SparkFun Pro Micro?

No. Every lesson runs on a simulated SparkFun Pro Micro 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 MIDI controller take?

About 2 hours: 3 lessons in 2 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: Pads that play drums.

Where do I start?

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