Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed 4DGL-uLCD-SE
You are viewing an older revision! See the latest version
Creating MIDI Controller with mbed
Overview¶
This final project is based on a Musical Instrument Digital Interface (MIDI) controller. The base idea of this is a device that allows a wide variety of electronic musical instruments or sounds to be played at the press of some buttons. This project uses a mbed hooked up to a PC with the standard USB, and utilizes a C# application on Windows to receive serial port messages and plays sound files. Potentiometers are used as volume control.
![]()
Components¶
Pushbuttons Potentiometers RGB LEDS uLCD
Wiring¶
| mbed | Cable | uLCD |
|---|---|---|
| P28 | TX | RX |
| P27 | RX | TX |
| P30 | RES | RESET |
| VU | +5V | +5V |
| GND | GND | GND |
Push Buttons:
| Pushbutton1 | P8 |
| Pushbutton2 | P9 |
| Pushbutton3 | P10 |
| Pushbutton4 | P11 |
| Pushbutton5 | P12 |
| Pushbutton6 | P13 |
| Pushbutton7 | P14 |
| Pushbutton8 | P15 |
| Pushbutton9 | P16 |
| Pushbutton10 | P17 |
| Pushbutton11 | P18 |
Potentiometers:
| Pot1 | P19 |
| Pot2 | P20 |
LEDs:
| LED_r1 | P26 |
| LED_g1 | P25 |
| LED_b1 | P24 |
| LED_r2 | P23 |
| LED_g2 | P22 |
| LED_b2 | P21 |