Hi
Trying to build an Arduino MIDI controller that only sends data, I use the attached test code which suppose to send a NoteOn and then NoteOff MIDI massage repeatably via Tx pin.
It works just fine when the Arduino is connected to the computer through the USB port, but when I try to use a power supply of 12V, 1.5A everything on the board looks fine, but MIDI massages being sent continuously and contains random staff.
I use MIDI OX to read the MIDI that comes from the Arduino so I can see what I got according to what I expect.
Attached is a photo of what I get in MIDI-OX when the Arduino is powered with external supply.
Thanks a lot
the test code:
#include <MIDI.h>
#define LED 13
MIDI_CREATE_DEFAULT_INSTANCE();
void setup()
{
pinMode(LED, OUTPUT);
MIDI.begin(MIDI_CHANNEL_OFF);
}
void loop()
{
digitalWrite(LED, HIGH);
MIDI.sendNoteOn(60, 127, 1);
delay(1000);
MIDI.sendNoteOff(60, 0, 1);
digitalWrite(LED, LOW);
delay(1000);
}