Starting my zynthian build: alternative LCD, DAC, encoders

Here’s a quick and dirty example of messing about with drawbars

Also it’s worth noting the zynthian-ui supports midi learn and you can trivially map any cc control on to any synth param (including setBfree drawbars). Swipe right on the control in the box you want to map and you will see a green ??? appear. Then move the controller you want to map.

1 Like

Hi @Baggypants!
Thanks for the little demo! It’s linked on the wiki now :wink:

Regarding the setBfree, i never had problems with the drawbars and CC, but i don’t use the LV2 plugin. Zynthian setBfree engine uses the standalone version, that has pre-assigned CC to every drawbar on each manual & pedals.

As @Baggypants explained above:

and i will add that CC values are assigned like that:

  • 127-120 => 0
  • 119-104 => 1
  • 103-88 => 2
  • 87-70 => 3
  • 71-54 => 4
  • 55-40 => 5
  • 39-24 => 6
  • 23-8 => 7
  • 7-0 => 8

As you can see, it’s a kind of “reversed” assign, probably thought for working right with normal faders from any MIDI controller. When you “pull the fader”, CC value goes up, and when you push the fader, then goes down. In such a way, the player can manage the faders like drawbars.

Of course, i reversed that in the Zynthian UI, so you can rotate the encoders in the normal way: clockwise for “pulling” the drawbar and counter-clockwise for pushing it. However, assigned MIDI CCs maintain the original fader-reversed way.

Regarding the supossed “distortion” that Holger comments, i never noted that in the standalone version, so probably it’s only present in the LV2 version.

So, @jonathaslacerda, i’m pretty sure you can get your dreams become a reality :wink:

Kind Regards,

3 Likes

this way I fall in love with setbfree again hahaha
thx, folks

today I’m trying to connect the encoders on the all in one board, but I don’t know what wires I need to connect on board. I’m ignoring the + pin, but, what the equivalence between CLK, DT, SW, GND and PIN 1, 2, 3, 4 (from left to right) of the CTRL-1 connector?

Hi @jonathaslacerda!

This is the assignment used by CTRL pins in the All-In-One circuit:

  • pin 1: GND
  • pin 2: SW (switch)
  • pin 3: Encoder B
  • pin 4: Encoder A

I would try to put CLK & DT to pin 3 & 4. If the encoder works reversed, simply change to 4 & 3 :wink:

Of course, you also can tweak the wiring layout pin assignment in the webconf tool. The only fixed pin is GND (pin 1). The other three doesn’t matter, as you can re-assign it by software :wink:

Good luck!

1 Like

Thanks!

I’ve connected today all the 4 encoders. All are working, BUT with strange behavior. My wiring webconf:

Why doesn’t exists configuration for encoder C and D at webconf?

What is the strange behavior?

It’s not encoder A & B, it’s pin A & B for the 4 encoders :wink:

Regards,

All works, but doesn’t with the expected behavior. The first encoder just works when I use the second. The second just alternate between the Layer List and Admin screens. The third, alternate between Save Snapshot and Load Snapshot screens…

Oh! I get it!

And now I’ve observed other behavior: after a time, all the encoders stops work

You have crossed the SW pin with some A or B pins. Please, check carefully your phisical wiring.

Also, you could try tweaking the webconf wiring-layout values :wink:

Regards,

A simple doubt: whe you says pin 1, it’s from right to left or left to right?

Pin 1 is always from left to right :wink:

what is the default and official Wiring config for all-in-one board at webconf?

The official wiring layout is MPC23017_ENCODERS for Kit v2 (All-In-One circuit) and PROTOTYPE-4 for Kit v1 (2InOne circuit).

and about the values of the A/B/Switch GPIO-pins?

When you select a wiring layout, these values are adjusted accordingly. You can modify the values if you want, but in such a case it’s recommended to use the “CUSTOM” wiring layout, that’s empty for that purpose. If your wiring layout can be interesting for other people, we could add it to the list :wink:

Regards,

Perhaps my board or my encoders are defective :frowning: I’ve tested all possibilities and doesn’t work properly. Now have just the enc 4 wired at board. Left, Right and button have only 1 behavior: Right.

Sticking with the Motor 61 theme. This keyboard doesn’t clear down notes clearly. I can frequently trick it into holding a note by syncopated playing.

I have the Roland A-88 via USB and a Nord Modular G2 via MIDI Input on the same patch and I don’t get the effect with that.
That’s a bit of a problem … :disappointed_relieved:

Let’s see what Behringer say.

All works, but doesn’t with the expected behavior. The first encoder
just works when I use the second. The second just alternate between
the Layer List and > Admin screens. The third, alternate between Save

Remove on KY-040 encoders resistor R3 (10 kohm), as it interferes with other pullups (R1 and R2). Desolder it or just scratch all resistive layer away (usually green or black color) until white ceramic becomes visible.

2 Likes

what pin wiring between all in one module to waveshare 3,5 lcd a

Please search this forum for waveshare. There are some ppl that solved it