The Wireless Piano Recipe: Baking a Cord-Free Keytar
Have you ever tripped over a sustain pedal cable mid-solo, or felt tethered to an outlet when inspiration struck on the patio? A “wireless piano” isn’t just a dream for touring musicians—it is an afternoon kitchen-table project for makers, tinkerers, and restless keyboardists.
Think of building a wireless MIDI keyboard like baking a layered cake. You need a solid structural base, a responsive sensory layer, a smart brain to translate your touch, and a clean wireless glaze to send the music flying through the air.
The Ingredients
Before preheating the soldering iron, gather your components on the workbench:
- The Chassis (1 Toy Piano or Salvaged Keybed): Look for a 25-key or 37-key mini-keyboard at a thrift store. Gutting a vintage toy synth gives you authentic tactile keys without needing a 3D printer.
- The Brain (1 Microcontroller with BLE): An ESP32 or an Adafruit Feather nRF52840. Both have built-in Bluetooth Low Energy (BLE) capable of native MIDI transmission.
- The Senses (Tactile Switches or Conductive Rubber Pads): If your salvaged keybed has intact rubber dome contacts, keep them. Otherwise, grab a pack of quiet, low-force momentary tactile switches.
- The Wiring (22-Gauge Stranded Wire & Diode Matrix): 1N4148 switching diodes are essential to prevent “ghosting” when you play lush three- or four-note chords.
- The Power (1 LiPo Battery & Charging Board): A 3.7V 1000mAh lithium-polymer battery paired with a TP4056 USB-C charging module keeps the rig rechargeable and light.
Step-by-Step Preparation
1. Prep the Keybed
Strip down your donor keyboard until only the plastic keys and their mechanical pivots remain. Clean out decades of dust and sticky residue with isopropyl alcohol. If you are mounting new tactile switches beneath the keys, hot-glue or epoxy them into a wooden or acrylic rail so every key hits its switch with uniform travel.
2. Wire the Matrix
Instead of running 37 individual wires to your microcontroller, arrange your keys in a grid—for example, 6 rows by 7 columns (which supports up to 42 keys using only 13 pins).
Solder a 1N4148 diode to each key switch, ensuring all the black stripes on the diodes point in the same direction toward the column wire. This one-way electrical valve ensures that pressing C, E, and G simultaneously doesn’t trick the board into thinking you also pressed B.
3. Flash the Firmware
Connect your ESP32 or nRF52840 to your computer and open the Arduino IDE. Install a Bluetooth MIDI library (such as BLE-MIDI or Control Surface).
Write a simple scanning loop that checks each row and column every few milliseconds. When a circuit closes, the code maps that grid coordinate to a standard MIDI note number (Middle C is 60) and fires a Note On packet over Bluetooth.
4. Pack the Enclosure and Power Up
Wire your LiPo battery to the charging module, and connect the module’s output to the microcontroller’s power pins. Mount the USB-C charging port flush against the side of the plastic casing so you never have to crack the piano open to refuel. Tuck the wires neatly away from the moving key levers, screw the shell shut, and flip the power switch.
Plating and Serving
Turn on your laptop, tablet, or smartphone, open your favorite Digital Audio Workstation (GarageBand, Ableton Live, or a standalone synth app), and navigate to the Bluetooth MIDI Devices menu. Your homemade instrument will appear ready to pair.
Select a warm Rhodes electric piano patch or a punchy analog bass, sling your creation over your shoulder, and play from the couch, the backyard, or anywhere else the cables used to stop you.
Leave a Reply