Pi4 and v1 kits

It’s the easy implementation of colour setting in the reverse direction that interests me most.
The colour of the controller on the GUI can match the encoder colour on the panel.

I would also use the black RGB knobs cos they look considerably classier :smiley:

sure. You will be out of EU soon and everything will be cheaper for you.

we need to establish import/export. You sell the raspis and we get you eu-gadgets :slight_smile:

2 Likes

I feel like a stranger in a strange land. Our people seem to delight in grotesques…
It will take a while to sink in. :frowning:

But I have ordered some of these so there is still hope at the moment :smiley:

2 Likes

Don’t forget that this I2C encoder interface is already integrated in Zynthian :slightly_smiling_face:. If another I2C encoder integration is desired then the code may already be mostly written.

Luckily Brexit doesn’t (directly) affect Chinese imports but I do wonder how it might impact small businesses like yours @jofemodo. Are you ready for Brexit? :cry:

It’s like most things in modern code: an enormous exercise in context definition . . .

It’s all getting very close :slight_smile: The back channel to control the LED colour and if we get CUIA properly involved a two way OSC comms channel for remote control :smiley:

I’m going off to my volcano headquarter to cackle manically and stroke a bejewelled stick insect . . .

Do you have aliexpress links for the encoders?

Of course! As soon as you get the pull-ups working, i will start using your version for the nightly builds.

Very good work!!

Jejeje! I’m always ready for riding the waves! I’m a surfer!! :wink:

1 Like

Its working! The Pi4B has a different method for pull up/down which is now implemented in my wiringPi master branch[1]. With this change my prototype-4 Pi4B is fully working.

The build script installs to /usr/local, so the zynthian update will need to delete the wiringpi deb and make sure zyncoder links to the new one.

[1] https://github.com/steveb/WiringPi

7 Likes

I’m glad I convinced you to fix it.

3 Likes

Congratulations @steveb!

You are the new maintainer of the WiringPi library … at less for the Zynthian Project :love_you_gesture::love_you_gesture::rofl::rofl:

A really good work! I read your code and hope to test it ASAP with a kit v1 and RBPi4.
But as it seems to not breaking anything, i will start using it for the nightly builds and let’s see if the different combinations of hardware (v1, v2, v3 and variations) that compose the zynthian testing ecosystem can detect a hidden problem :wink:

Thanks a lot!

2 Likes

BTW, @steveb, could you write an install recipe for your wiringPi version?
It should be in “zynthian-sys” repo, “scripts/recipes” directory:

install_wiringpi.sh

should be the recipe filename :wink:

Thanks a lot!

OK! I’ve done the task. Tested and working like a charm.
Next green night build will include WiringPi 2.60, by @steveb :wink:

1 Like

Well that’s kind of fun… If you have qmidinet enabled with this new version, I get remote control of encoders across the network!!! (oh and it works with an old fashioned straight to the I/0 pin wiring as zynthian-alm.local is )

3 zynths all on MIDI channel 3 and moving any encoder on zynthian-alm.local is echoed to zynthian-amp2.local & zynthian-ceed.local. It doesn’t work on back or select or any press event, but it’s impressive never the less!!!, if a little confused cos all the zynths are on different patches . . . .

all pretty responsive and no obvious chatter or MIDI chatter other than that needed to make it happen.

This can only end badly !!!

Are you sure this “feature” is new? AFAIK, this should work in older versions too :wink:
In fact i remember having “tested” the feature in the past …

2 Likes

I might well of done as well in the past. But before the update it didn’t happen and after the update it did, so given the fairly complicated setup of zynthians round here that feels like progress. :smiley:

I will play around and see if I can produced some kind of definitive rig. I’m still got headless hdmi boot up issues and stuck notes in multi zynth rigs are interesting, but I need the mouse to control for the non touch screens.

Probably get footswitches to do MIDI Panic next. . . .

I don’t have a Pi4 so I’m probably fronting up the Rasp Pi 3 instances at the moment. Nice work on the wiringPi stuff, that was a pretty magnificent indication of open-source responsibilities . . .

2 Likes

Sweet, thanks everyone!

1 Like

Lovely :pray:thanks everyone :grinning:

1 Like

I am struggling to get Pi4 and v1 kit working. The encoders are not working. I have the latest updates and confirmed gpio version 2.6 is running. I don’t know if I need to do something different that have the latest update? I confirmed the encoders work with Pi3 and older image of Zythian. Please advise. Thanks.

I have confirmed my wiring against the image below.
I have started with a fresh 2020-03-28 Buster image on both a Pi3 and Pi4. Configured for V1 Kit. But encoders still not working on either even though they work on the Pi3 with an image from when I first built the kit several years ago. If I do a software update, some files are downloaded but then the UI interface on the Pi does not look right. There is no red select line. The top line is grey and I’m concerned the UI is locked up at that point but can’t tell. But the web interface still works. Lost at this point.

I notice a FAILED message during boot. This is the error:
root@zynthian:~# systemctl status splash-screen.service
● splash-screen.service - Splash Zynthian Logo Screen
Loaded: loaded (/etc/systemd/system/splash-screen.service; enabled; vendor pr
Active: failed (Result: exit-code) since Tue 2020-04-07 05:12:54 BST; 2min 33
Main PID: 444 (code=exited, status=1/FAILURE)

Apr 07 05:12:54 zynthian systemd[1]: Starting Splash Zynthian Logo Screen…
Apr 07 05:12:54 zynthian splash-screen.sh[444]: cat: write error: No space left
Apr 07 05:12:54 zynthian systemd[1]: splash-screen.service: Main process exited,
Apr 07 05:12:54 zynthian systemd[1]: splash-screen.service: Failed with result ’
Apr 07 05:12:54 zynthian systemd[1]: Failed to start Splash Zynthian Logo Screen
lines 1-10/10 (END)…skipping…
● splash-screen.service - Splash Zynthian Logo Screen
Loaded: loaded (/etc/systemd/system/splash-screen.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-04-07 05:12:54 BST; 2min 33s ago
Main PID: 444 (code=exited, status=1/FAILURE)

I don’t know if that helps.

600px-Wiring_scheme_controllers_single

Here is the debug log:
Restarting UI in debug mode
– Logs begin at Tue 2020-04-07 05:12:52 BST. –
Apr 07 05:19:05 zynthian systemd[1]: Started Zynthian User Interface (DEBUG).
Apr 07 05:19:05 zynthian startx[1351]: X.Org X Server 1.20.4
Apr 07 05:19:05 zynthian startx[1351]: X Protocol Version 11, Revision 0
Apr 07 05:19:05 zynthian startx[1351]: Build Operating System: Linux 4.15.0-48-generic armv8l Raspbian
Apr 07 05:19:05 zynthian startx[1351]: Current Operating System: Linux zynthian 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l
Apr 07 05:19:05 zynthian startx[1351]: Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:10:00:4F vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Apr 07 05:19:05 zynthian startx[1351]: Build Date: 05 June 2019 12:49:54PM
Apr 07 05:19:05 zynthian startx[1351]: xorg-server 2:1.20.4-1+rpt1 (https://www.debian.org/support)
Apr 07 05:19:05 zynthian startx[1351]: Current version of pixman: 0.36.0
Apr 07 05:19:05 zynthian startx[1351]: Before reporting problems, check http://wiki.x.org
Apr 07 05:19:05 zynthian startx[1351]: to make sure that you have the latest version.
Apr 07 05:19:05 zynthian startx[1351]: Markers: (–) probed, (**) from config file, (==) default setting,
Apr 07 05:19:05 zynthian startx[1351]: (++) from command line, (!!) notice, (II) informational,
Apr 07 05:19:05 zynthian startx[1351]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Apr 07 05:19:05 zynthian startx[1351]: (==) Log file: “/var/log/Xorg.0.log”, Time: Tue Apr 7 05:19:05 2020
Apr 07 05:19:05 zynthian startx[1351]: (==) Using config directory: “/etc/X11/xorg.conf.d”
Apr 07 05:19:05 zynthian startx[1351]: (==) Using system config directory “/usr/share/X11/xorg.conf.d”
Apr 07 05:19:06 zynthian startx[1351]: INFO:zynthian_gui_config: ZYNTHIAN-UI CONFIG …
Apr 07 05:19:06 zynthian startx[1351]: INFO:zynthian_gui_config: Wiring Layout PROTOTYPE-4
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: ZYNCODER A: [26, 25, 0, 4]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: ZYNCODER B: [21, 27, 7, 3]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: SWITCHES layout: [107, 23, 106, 2]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_config: DISABLED_MIDI_IN = [’’]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_config: ENABLED_MIDI_OUT = [‘ttymidi:MIDI_out’]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_config: ENABLED_MIDI_FB = [’’]
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: MMC Bank Change CCNum: 0
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: MMC Bank Change UP: None
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: MMC Bank Change DOWN: None
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: MMC Program Change UP: None
Apr 07 05:19:06 zynthian startx[1351]: DEBUG:zynthian_gui_config: MMC Program Change DOWN: None
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: STARTING ZYNTHIAN-UI …
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui_keybinding: Loading key binding from keybinding.yaml
Apr 07 05:19:07 zynthian startx[1351]: WARNING:zynthian_gui_keybinding: Can’t load keyboard binding config file ‘/zynthian/config/keybinding.yaml’. Using default.
Apr 07 05:19:07 zynthian startx[1351]: libjackpeak registering as ‘jackpeak’.
Apr 07 05:19:07 zynthian startx[1351]: libjackpeak created input ports
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: SWITCHES INIT…
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: SETUP ZYNSWITCH 0 => wpGPIO 107
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: SETUP ZYNSWITCH 1 => wpGPIO 23
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: SETUP ZYNSWITCH 2 => wpGPIO 106
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: SETUP ZYNSWITCH 3 => wpGPIO 2
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui: MIDI SWITCHES SETUP…
Apr 07 05:19:07 zynthian startx[1351]: DEBUG:zynthian_engine_mixer: MIXER CTRL LIST: [‘Digital’]
Apr 07 05:19:07 zynthian startx[1351]: DEBUG:zynthian_engine_mixer: amixer -M -c sndrpihifiberry set ‘Digital’ ‘Playback’ 100% unmute
Apr 07 05:19:07 zynthian startx[1351]: DEBUG:zynthian_gui_controller: ZCTRL ‘Layer’: 0 (0 -> 9), None, None
Apr 07 05:19:07 zynthian startx[1351]: INFO:zynthian_gui_admin: STOPPING RTP-MIDI
Apr 07 05:19:08 zynthian startx[1351]: INFO:zynthian_gui_admin: STOPPING QMIDINET
Apr 07 05:19:08 zynthian startx[1351]: INFO:zynthian_gui_admin: STOPPING touchosc2midi
Apr 07 05:19:08 zynthian startx[1351]: INFO:zynthian_gui_admin: STOPPING aubionotes
Apr 07 05:19:08 zynthian startx[1351]: INFO:zynthian_engine: Starting Engine JackTransport
Apr 07 05:19:08 zynthian startx[1351]: DEBUG:zynthian_engine: Command: /usr/local/bin/jack_transport
Apr 07 05:19:08 zynthian startx[1351]: INFO:zynthian_gui: ZYNTHIAN-UI OSC server running in port 1370
Apr 07 05:19:08 zynthian startx[1351]: DEBUG:zynthian_gui_controller: ZCTRL ‘Snapshot’: 0 (0 -> 0), None, None
Apr 07 05:19:08 zynthian startx[1351]: DEBUG:zynthian_gui_controller: ZCTRL ‘Snapshot’: 2 (0 -> 2), None, None
Apr 07 05:19:08 zynthian startx[1351]: DEBUG:zynthian_gui_controller: ZCTRL ‘Layer’: 0 (0 -> 9), None, None

Trying everything I can find in the forum to track down the issue:

root@zynthian:~# gpio i2cd
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: 20 – -- – -- – -- – -- – -- – -- – -- –
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – UU – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --