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
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¶
- /users/4180_1/notebook/pushbuttons/
- /components/Potentiometer/
- /users/4180_1/notebook/rgb-leds/
- /users/4180_1/notebook/ulcd-144-g2-128-by-128-color-lcd/
Wiring¶
| mbed | Cable | uLCD |
|---|---|---|
| P28 | TX | RX |
| P27 | RX | TX |
| P30 | RES | RESET |
| VU | +5V | +5V |
| GND | GND | GND |
| Push Buttons | Pins | GND |
|---|---|---|
| Pushbutton1 | P8 | GND |
| Pushbutton2 | P9 | GND |
| Pushbutton3 | P10 | GND |
| Pushbutton4 | P11 | GND |
| Pushbutton5 | P12 | GND |
| Pushbutton6 | P13 | GND |
| Pushbutton7 | P14 | GND |
| Pushbutton8 | P15 | GND |
| Pushbutton9 | P16 | GND |
| Pushbutton10 | P17 | GND |
| Pushbutton11 | P18 | GND |
| Potentiometers | Voltage | Pins | GND |
|---|---|---|---|
| Pot1 | 3.3V | P19 | GND |
| Pot2 | 3.3V | P20 | GND |
| RGB LEDs | Red | GND | Green | Blue |
|---|---|---|---|---|
| LED1 | P26 | GND | P25 | P24 |
| LED2 | P23 | GND | P22 | P21 |
| LED3 | P5 | GND | P6 | P7 |