Custom configs for zynaptiks without zyncoder

I run a custon zynthian pedalboard that uses a zynaptik V1 board but no zyncoder implementation of s1-s4 switches. I wish to use zynaptik with 8 digital input pins and 8 digital outputs connected to LED’s and 4 analog inputs .

I can run zynthian stable on this machine but only but turning off the zynaptik functionality, as the webconf configuration seems not to cover this scenario and low level errors referring to GPIO problems.

Is this a support scenario?

1 Like

Hi @wyleu !

I can’t see a problem with this. Is it your zynaptik v1 module expanded with the extra chips?

  • MCP23017 => 16 x GPIO
  • ADS1115 => 4 x ADC
  • MCP4728 => 4 x DAC

I just found and solved some zynaptik bugs on stable, so you better update to the last stable for getting this working.

After updating, you simply select the right I2C address for your MCP23017 (0x21 for zynaptik’s mcp23017) and configure the zynaptik and everything else.

Regards,

Updated…

Not seeing anything in MIDI log for I/0 button presses but keyboard works properly.

nothing in UI log…
but there are messages.

And setup is as described…

Removing analog config elements, still getting start up errors and no obvious funtionality.

Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore: Zynswitches poll thread created successfully
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore: Setting-up 8 x Zynswitches…
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore: Setting-up 4 x Zynpots (zyncoders)…
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore->setup_zyncoder(0, 0, 0): Can’t configure zyncoder on a single pin!
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore->setup_zyncoder(1, 0, 0): Can’t configure zyncoder on a single pin!
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore->setup_zyncoder(2, 0, 0): Can’t configure zyncoder on a single pin!
Dec 03 18:04:53 zynthian-pedal startx[3483]: ZynCore->setup_zyncoder(3, 0, 0): Can’t configure zyncoder on a single pin!
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_build_info: Build info => ZynthianOS: Built on os.zynthian.org
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_build_info: Build info => Timestamp: 2022-10-18
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_build_info: Build info => Optimized: Raspberry Pi 3 Model B Plus
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_num_of_presets: LV2 presets => 5
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_num_of_presets: Pianoteq presets => 0
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_num_of_presets: Puredata presets => 0
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: DEBUG:dashboard_handler.get_num_of_presets: ZynAddSubFX presets => 0
Dec 03 18:04:56 zynthian-pedal zynthian_webconf.sh[419]: INFO:web.log_request: 200 GET / (192.168.0.2) 1069.51ms
Dec 03 18:04:57 zynthian-pedal startx[3483]: Started libzynmixer
Dec 03 18:04:57 zynthian-pedal startx[3483]: Started libzynseq
Dec 03 18:04:58 zynthian-pedal systemd[1]: Starting VNC Server for X11…
Dec 03 18:05:02 zynthian-pedal x11vnc[3651]: PORT=5900
Dec 03 18:05:02 zynthian-pedal systemd[1]: Started VNC Server for X11.
Dec 03 18:05:03 zynthian-pedal startx[3483]: Started libzynsmf
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(0, …): Invalid index!
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(1, …): Invalid index!
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(2, …): Invalid index!
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(3, …): Invalid index!
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(3, …): Invalid index!
Dec 03 18:05:03 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(3, …): Invalid index!
Dec 03 18:05:21 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(0, …): Invalid index!
Dec 03 18:05:21 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(1, …): Invalid index!
Dec 03 18:05:21 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(2, …): Invalid index!
Dec 03 18:05:21 zynthian-pedal startx[3483]: ZynCore->setup_behaviour_zyncoder(3, …): Invalid index!

interestingly the webconf report disagrees with the wiring config…

zynthian-pedal-setup-webconf

1 Like

It doesn’t disagree. It simply can’t make a difference between 23008 and 23017, but it doesn’t matter.

But, you didn’t configure any encoder. You MUST configure 4 encoders with switch with this latout.

Still throwing errors on start up…

zynthian-pedal-i2cdetect

I’ve stuck random values into the encoder fields

and I don’t see any index errors in the UI log but the i2cdump is still showing FF FF as above, so presumably it’s not configuring the MCP23017 …