Well, I finished setting up the board. The final diagram is a bit more complex.
I got many errors, WirinPi didnt work, I tried gpiozero, gpiod... have to try again...
only one pot script worked, and I could send midi cc over two GPIOs.
the encoder didnt work, (pykeyboard didn't work. Didnt want to install also. the Encoder depends from pykeyboard for the keyboard mode)
the midi obviously didnt work either..
I opened my DAW and couldnt detect any midi, nor virtual, not through the in/out.
I'll start again.
If you are guessing the Encoder has a physical on-on switch to change from midi note send with root C3, to a keyboard mode for
OS navigation, as if it was a left and right arrows, and enter button.
In theory together with Virtual Midi, it should send a C3 note to the internal DAW, and then the DAW, if it sees the virtual midi in and
the Midi In and out, could then re-route it to the Midi out...
last but not least there are two cv input, not connected atm on the breadboard, waiting for the Midi to start working... sigh..
Mike I miss you...
Ame also I miss you. I didn't mean to push you off, sorry...
PS: I managed to git clone wiringPi but then I couldnt install it after the build, I made some syntax errors. Need to try again.
From the Zynthian community I received some warming suggestions that gave me a little hope....
enable_uart=1
dtoverlay=uart0-pi5
dtoverlay=midi-uart0
dtparam=i2s=on
dtoverlay=i2s-mmap
dtoverlay=hifiberry-dacplus
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds1307
dtoverlay=disable-bt
Raspberry Pi 5 40-Pin GPIO Header
==================================================
Odd Pins (1-39, Left Side) Even Pins (2-40, Right Side)
==================================================
[Pin 1] 3.3V ----+ | [Pin 2] 5V
Power: 6N138 pin 8 |
(via 4.7kΩ), BC557 |
emitter, MIDI OUT |
DIN pin 4 (via 220Ω), |
Encoder pull-ups, |
Pot left pin |
[Pin 3] GPIO 2 --- EP-0218 RTC | [Pin 4] 5V
(I2C SDA, DS1307) |
[Pin 5] GPIO 3 --- EP-0218 RTC | [Pin 6] GND ----+
(I2C SCL, DS1307) | Ground: 6N138
[Pin 7] GPIO 14 -- MIDI OUT | pin 5, MIDI
(BC557 base via 220Ω, | IN/OUT DIN
UART TXD) | pin 2, Encoder
[Pin 9] GND | common, Switch,
[Pin 11] GPIO 17 -- Encoder CLK | Pot right pin,
(PEC11, 10kΩ to 3.3V) | CV1/CV2 sleeve,
[Pin 13] GPIO 27 -- Encoder SW | EP-0218 GND
(Button, 10kΩ to 3.3V) | [Pin 8] GPIO 15 ---+
[Pin 15] GPIO 23 -- Encoder DT | MIDI IN (6N138
(PEC11, 10kΩ to 3.3V) | pin 6 via 220Ω,
[Pin 17] 3.3V | UART RXD)
[Pin 19] GPIO 10 | [Pin 10] GPIO 4
[Pin 21] GPIO 9 | [Pin 12] GPIO 18 ---+
[Pin 23] GPIO 11 | EP-0218 DAC+
[Pin 25] GND | (I2S PCM_CLK)
[Pin 27] GPIO 0 --- Pot wiper | [Pin 14] GND
(Capacitive discharge | [Pin 16] GPIO 22
charge) | [Pin 18] GPIO 24
[Pin 29] GPIO 5 | [Pin 20] GND
[Pin 31] GPIO 6 --- CV1 Sync In | [Pin 22] GPIO 25
(3.5mm jack tip) | [Pin 24] GPIO 8
[Pin 33] GPIO 13 | [Pin 26] GPIO 7 ----+
[Pin 35] GPIO 19 -- EP-0218 DAC+ | Pot wiper
(I2S PCM_FS, word | (Capacitive
select) | discharge read)
[Pin 37] GPIO 26 | [Pin 28] GPIO 1
[Pin 39] GND | [Pin 30] GND ----+ Ground:
| CV1/CV2 sleeve,
| EP-0218 GND
| [Pin 32] GPIO 12 ---+
| CV2 Sync Out
| (3.5mm jack tip,
| PWM)
| [Pin 34] GND
| [Pin 36] GPIO 16 ---+
| Switch (SPST,
| 10kΩ to 3.3V)
| [Pin 38] GPIO 20 ---+
| EP-0218 DAC+
| (I2S PCM_DIN,
| unused)
| [Pin 40] GPIO 21 ---+
| EP-0218 DAC+
| (I2S PCM_DOUT,
| data out)
==================================================
External Connections:
- MIDI IN DIN:
Pin 4 --> 220Ω --> 6N138 pin 2 (anode)
Pin 5 --> 6N138 pin 3 (cathode)
Pin 2 --> GND (Pin 6)
- MIDI OUT DIN:
BC557 collector --> 220Ω --> Pin 5
Pin 4 --> 220Ω --> 3.3V (Pin 1)
Pin 2 --> GND (Pin 6)
- CV1 (3.5mm Mono Jack):
Tip --> GPIO 6 (Pin 31)
Sleeve --> GND (Pin 30)
- CV2 (3.5mm Mono Jack):
Tip --> GPIO 12 (Pin 32)
Sleeve --> GND (Pin 30)
- EP-0218 Audio Output:
RCA/3.5mm jack for DAW audio
==================================================
I got many errors, WirinPi didnt work, I tried gpiozero, gpiod... have to try again...
only one pot script worked, and I could send midi cc over two GPIOs.
the encoder didnt work, (pykeyboard didn't work. Didnt want to install also. the Encoder depends from pykeyboard for the keyboard mode)
the midi obviously didnt work either..
I opened my DAW and couldnt detect any midi, nor virtual, not through the in/out.
I'll start again.
If you are guessing the Encoder has a physical on-on switch to change from midi note send with root C3, to a keyboard mode for
OS navigation, as if it was a left and right arrows, and enter button.
In theory together with Virtual Midi, it should send a C3 note to the internal DAW, and then the DAW, if it sees the virtual midi in and
the Midi In and out, could then re-route it to the Midi out...
last but not least there are two cv input, not connected atm on the breadboard, waiting for the Midi to start working... sigh..
Mike I miss you...
Ame also I miss you. I didn't mean to push you off, sorry...
PS: I managed to git clone wiringPi but then I couldnt install it after the build, I made some syntax errors. Need to try again.
From the Zynthian community I received some warming suggestions that gave me a little hope....
enable_uart=1
dtoverlay=uart0-pi5
dtoverlay=midi-uart0
dtparam=i2s=on
dtoverlay=i2s-mmap
dtoverlay=hifiberry-dacplus
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds1307
dtoverlay=disable-bt
Raspberry Pi 5 40-Pin GPIO Header
==================================================
Odd Pins (1-39, Left Side) Even Pins (2-40, Right Side)
==================================================
[Pin 1] 3.3V ----+ | [Pin 2] 5V
Power: 6N138 pin 8 |
(via 4.7kΩ), BC557 |
emitter, MIDI OUT |
DIN pin 4 (via 220Ω), |
Encoder pull-ups, |
Pot left pin |
[Pin 3] GPIO 2 --- EP-0218 RTC | [Pin 4] 5V
(I2C SDA, DS1307) |
[Pin 5] GPIO 3 --- EP-0218 RTC | [Pin 6] GND ----+
(I2C SCL, DS1307) | Ground: 6N138
[Pin 7] GPIO 14 -- MIDI OUT | pin 5, MIDI
(BC557 base via 220Ω, | IN/OUT DIN
UART TXD) | pin 2, Encoder
[Pin 9] GND | common, Switch,
[Pin 11] GPIO 17 -- Encoder CLK | Pot right pin,
(PEC11, 10kΩ to 3.3V) | CV1/CV2 sleeve,
[Pin 13] GPIO 27 -- Encoder SW | EP-0218 GND
(Button, 10kΩ to 3.3V) | [Pin 8] GPIO 15 ---+
[Pin 15] GPIO 23 -- Encoder DT | MIDI IN (6N138
(PEC11, 10kΩ to 3.3V) | pin 6 via 220Ω,
[Pin 17] 3.3V | UART RXD)
[Pin 19] GPIO 10 | [Pin 10] GPIO 4
[Pin 21] GPIO 9 | [Pin 12] GPIO 18 ---+
[Pin 23] GPIO 11 | EP-0218 DAC+
[Pin 25] GND | (I2S PCM_CLK)
[Pin 27] GPIO 0 --- Pot wiper | [Pin 14] GND
(Capacitive discharge | [Pin 16] GPIO 22
charge) | [Pin 18] GPIO 24
[Pin 29] GPIO 5 | [Pin 20] GND
[Pin 31] GPIO 6 --- CV1 Sync In | [Pin 22] GPIO 25
(3.5mm jack tip) | [Pin 24] GPIO 8
[Pin 33] GPIO 13 | [Pin 26] GPIO 7 ----+
[Pin 35] GPIO 19 -- EP-0218 DAC+ | Pot wiper
(I2S PCM_FS, word | (Capacitive
select) | discharge read)
[Pin 37] GPIO 26 | [Pin 28] GPIO 1
[Pin 39] GND | [Pin 30] GND ----+ Ground:
| CV1/CV2 sleeve,
| EP-0218 GND
| [Pin 32] GPIO 12 ---+
| CV2 Sync Out
| (3.5mm jack tip,
| PWM)
| [Pin 34] GND
| [Pin 36] GPIO 16 ---+
| Switch (SPST,
| 10kΩ to 3.3V)
| [Pin 38] GPIO 20 ---+
| EP-0218 DAC+
| (I2S PCM_DIN,
| unused)
| [Pin 40] GPIO 21 ---+
| EP-0218 DAC+
| (I2S PCM_DOUT,
| data out)
==================================================
External Connections:
- MIDI IN DIN:
Pin 4 --> 220Ω --> 6N138 pin 2 (anode)
Pin 5 --> 6N138 pin 3 (cathode)
Pin 2 --> GND (Pin 6)
- MIDI OUT DIN:
BC557 collector --> 220Ω --> Pin 5
Pin 4 --> 220Ω --> 3.3V (Pin 1)
Pin 2 --> GND (Pin 6)
- CV1 (3.5mm Mono Jack):
Tip --> GPIO 6 (Pin 31)
Sleeve --> GND (Pin 30)
- CV2 (3.5mm Mono Jack):
Tip --> GPIO 12 (Pin 32)
Sleeve --> GND (Pin 30)
- EP-0218 Audio Output:
RCA/3.5mm jack for DAW audio
==================================================
Statistics: Posted by Zool64Pi — Sat May 31, 2025 1:03 am