kgoncharuk
Member
Hi amigos,
Need your help with this from the first glance simple project that I can't get to work.
Tring to send MIDI notes from Midi DIN to the midi USB interface (or synth). Code is super simple, wiring as well but somehow it doesn't work.
That's what I'm trying to do:
This is my setup:
And here's the code:
Led on board is blinking but no notes are coming into the interface (which works, validated it with midi keyboard).
Resistors are 47 ohm, validated with multimeter continuity from each pin to the midi socket.
I'm completely stuck, would appreciate any help or guidance.
Thanks!
P.S. Just realized that my resistors are 5% instead of 1%, could it be the reason?
Need your help with this from the first glance simple project that I can't get to work.
Tring to send MIDI notes from Midi DIN to the midi USB interface (or synth). Code is super simple, wiring as well but somehow it doesn't work.
That's what I'm trying to do:
This is my setup:
And here's the code:
Code:
#include <MIDI.h>
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
const int channel = 1;
int led = 13;
void setup() {
MIDI.begin(MIDI_CHANNEL_OMNI);
pinMode(led, OUTPUT);
}
void loop() {
int note;
for (note=10; note <= 127; note++) {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
MIDI.sendNoteOn(note, 100, channel);
Serial.println(note);
delay(500);
MIDI.sendNoteOff(note, 100, channel);
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(2000);
}
delay(2000);
}
Led on board is blinking but no notes are coming into the interface (which works, validated it with midi keyboard).
Resistors are 47 ohm, validated with multimeter continuity from each pin to the midi socket.
I'm completely stuck, would appreciate any help or guidance.
Thanks!
P.S. Just realized that my resistors are 5% instead of 1%, could it be the reason?