I had the hifi berry lying around, and some time ago I replaced the connectors. Maybe I damaged something in the process. I ordered a new one for the Zynthian and will compare the two when it arrives.
But for now it is working nevertheless. I don’t see the inputs in alsa mixer, only the output channels. But the input is there:
I added the third MCP23017 to the system and wired it like in the V5 zynface. The other 2 were already connected like in the V5:
MCP23017 0x20
INT A RBPi PIN 29, GPIO 5, WiringPi 21
INT B RBPi PIN 31, GPIO 6, WiringPi 22
MCP23017 0x21
INT A RBPi PIN 11, GPIO 17, WiringPi 0
INT B RBPi PIN 13, GPIO 27, WiringPi 2
MCP23017 0x22
INT A RBPi PIN 18, GPIO 24, WiringPi 5
INT B RBPi PIN 16, GPIO 23, WiringPi 4
After that I tried to change the address of the MCP4728. But I was not successful at first. I connected the LDAC to GPIO24 (RBPi pin 18), disconnected everything else, checked the presence of the MCP via i2cdetect, compiled and started the program:
cd /zynthian/zyncoder
cc -I /usr/local/include/ mcp4728_set_address.c -L /usr/local/lib -lMCP4728 -o mcp4728_set_address
./mcp4728_set_address
But the address didn’t change. I compared my wiring to the description of the process by riban.
Did you try that with oram?
Finally I used an Arduino to change the address.
There is a rather old MCP4728 library and small program from 2011 that includes everything needed. I just had to download the file mcp4728_library_v1.3_for_Arduino_1.0.zip, compile and upload the program to the Uno and now, I am quiet happy with the result:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 21 22 -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- UU -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Best