rsta2 / pico

Some small programs for the Raspberry Pi Pico
Other
46 stars 5 forks source link

Would it be possible to use two pi Picos as a Midi bridge between two host devices? #1

Closed ramphands closed 2 years ago

ramphands commented 2 years ago

Hello there! First of all, thank you so much for the project.

My intention is to get two RPi 3s communicating via USB-Midi. I am aware that there are devices which function as a bridge to allow two hosts to connect, and I wondered if it would simply be a case of having two Picos with the UART Tx Rx pins connected. Would that be correct?

Many thanks!

rsta2 commented 2 years ago

Yes, this should work. You have to cross-connect the UART-TX/-RX lines and connect GND of both Picos. The power pins (VSYS, VBUS) must NOT be connected, because the Picos will be powered via USB. Thanks for appreciating my project!

ramphands commented 2 years ago

Thank you so much for such a prompt reply!
I shall test it and let you know the results. All the best

rsta2 commented 2 years ago

@ramphands Did this work for you?

ramphands commented 2 years ago

Irritatingly I haven't been able to find a second Pi Pico so I haven't had a chance to test it yet.

On Tue, 11 Oct 2022 at 13:26, Rene Stange @.***> wrote:

@ramphands https://github.com/ramphands Did this work for you?

— Reply to this email directly, view it on GitHub https://github.com/rsta2/pico/issues/1#issuecomment-1274069948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKR5OQTCX6HZ4FSNQ4JCFZ3WCTUABANCNFSM6AAAAAAQWP35EI . You are receiving this because you were mentioned.Message ID: @.***>

rsta2 commented 2 years ago

Understood. Thanks for info.

ramphands commented 2 years ago

However, I must add that I've been using the code for the one Pico that I do have, interfacing between a RPi3 (outputting USBMidi) and another RPi3 running Minidexed (using the UART pins) and it's working wonderfully.

rsta2 commented 2 years ago

Good to know. Thanks!

ramphands commented 2 years ago

Seeing as I still haven't been able to get another Pico, I ended up creating a hat/shield for the Pi with your code-laden Pico attached. Actually works out more elegantly than I would have thought! https://github.com/ramphands/Minidexed-Shield Thank you again so much for the code - it works like a charm.

rsta2 commented 2 years ago

You are welcome. Your shield looks great!