# Eurorack Zynthian (Pi 4B/Pisound + cv, gate, mod)

**URL:** <https://discourse.zynthian.org/t/eurorack-zynthian-pi-4b-pisound-cv-gate-mod/8994>\
**Category:** Hardware\
**Tags:** midi-controllers, diy-midi-control\
**Created:** [January 13, 2024, 11:06am UTC](https://discourse.zynthian.org/t/eurorack-zynthian-pi-4b-pisound-cv-gate-mod/8994 "2024-01-13T11:06:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [January 13, 2024, 1:44pm UTC](https://discourse.zynthian.org/t/eurorack-zynthian-pi-4b-pisound-cv-gate-mod/8994/2 "2024-01-13T13:44:41Z")

</div>

I would strongly advocate connecting via USB in this regard. It provides a controllable and nameable port that would interface well with the zynthian device controls . .

If latency or performance of message passing becomes an issue you can elevate your self to I2c if you wish, but you are developing a whole different level of interface there and you would benefit massively from all the kit you develop over MIDI or QWERTY, with easy debugging.

> [@NEW: Control-device manager + controller device "drivers"](https://discourse.zynthian.org/t/new-control-device-manager-controller-device-drivers/8593):
>
> Hi @zynthianers! I’m proud of announcing the new control-device manager and driver subsystem is merged on testing branch. This is nice step forward in our road towards world domination grin The concept behind this is simple to explain with some examples: You plug your “Novation Launchpad Mini MK3” to zynthian, and it 's recognized and configured to manage the zynpad. The pads are colored like the zynpad ones. You can play/stop sequences, change scene, etc. LED feedback works great and you …

The GPIO pins, on a Pi, whilst used in the original zynthian are functionally, largely, bypassed. Interconnections into the system are presented via the developing API. So CUIA commands can be passed as MIDI messages or QWERTY ( that’s how to distinguish keyboards… @riban) from your device. And if you don’t require any kind of return such as a light coming on, then that will work well, and far more importantly, be easily testable if things ain’t working right. You are developing a grammar for your device within an existing framework, so you are saved the tedium of start, stop an message length handling. Which is really appreciated as the nights draw in and the bits don’t talk.

The nice thing about a USB Device you define is you can name it something relevant that will show up in lsusb firstly.  
Which moves onto the second decision to make. IF you choose QWERTY then simple USB driver will work for you but if you are working with MIDI over USB, this isn’t a fascility that’s offered so there is a certain amount of Microcontroller gymnastics required to add a USB MIDI presentation. There is some discussion here.

> [@STM32 Adventures](https://discourse.zynthian.org/t/stm32-adventures/4551/7):
>
> A small change to the KikGen source code in usb\_midi\_device.h to change the quantity of USB ports and I now see this: This time I found I needed to reset the STM32 whilst Arduino IDE was trying to upload. (I thought it managed without a reset previously.) I don’t currently see an advantage of 16 (or even 4) USB MIDI devices within ALSA / JACK. There can be lots (up to 15) of physical MIDI inputs which can be routed and processed within the device before hitting (or not hitting) the US…

But I’ve done since With a combined USB library under Maple that works on a Blue Pill, but haven’t pushed up the code cos it’s in a state of flux, with Power supply stuff.

And that raises the most important aspect of all this. THE POWER SUPPLY!

How are you going to power it reliably and how much excess current might you allow for possible device plugged into the very popular USB connectors on a Pi?

I’ve built a few zynths in all kinds of funny boxes and frankly I’ve spent far more time dealing with power supplies than anything else. I do have a certain obsession with Battery power but the points still stands. How are you going to handle powering up and powering down your zynth within it’s Eurorack home?

Here for instance is the back of my 19 inch rack.

 ![17051544943214235397804588280423](https://discourse.zynthian.org/uploads/default/original/2X/6/681bc474e1769a51fda95b4ea1a9e75904796a14.jpeg).

If the pi is going somewhere make sure its easy to get to the ssd… Once you’ve dissembled it six times you may regret all those screws you added…

And can you place the pi in the system so connectors are visible to the outside world. It’s amazing how much space extending an hdmi or a USB takes up.

---

_[View the full topic](https://discourse.zynthian.org/t/eurorack-zynthian-pi-4b-pisound-cv-gate-mod/8994)._
