hey guys, so i recently acquired an arduino uno r3 and decided to see if i could make something out of it, to cut a long story short i was following the nerd musician on youtube and used his code to make a 3 button controller with a pot, that had inspired me to make my own 10 button midi controller with a pot to be able to control the velocity, now i am a new to coding with the arduino but had managed to persuade chat gpt to help write the code for me, i do understand i little bit about code considering i have and engineering background, so with this code i acquired i loaded it into the ide and got my arduino set up in place, loaded the code and install the midi library, it is mostly working in the ide but on the serial monitor i am getting messages like the one pictured any help would be greatly appreciated
You can't print to the serial monitor while sending MIDI.
The Arduino UNO is not a great choice for a MIDI controller, because it is connected to your computer using a single UART. Either you use that UART for printing messages, or you use it for sending MIDI, but if you try to mix both, the software on the other end will get confused.
What you're seeing in the serial monitor is the binary MIDI data that your program sending. The serial monitor can only display text, not MIDI data, hence the strange characters, indicating encoding errors (because MIDI data is not valid ASCII/UTF-8).
See Control Surface: MIDI over USB for alternatives.
sorry i forgot to mention that this is being shown in a debug mode, so what your saying is that its getting confused and using midi and serial at the same time
I would suggest using another Arduino such as the Mega which has several (4) hardware serial ports.
I have had some success with this library running multiple protocols over the same serial connection (only tested with Linux hosts).
if i where to write the code with serial.print instead of midi.send would this make a difference as i am going to be using hairless which to my understanding is a serial to midi converter
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
