Hi everyone,
I’m building a synth on Daisy Patch SM using PlugData. The hardware MIDI-IN over UART doesn’t seem to be received by the patch (no notes reach osc~. But I hear its constant freq. coming from osc~ 440).
I have already read through all related MIDI and UART topics on this forum, but none of the suggested solutions worked in my case.
What I’ve done / verified:
-
Hardware: I built the same opto-isolated MIDI-IN circuit as on Daisy Pod (standard DIN input with optocoupler).
-
On the Patch SM’s UART_RX pin (I tested all available UART inputs) I see valid MIDI activity on the oscilloscope (idle is HIGH, around 3.3V or 5V depending on the optocoupler supply) when I play a keyboard.
-
PD test patch is minimal:
[notein - Left outlet] → [mtof] → [osc~ 440] → [dac~]
-
My json file starts like this:
{
“name”: “patch_init”,
“som”: “patch_sm”,
“defines”: {
“OOPSY_TARGET_HAS_MIDI_INPUT”: 1
},
“audio”: {
“channels”: 2
},
“components”: {
“cv_1”: {
“component”: “AnalogControl”,
“pin”: “C5”,
“default”: true
…etc…
I also found examples on the forum that use:
{ “defines”: { “OOPSY_TARGET_USES_MIDI_UART”: 1 } }
Are both of them correct?
PlugData ver. 0.9.2
What am I doing wrong with the MIDI input?
PS: I am planning to use another STM microcontroller alongside the Daisy in the future. Will there be (or is there already) a way to receive data from this STM over I2C or SPI on the Daisy Patch SM when using PlugData?
I’ve never seen this one, it’s not supported.
No, there are currently no methods to achieve this.
Can you share a (minimal) patch that receives the midi? It’s not possible to say what you are doing wrong without also seeing the code you are trying to run 
I haven’t tried adding MIDI input to a Patch_SM yet, so can’t give you any immediate tips/tricks for doing it.
At the moment the only MIDI port that is supported on Seed is the default pins D13/D14 aka Pin(PORTB, 6)/Pin(PORTB, 7) in the midi.cpp source. I honestly don’t know which pins these are on the Patch_SM and if they are accessible. Which pins from the schematic are you using? → Daisy Patch SM - Daisy
Looking at libDaisy/src/daisy_patch_sm.h at master · electro-smith/libDaisy · GitHub it seems that the default midi pins are not available.
There is still a plan to be able to configure more midi i/o in the board.json but we need to come up with a good syntax to achieve this (and in the pd/heavy patch it should then also have different “ports” available). Same with being able to separate USB midi on such a midi “port”.
Thanks for the reply!
The test patch looks like this:
I tried each of the UART RXs: A2, A9, B7, D2, D6.
Anyway, thanks for the clarification!
So as I understand it, UART MIDI input is currently only implemented for the Seed default pins, and there’s no ready integration for Patch SM yet. That explains why my setup didn’t work.
I’ll keep an eye on future updates regarding UART MIDI support for Patch SM in PlugData.