CV/Gate input/output

Hello, I was wondering if anybody has already added a cv / gate input interface to the zynthian and if not trying to evaluate what would be the impact on hardware / software to do this using for example mcp3204 to receive cv and route to the spi interface on the pi then to the software instead of a midi channel ?
brgs
Seb

3 Likes

Currently, the v3’s zynaptik circuit allows to connect the next optional parts:

  • 16 digital I/O ports (extra MCP23017) => Gate Input/Ouput
  • 4/8 analog inputs (up to 2 x ADS1115 modules) => CV input
  • 4/8 analog outputs (up to 2 x MCP4728 modules) => CV output

The software integration is not done yet, but you are very very welcome to help with it :wink:
Regarding the “impact” in audio processing, i don’t think it’s gonna be a problem.

Kind Regards,

1 Like

Excellent! I wanted to do a module for my eurorack modular since a long time, it could be done with the Zynthian, I have all the necessary to prototype near me and some time during the week end, let’s do it mate !

1 Like

Absolutely up for helping to make this happen. Was thinking about CV whilst going through the GitHub repositories. :- )

Thanks @HammyHavoc this is good to know,

on my side:

  • already ordered a MCP23017 also ADS1115 and MCP4728 modules :wink:
  • then I’ll try to connect these first to my arduinos to understand how they work off the ZY box because I don’t have a ZY dev env in place right now, I tried the docker but it fails on my dev pc for now and I prefer to stay away of the code if possible as I’m already doing it all day at work :wink:
  • I can also think and build a euro rack panel prototype with my tools, I can design with Librecad and cut with 3axes cnc, also can do one face pcb using Fritzing, it is basically going to have the same face as the ZY but with jacks around, 4xCV in 4xout, some GATE, audio IN OUT, usb front panel maybe
  • there is also a need to build a small eurorack plug for the +5V input

It’s going to be on my out of work/familly/social hours, so the pace will be quite slow on my side, but I’m on it (motivation first ;-), let’s see what everyone can do and plan this so we can optimize the time a little maybe.

1 Like

Nice, guys!! Let’s do it …

The MCP23017 and ADS1115 are currently well supported by the wiringPi library, and MCP23017 support has been extended a little bit for zynthian (see the zyncoder library). I don’t think we need extra “i2c-low-level” coding for this 2 chips.
The MCP4728 is not supported by the wiringPi library, but there is code for arduino, so we can use it for adding wiringPi support:

https://github.com/hideakitai/MCP4728

It’s always a funny task to add support for new hardware in a platform like RBPi. A lot of people will take profit from this!! :wink:

In the meanwhile, we should define how CV/Gate should be integrated with zynthian engines. The obvious starting point is mapping to MIDI events, of course … but you know, devil is on details :wink:

Regards,

2 Likes

OK! I’ve a zynaptik with all the parts soldered on it:

The second 40-pin connector is the “zynaptik connector” and has this pin-out:

Where:

  • GPAx & GPBx are digital input/output pins (MCP23017, at I2C address 0x21)
  • INTA & INTB are interrupt pins for banks GPAx & GPBx, connected to RBPi pins 36 & 37.
  • AD-x are analog input pins (ADS1115)
  • DA-x are analog output pins (MCP4728)

I will copy this info to the wiki ASAP :wink:

Regards,

3 Likes