Hi everyone, I’m new to Zynthian having watching a few of Floyd Steinberg’s excellent videos. I have a fair bit of amateur experience with electronics and software, I’ve built my own modular analogue synthesizer from scratch amongst other things and I feel like the Zynthian would be a perfect polyphonic, digital synth to add to my setup.
I have already got a Raspberry Pi 4B and so I sourced a DAC Hat and 3.5" Touch Display display and got it all up and running - it’s truly excellent! Thank you to all involved in creating and sharing this project.
The next logical step is to add some encoders because interacting with the resistive touch screen is a bit of a pain. So I have sourced a MCP23017 board, it has a default address 0x27:
I am trying to get something to work - even just a push button - but without success so far. I am running the zyncoder_test script to see if I can understand what is happening.
Can this run at the same time as the main Zynthian application?
This is the output I get without any interactions - this repeats infinitely and quickly:
ZynCoder->update_polled_zynswitches(0): Wrong pin number 108 in zynswitch 2!
ZynCoder->update_polled_zynswitches(0): Wrong pin number 111 in zynswitch 3!
I have tried various different configurations, but here is what I used for the above test:
It’s like 108 and 111 are floating and don’t have a pull-up resistor or something like that? Although I don’t understand the message: “Wrong pin number…”
Something I’m not quite clear about is the Interrupt PINs and the labelling in the configuration. “WPI-GPIO 27 (pin 36)” - does this mean physical pin 36 (which is now GPIO 16) or is it actually GPIO 27 (pin 13). I’m realising now that these conventions have changed with the different releases of the Raspberry Pis. Not confusing at all is it!? I have tried both pins without success.
I have also tried setting all unused PINs to ‘-1’ to disable them for now. With 100, 103, -1, -1 in the ‘Switches Pins’ and then touching PA0 or PA3 to ground does not seem to achieve anything. Removing 108 and 111 has stopped the messages:
ZynCoder->update_polled_zynswitches(0): Wrong pin number 111 in zynswitch 3!
ZynCoder->update_polled_zynswitches(0): Wrong pin number 108 in zynswitch 2!
Any guidance from here would be greatly appreciated!