Skip to content

Commit e67977d

Browse files
committed
boards: shields: olimex_shield_midi: new shield
Add a new very simple shield that provides MIDI DIN-5 IN/OUT/THROUGH, as well as 2 leds. Other features of the shields (capacitive sensors) are currently not reified in Zephyr. While there is no further device on the shield itself (everything goes through the Arduino header directly), this allows for meaningful device-tree naming when using the shield. Signed-off-by: Titouan Christophe <[email protected]>
1 parent 2f5763e commit e67977d

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 Titouan Christophe
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_OLIMEX_SHIELD_MIDI
5+
def_bool $(shields_list_contains,olimex_shield_midi)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.. _olimex_shield_midi:
2+
3+
Olimex SHIELD-MIDI
4+
##################
5+
6+
Overview
7+
********
8+
9+
This is a MIDI shield which allows Arduino like boards to receive and send MIDI
10+
messages. The shield allows direct wiring of up to 5 piezzo sensors and a
11+
keyboard (with buttons and serial resistors) making it ideal for drums projects.
12+
13+
.. figure:: olimex_shield_midi.jpg
14+
:align: center
15+
:alt: Olimex SHIELD-MIDI
16+
17+
* MIDI-IN, MIDI-OUT and MIDI-THRU connectors
18+
* 5 Piezzo sensors for drum implementation
19+
* Keyboard for piano implementation
20+
* Works with both 3.3V and 5V Arduino-like boards
21+
22+
More information on the `SHIELD-MIDI website`_.
23+
24+
Peripherals
25+
***********
26+
27+
The following peripherals are available in Zephyr:
28+
29+
- MIDI IN/OUT: on ``midi_serial`` (set at 31.25kb/s)
30+
- leds: ``midi_green_led``, ``midi_red_led``
31+
32+
Programming
33+
***********
34+
35+
Set ``--shield olimex_shield_midi`` when you invoke ``west build``. For example:
36+
37+
.. zephyr-app-commands::
38+
:zephyr-app: samples/net/midi2
39+
:board: nucleo_f429zi
40+
:shield: olimex_shield_midi
41+
:goals: build
42+
43+
.. _SHIELD-MIDI website:
44+
https://www.olimex.com/Products/Duino/Shields/SHIELD-MIDI/open-source-hardware
60.5 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2025 Titouan Christophe
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
leds {
8+
midi_green_led: midi-green-led {
9+
gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;
10+
};
11+
12+
midi_red_led: midi-red-led {
13+
gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>;
14+
};
15+
};
16+
};
17+
18+
midi_serial: &arduino_serial {
19+
current-speed = <31250>;
20+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
shield:
2+
name: olimex_shield_midi
3+
full_name: Olimex SHIELD-MIDI
4+
vendor: olimex
5+
supported_features:
6+
- led
7+
- uart

0 commit comments

Comments
 (0)