Post by karl on Jun 23, 2024 19:17:16 GMT
Okay, first of all much thanks to Lawrence for his amazing work. Also thanks for your extremely quick response to my request to send the code.
I'm trying a somewhat different approach. I'm using an Arduino Leonardo because I had one laying about and it has direct midi support via USB, so supposedly no need for a USB shield. The library I'm using is usbmidi.h. I've built quite a few Arduino projects before, including a GPS speedometer for my boat, so I'm decently experienced with utilizing Arduino controllers. However, I'm having problems with this guitar pedal project because of the very sparse documentation available on this topic.
My first goal is just to send a simple patch change code to my pedal via a single button. I've created a sketch that sends what I think is the proper command to the pedal, which is "c0 06", which I was hoping would send a command to change to patch 6. It is sending this out on midi channel 2. Here's where I've run into my first problem...
I can monitor the output of the Arduino on my PC by using Pocket Midi. Seems to work just fine. Plug in my controller, push the button, and the input monitor reads "c0 06". However, when I take my controller and connect it to my pedal (using a USB to mini USB cable), nothing happens. And by nothing, I mean the TX light doesn't even flash when the button is pushed. Both the controller and my Pedal are connected to their own external power sources. I can understand if the code I'm sending isn't correct, but the fact that the TX light doesn't even flash is perplexing. Because the Arduino will not flash TX light when it's connected to nothing, my first guess is that the Pedal is not recognizing the Arduino as a MIDI device or the other way around. Looking through Lawrence's sketch I can't find anything in the setup section that seems to initialize communication between the board and pedal. But I find it odd that my computer has no problem recognizing the Arduino as a MIDI device straight away. Any help on this would be greatly appreciated.
I'm trying a somewhat different approach. I'm using an Arduino Leonardo because I had one laying about and it has direct midi support via USB, so supposedly no need for a USB shield. The library I'm using is usbmidi.h. I've built quite a few Arduino projects before, including a GPS speedometer for my boat, so I'm decently experienced with utilizing Arduino controllers. However, I'm having problems with this guitar pedal project because of the very sparse documentation available on this topic.
My first goal is just to send a simple patch change code to my pedal via a single button. I've created a sketch that sends what I think is the proper command to the pedal, which is "c0 06", which I was hoping would send a command to change to patch 6. It is sending this out on midi channel 2. Here's where I've run into my first problem...
I can monitor the output of the Arduino on my PC by using Pocket Midi. Seems to work just fine. Plug in my controller, push the button, and the input monitor reads "c0 06". However, when I take my controller and connect it to my pedal (using a USB to mini USB cable), nothing happens. And by nothing, I mean the TX light doesn't even flash when the button is pushed. Both the controller and my Pedal are connected to their own external power sources. I can understand if the code I'm sending isn't correct, but the fact that the TX light doesn't even flash is perplexing. Because the Arduino will not flash TX light when it's connected to nothing, my first guess is that the Pedal is not recognizing the Arduino as a MIDI device or the other way around. Looking through Lawrence's sketch I can't find anything in the setup section that seems to initialize communication between the board and pedal. But I find it odd that my computer has no problem recognizing the Arduino as a MIDI device straight away. Any help on this would be greatly appreciated.