The Adafruit MIDI FeatherWing Kit is an add-on board designed for the Adafruit Feather series of development boards. It provides MIDI input and output capabilities through 3.5mm TRS jack connectors. This component is ideal for musicians, hobbyists, and developers looking to integrate MIDI control into their projects. Common applications include musical instrument interfaces, MIDI controllers, and interactive art installations.
Pin Number | Name | Description |
---|---|---|
1 | RX | MIDI Input - receives MIDI data from external devices |
2 | TX | MIDI Output - transmits MIDI data to external devices |
3 | GND | Ground connection |
4 | VIN | Voltage input - connected to the Feather board's supply |
5 | 3Vo | 3.3V output from the Feather board (if available) |
#include <MIDI.h>
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
MIDI.begin(MIDI_CHANNEL_OMNI); // Listen to all MIDI channels
Serial.begin(31250); // Set the serial port to MIDI baud rate
}
void loop() {
// Check if there are any incoming MIDI messages
if (MIDI.read()) {
// Handle incoming MIDI messages
unsigned int type = MIDI.getType();
unsigned int channel = MIDI.getChannel();
unsigned int data1 = MIDI.getData1();
unsigned int data2 = MIDI.getData2();
// Example: Print received Note On messages to the Serial Monitor
if (type == midi::NoteOn) {
Serial.print("Note On: ");
Serial.print(data1); // Note number
Serial.print(" Velocity: ");
Serial.println(data2); // Note velocity
}
}
}
Q: Can I use the MIDI FeatherWing with other microcontrollers? A: Yes, as long as they are compatible with the Adafruit Feather form factor and can operate at the correct logic levels.
Q: How do I connect traditional 5-pin DIN MIDI connectors? A: You will need a TRS to 5-pin DIN MIDI adapter cable, ensuring the pinout matches the MIDI standard.
Q: Is it possible to power the MIDI FeatherWing separately from the Feather board? A: No, the MIDI FeatherWing is designed to be powered directly from the Feather board.
For further assistance, consult the Adafruit support forums or the product's official documentation.