Hello, I’m trying to make a Input circuit using arduino code but now on the RP2040.
I have done a similar circuit with the Arduino UNO, and the controller was able to receive midi messages. Now I decided to switch, because the RP is faster, but i'd like to keep the code.
I need 5V for MIDI. So i use the GND and VSYS pins to get 5 Volts. Then I’ve tried different Pins. Like GP0, GP1, … Theoretically i need a RX pin for this. I thought GP0 would be standard. Maybe the problem is that i use the 5V from the VSYS. Maybe I’m mistaken or i need some extra configuration in the code. The Midi In circuit goes with an octocoupler and was working with an Arduino, there i was not describing it here.
I’m not sure why i dont receive any midi message. If i receive MIDI On message, it should turn on the LED. I’m glad for any help!
Mh, its hard to find sources on how to use arduino on RP2040. I was hoping the implementation would be compatible, since many other things are.
I know its possible to use the pins rather than usb for midi.
is it possible to use a 3.3 volt midi circuit?
the circuit with the optocoupler typically uses a 220 ohm resistor and a 4.7k resistor. would that need to be changed?
its hard to find out how to make a midi library work from the arduino programming language to the rp2040.
Thanks everybody for you responses!!
I’ve been experimenting around and the circuit with the RP2040 ended up working by using 5V on MIDI in and 3.3V for MIDI out and also implementing this MIDI instance: