Using the MIDI Protocol
With the arrival of the iPad and the camera connection kit (available from the Apple Store, http://store.apple.com/us/product/MC531ZM/A), it became possible to directly connect USB devices to the iPad (see Figure 6-6). While most USB-HID profiles are not supported, and the connector was originally intended only to allow you to transfer images from a connected camera onto your iPad, there is an interesting exception. The connector also allows your iPad to talk directly to USB MIDI devices.

Figure 6-6. The USB dongle from the iPad Camera Connection Kit
Note
Before iOS 4.x, the USB dongle from the iPad Camera Connection Kit also allowed you to connect USB accessories to the iPhone 4. Unfortunately, with this revision of the operating system, a change to the phone’s firmware was made that meant that a lower amperage was provided to the Dock connector and USB devices no longer had enough power to function.
There are a number of MIDI shields for the Arduino on the market including the SparkFun shield (see Figure 6-7). Figure 6-8 shows this shield connected via a Screw Shield to an Arduino Uno board. This project (see https://github.com/bjepson/iPad-MIDI-Simple-Demo for more details) allows you to control off-the-shelf MIDI software on your iPad directly from an Arduino board.
Figure 6-7. Arduino Uno with MIDI shield
Figure 6-8. An Arduino connected to an iPad running standard ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access