CV/Gate input/output

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.

2 Likes

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:

GitHub - hideakitai/MCP4728: Arduino library for MCP4728 quad channel, 12-bit voltage output Digital-to-Analog Convertor with non-volatile memory and I2C compatible Serial Interface

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,

3 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,

5 Likes

Soldered the components and the beast still works like a charm :wink:

1 Like

Will the zynthian shop be stocking the AtoD & DtoA modulesā€¦?

I would like to offer this parts when the modules are integrated in zynthian software.
I hope very soon :wink:

Regards

Nice! I see you thought a little bit before soldering (not like me!) and both rowpin-connectors are soldered in the same side. Mine is a V-mount :wink:

Regards ā€¦

@jofemodo thanks, it was easy as I had your picture to help me :wink:

1 Like

Hi @jofemodo, I have done a session yesterday night and I saw that with the identical setup as usual, same power source, same cables, same midi device connected via usb, now I see the power warning blinking even at rest, do you know if it could come from the new soldered modules ? do you also see a difference with or without ?
brgs
Seb

Iā€™ve not detected any problem with this, but if your setup is near the limit, any power increase could push the system above the line. Have you tried to disconnect some device or the zynaptik?

Regards,

I did not disconnect the zynaptik, what I did to resolve the problem is to connect my device (Akai mpd226) via the Midi port instead of USB and power it with a separate source, now everything is all right.
Iā€™m pretty sure there is something with the new modules soldered because before I always connected via USB on the Pi to do Midi and power the Akai and never had any warning, maybe I have soldered the wrong way Iā€™ll double check this :wink: on my previous picture, the 2 vertical modules have the [+] on top is that correct ?

Yes, itā€™s right. I will try to measure the power used by the 2 modules ā€¦

Regards,

1 Like

Wow! You guys are amazing! Just beginning to imagine what is possible with Vcv rack and this fabled moduleā€¦ Any chance that software integration has occurred?

I might brave a build if so, and the modules are not out yet.

Hi @defbug!

Welcome to the zynthian community!

Please, could you explain a little bit what do you mean with using VCV-rack with zynthian? How do you intend to integrate both?

BTW, the CV/Gate interface for zynthian is not yet finished ā€¦

Regards,

hmmm well. I had initially assumed that I could access the gui through Zynhtian and was thinking of finding a way to add a 7 inch touchscreen and custom design an enclosure with all i o facing up to use with my modular and hardware synths. Now I am seeing that I was mistaken and that though vcv runs on linux there may not be way to use in the zynthian environment. Btw in case you cannot tell. I am a rank newbie. :stuck_out_tongue:

Itā€™s a good idea, but itā€™s going to require a fair amount of development. The most straightforward way would to build a separate VCVRack pi distribution that pulls in whatā€™s needed from zynthian code and utilises the zynthian hardware modules. The idea of being able to patch from software out to hardware and back is quite appealing.

1 Like

Just for updating the thread:

https://wiki.zynthian.org/index.php/Adding_Extra_I/O_with_the_Zynaptik_Module

The current state of CV-Gate imeplementation on zynthian is:

  • We have 4 analog inputs that can be assigned to MIDI CC, Pitch Bending or Chan Press.
  • These analog inputs work in the range of 0-5V. It would be nice to have a CV-IN circuit that would adapt different CV signals to the 0-5V range. This would be a nice contribution ā€¦ :wink:
  • We have up to 20 extra digital inputs that could be used as ā€œGate-INā€ but ā€¦
  • There is no software implementation for this, although it could be done quite easily.

Regards,

1 Like

FYI, a ā€œZynaptik Customization Kitā€ will be available very soon on the zynthian shop at almost cost-price. I wonā€™t make much money with this, but I hope it will ease the task and finally have some people experimenting with the zynaptik analog inputs and perhaps helping me to design an ā€œalmost-universal CV-IN circuitā€. Iā€™ve no experience with the CV -Gate thing and some help would be really welcome!! :wink:

Regards,

4 Likes

:eyes:

:rofl:

Let me figure what you do find so funny ā€¦ mmmmm ā€¦ is it this proposal?

or perhaps this assertion:

:face_with_raised_eyebrow: :face_with_raised_eyebrow:
:rofl: