Hello Stoo,
No luck with the code.
Here is the code I am using
#include <MIDI.h>
#include "U8glib.h"
//Initialize display.
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_DEV_0);
const int midiSendChannel = 1; // MIDI channel for outbound messages
// Creates and binds the MIDI interface to the default hardware Serial port
MIDI_CREATE_DEFAULT_INSTANCE();
void setup() {
MIDI.begin(MIDI_CHANNEL_OMNI); // Listen to all incoming messages
//Set font.
u8g.setFont(u8g_font_unifont);
} // end of setup
void loop() {
MIDI.sendControlChange(71,1,midiSendChannel); //Scroll Mode
u8g.firstPage();
do {
u8g.drawStr(20, 40,"Sending 71 1");
} while (u8g.nextPage());
delay(500);
MIDI.sendControlChange(49,0,midiSendChannel); //FS1
delay(500);
} // end of loop
Same as the one you provided with the addition of a u8g command to make sure I reach the MIDI sent instruction.
For the MIDI connector, I connected the Tx on the second pin on the left (brown on the attached images). My soldering skill sucks but I checked the continuity of the MIDI cable and do get the 4.7V at the other end of my MIDI but still nothing happening with the Stomp (MIDI connected to the IN ).
I also try with my old POD 2.0 but not working either. To make sure it is not an issue with the Stomp itself, I tried to send a MIDI signal via a keyboard and it worked. I wonder if maybe something wrong with the Tx pin of my Adruino? Is there a way to check that ?
One thing I noticed is that when I try to upload the code from my Mac to the Adruino with the MIDI connected to the Stomp, I get the following error message. Sound like my Mac doesn't like to have the MIDI plugged.
The upload works properly if I first unplugged the midi cable before the upload.
Arduino: 1.8.13 (Mac OS X), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
Sketch uses 10966 bytes (35%) of program storage space. Maximum is 30720 bytes.
Global variables use 634 bytes (30%) of dynamic memory, leaving 1414 bytes for local variables. Maximum is 2048 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbserial-1430 -b57600 -D -Uflash:w:/var/folders/y8/hmh6g2sx1b9b4dyp6h7bqbp00000gn/T/arduino_build_595367/MidiTest.ino.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/Patrick/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbserial-1430
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xce
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x30
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x06
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
Vtarget : 3275.2 V
Varef : 4.0 V
Oscillator : 0.001 Hz
SCK period : 35553.4 us
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xde
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x30
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x02
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00
avrdude done. Thank you.
the selected serial port
does not exist or your board is not connected
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.