# Starting my zynthian build: alternative LCD, DAC, encoders

**URL:** <https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874>\
**Category:** Building Zynthian\
**Created:** [May 10, 2018, 3:15pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874 "2018-05-10T15:15:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [June 29, 2018, 4:04pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/21 "2018-06-29T16:04:32Z")

</div>

Hey @mheidt, @wyleu (and all users 🙂), can you help me with this doubt?

What is the best way to put the encoders with MCP23017 and MIDI IN / OUT / THRU with this mounting (see the photo posted previously)? Do you exist any way? Or I’ll have to buy / mount the BUS cable ribbon?

I am thinking in to change my LCD to a 5" HDMI model to make the “periferal” conections more simple. The zynthian supports touch over USB?

I have remembered too this thread with my question ([Alternatives to ribbon bus cable?](https://discourse.zynthian.org/t/alternatives-to-ribbon-bus-cable/1883/4?u=jonathaslacerda)). It’s a good way?

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [June 29, 2018, 6:14pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/22 "2018-06-29T18:14:22Z")

</div>

I am not sure if all 3 midi ports are possible with v1. With the AllInOne board, it’s just plug and play.  
I just bought a WaveShare 5 HDMI and it worked out of the box…I just switched it in the webconf and even touch worked. But check the model. The H version is the one I took.

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 15, 2018, 4:05pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/23 "2018-07-15T16:05:28Z")

</div>

I am with two issues, and have tryed so many ways to solve them but without success. The first, is the inverted X axis with my LCD touch. The second: I cannot got audio with my audioinjector. On this moment, I’m downloading a new raspbian image and will to test the DAC on a fresh system, because I suspect if my my unit have some problem.

On my last reply, I told that my touchscreen was working, but when I activated the cursor at the webconfig, I realized the X axis inverted.

I’ve tryed too configure the LCD as CUSTOM config, but without sucess. When I use the xinput-calibrator, the touch orientation works perfectly, recognizing the four points, but when I’ve updated the 99-calibration.conf with calibrator output, got no success.

UPDATE: With pure raspbian, the audioinjector worked like a charm. In the same raspbian OS, I’ve installed the driver from waveshare tutorial [https://www.waveshare.com/wiki/3.5inch\_RPi\_LCD\_(A)](https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)) and got the touch working without problems too.

So, why the official waveshare 3.5A driver worked with my LCD perfectly with raspbian and doesn’t worked with zynthian system? I compared the two files waveshare35a-overlay.dtb of the zynthian project and waveshare driver and they are the same (binary same).

And why I’m not got audio with the audioinjector (Audioinjector Stereo)? When I test the “Audio test” on zynthian UI interface, I get a message with a wav path and when I touch again, a red error message apears quickly and back to system screen: “Error: b’Registered as JACK client prevent the lastbits of audio to vanish out o 2.5/2.5 Audio Player for Layer…”.

---

<div class="post-metadata">

**Author:** ![rockwater](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/b19c9b/32.png) [@rockwater](https://discourse.zynthian.org/u/rockwater)\
**Post date:** [July 16, 2018, 11:57pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/24 "2018-07-16T23:57:22Z")

</div>

This is probably not helpful but I also have a Waveshare 3.5A clone and AudioInjector and All In One board. Everything works except touch in Zynthian. I’m not very experienced with Linux sadly, but I grew up using MS-DOS commnd line and Windows 3.1 so bash doesn’t scare me 😀

In Raspian I was able to get both the Touch feature and AudioInjector to work. But I think this was without the All In One board. Sorry I’m probably repeating myself again on this forum.

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 17, 2018, 12:16am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/25 "2018-07-17T00:16:08Z")

</div>

In my case, I’m using just audioinjector stereo and LCD Waveshare 3.5A. All worked perfectly on raspbian. Now I have the touch working, but with X axis inverted.

I have a good update: have flashed with the Zynthian Gorgona, updated it, and installed the audioinjector .deb package, following the instructions from [https://github.com/Audio-Injector/stereo-and-zero:](https://github.com/Audio-Injector/stereo-and-zero:)

1. wget [https://github.com/Audio-Injector/stereo-and-zero/raw/master/audio.injector.scripts\_0.1-1\_all.deb](https://github.com/Audio-Injector/stereo-and-zero/raw/master/audio.injector.scripts_0.1-1_all.deb)
2. sudo dpkg -i audio.injector.scripts\_0.1-1\_all.deb
3. audioInjector-setup.sh
4. reboot
5. alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore
6. reboot

Now I know how to download a file from terminal, install a .deb package and run a script hahahahaha

And voilá! [Got my mojo working](https://www.youtube.com/watch?v=8hEYwk0bypY)

[https://discourse.zynthian.org/uploads/default/original/2X/7/790f8c46a5cec202fa4d1830ce07fbe1760979be.mp4](https://discourse.zynthian.org/uploads/default/original/2X/7/790f8c46a5cec202fa4d1830ce07fbe1760979be.mp4)

And have tested with a usb midi controller =)

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 17, 2018, 1:51am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/26 "2018-07-17T01:51:08Z")

</div>

With the @rod_amaral help, I finally got sucess on LCD configuration (and how to disable the built-in mic from audioinjector).

To disable the audioinjector microphone, I’ve followed these steps:

1. alsamixer
2. F5
3. Navigate to MIC Option and press space.

To enable the audioinjector RCA inputs, I follow these steps:

1. alsamixer
2. F5
3. Enable L/R CAPTURE to LINE and change INPUT Mux to Line In.

To configure the touchscreen, I’ve followed these steps:

1. apt-get install -y xinput-calibrator (to download/install the touchscreen calibrator)
2. Create a file calibrate.sh with the content:  
#!/bin/sh  
xinput\_calibrator -v
3. chmod +x calibrate.sh (to make it executable)
4. systemctl stop zynthian (stop zynthian)
5. startx ./calibrate.sh (start the calibrator)
6. Touch the four points on the screen
7. Update the 99-calibration.conf with the result of calibrator run  
Section “InputClass”  
Identifier “calibration”  
MatchProduct “ADS7846 Touchscreen”  
Option “MinX” “3868”  
Option “MaxX” “63578”  
Option “MinY” “61610”  
Option “MaxY” “2901”  
Option “SwapXY” “0” # unless it was already set to 1  
Option “InvertX” “0” # unless it was already set  
Option “InvertY” “0” # unless it was already set  
Option “TransformationMatrix” “-1 0 1 0 1 0 0 0 1”  
EndSection

At end, I’ve changed the LCD to PiScreen 3.5 V1 on the webconf.

So, at now, all hardware I have was configurated.

Next steps:

1. build the MCP23017 board to use my zynthian with encoders (I’m considering to buy the all-in-one board from zynthian shop (with the bus cable). Will it work with audioinjector?
2. build the midi in/out/thru board
3. build the enclosure
4. Enjoy zynthian with the new partner behringer motor 61
5. Buy pianoteq

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [July 17, 2018, 9:10am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/27 "2018-07-17T09:10:14Z")

</div>

That MOTÖR-61 looks like the new official Midi controller in my mind at least ( techno lust rating medium.).

could we cover it with MIDI mapping?

Doesn’t look too good . . .

> **[Behringer motor 61 midi controller - Page 3 - Gearslutz](https://www.gearslutz.com/board/electronic-music-instruments-and-electronic-music-production/900679-behringer-motor-61-midi-controller-3.html)**
>
> check this out - midi keyboard controller with motorized faders  
>  
> NAMM 2014: Behringer Motor 61 -...

But apparently the firmware update fixes this stuff . . .

Be good to see a video with the new firmware.  
@jonathaslacerda  
Have you got one yet?

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 17, 2018, 12:23pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/28 "2018-07-17T12:23:25Z")

</div>

> [@wyleu](#):
>
> That MOTÖR-61 looks like the new official Midi controller in my mind at least ( techno lust rating medium.).
> 
> could we cover it with MIDI mapping?
> 
> Doesn’t look too good . . .

I’ve bought my MOTÖR-61 it last wednesday, but just will arrive on 07/31. Course we can to map it! When arrive, I’ll upgrade the firmware and test it

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 17, 2018, 4:05pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/29 "2018-07-17T16:05:21Z")

</div>

I’m considering to buy the all-in-one (v2) board from zynthian shop (with the bus cable). Will it work with audioinjector?

---

<div class="post-metadata">

**Author:** ![mheidt](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/mheidt/32/773_2.png) [@mheidt](https://discourse.zynthian.org/u/mheidt)\
**Post date:** [July 17, 2018, 4:14pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/30 "2018-07-17T16:14:16Z")

</div>

Audioinjector doesn’t need rewiring.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [July 17, 2018, 9:32pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/31 "2018-07-17T21:32:18Z")

</div>

It should work perfectly with AudioInjector 😉

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [July 18, 2018, 4:38pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/32 "2018-07-18T16:38:36Z")

</div>

Thanks @jofemodo and @mheidt. I’ve bought an MCP23017 module and will build a simple board just for prototype and test. I think on the final version I’ll to use the official board =)

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [August 15, 2018, 12:44am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/33 "2018-08-15T00:44:03Z")

</div>

Today I’ve received the 5" waveshare LCD (HDMI with touch over USB) from [gearbest.com](http://gearbest.com). Just configurated at webconf and all works perfectly. I’ve bougth the all-in-one board on zynthain shop and will wait the shipment to continue my build saga.

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [September 12, 2018, 3:22pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/34 "2018-09-12T15:22:36Z")

</div>

One more update: yesterday I’ve received the all-in-one board (the new version with SW-1 connector). But I lost the welding sucker and I’m afraid to mount the board without this tool.

 ![zynthian](https://discourse.zynthian.org/uploads/default/original/2X/0/0487afcd624c4ac3736742c61f25e1a7e09eee93.jpeg)

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [September 26, 2018, 8:29pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/35 "2018-09-26T20:29:49Z")

</div>

Today I found courage to solder the components on the all-in-one board

 ![zboard](https://discourse.zynthian.org/uploads/default/original/2X/5/5f9d200cb7da2e048ab7ce5d620a70e1d4887abc.jpeg).

But I’m with a doubt about my encoder type and the original zynthian encoder board:

My encoders are from keyes brand, model KY-040. They’re have 5 pins instead 4 of the original zynthian, and two resistors (instead 3 capacitors of the zynthian control). How can I modify my encoders to “fit and work” on the zynthian all-in-one board?

![ky-040-rear](https://discourse.zynthian.org/uploads/default/original/2X/8/8467da5c7c64dd6bdb471a9177c03bfcfcbb7951.jpeg)

 ![ky-040](https://discourse.zynthian.org/uploads/default/original/2X/0/070cb353581aee50294583b3d5c0fc553c1eb806.jpeg)

Update: this is the schematics from KY-040  
 ![Keyes-KY-040-Rotary-Encoder-Module-Schematic](https://discourse.zynthian.org/uploads/default/original/2X/1/125ddd3580a0b36d83eec4e9b1f4f14f61930777.png)

Anyway, I’m considering to buy the zynthian control module if the modification be complicated a lot =(

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [September 27, 2018, 7:18am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/36 "2018-09-27T07:18:08Z")

</div>

From a quick look I’d just not connect the + terminal it seems to be just a pull up connection. I’ve connected encoders without the capacitors and it works.

I’d give it a go. it’s all pretty passive so the risk of doing any actual damage is pretty low.

---

<div class="post-metadata">

**Author:** ![C0d3man](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/c0d3man/32/9_2.png) [@C0d3man](https://discourse.zynthian.org/u/C0d3man)\
**Post date:** [September 27, 2018, 7:24am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/37 "2018-09-27T07:24:33Z")

</div>

The resistors are pull-ups. And as @wyleu wrote: don’t connect “+” and you should be fine.

Regards, Holger

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [September 27, 2018, 1:19pm UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/38 "2018-09-27T13:19:55Z")

</div>

Thanks @wyleu and @C0d3man. I’ll try soon as possible!

---

<div class="post-metadata">

**Author:** ![jonathaslacerda](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jonathaslacerda/32/1370_2.png) [@jonathaslacerda](https://discourse.zynthian.org/u/jonathaslacerda)\
**Post date:** [October 2, 2018, 12:55am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/39 "2018-10-02T00:55:34Z")

</div>

Hey, dudes! Today I’ve gotten a ribbon cable (from a old computer) to connect the audioinjector on the all in one board. But:

1. I don’t know the correct orientation for the pin number 1 (red wire) on audioinjector and all-in-one module.
2. What is the equivalency from of the pins on JST connector and my KY-040 module pins?

Before I mount with the JST cable, I’ll test with dupont female-female wires. On module, I have CLK, DT, SW, + (I’ll not to connect) and GND. On the all-in-one board, I’ve 4 pins. In the top view, with CTRL1 label on bottom, what is the correct equivalency?

And about the webconf? How can I’ll to configure the all-in-one board?

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [October 2, 2018, 6:59am UTC](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874/40 "2018-10-02T06:59:58Z")

</div>

There are many pictures on the site to use as guidance . . .

[https://discourse.zynthian.org/uploads/default/original/2X/5/514b4cdf10cc9fca313bb4ef8bb657a02fbb7cb7.jpeg](https://discourse.zynthian.org/uploads/default/original/2X/5/514b4cdf10cc9fca313bb4ef8bb657a02fbb7cb7.jpeg)

Shows a zynth with an audio injector and the All in One board but no ribbons that will however give you the orientation of the pins that might help the issue, by showing which way the boards are orientated. When I put together the above system ( its zynthian-nord in my world) I plugged the all in one in the wrong way round. IT didn’t seem to do the machine any damage but of course I wouldn’t recommend it.

Choosing the webconf settings for hardware involves choosing the All in One option from the list. If you build your own encoder system and use different 1/0 ports you will have to construct your own encoder mappings ( again there are many examples especially in the early days of the site) bu the All in One should just work.

[Previous page](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874.md?page=1)

[Next page](https://discourse.zynthian.org/t/starting-my-zynthian-build-alternative-lcd-dac-encoders/1874.md?page=3)
