# Zynthian w/ 5in screen & encoders on mcp23017

**URL:** <https://discourse.zynthian.org/t/zynthian-w-5in-screen-encoders-on-mcp23017/782>\
**Category:** Building Zynthian\
**Created:** [June 12, 2017, 12:00am UTC](https://discourse.zynthian.org/t/zynthian-w-5in-screen-encoders-on-mcp23017/782 "2017-06-12T00:00:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beckdac](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/beckdac/32/519_2.png) [@beckdac](https://discourse.zynthian.org/u/beckdac)\
**Post date:** [June 12, 2017, 12:00am UTC](https://discourse.zynthian.org/t/zynthian-w-5in-screen-encoders-on-mcp23017/782/1 "2017-06-12T00:00:23Z")

</div>

Finished my build. Features:

- 5" touch screen (generic version of Waveshare 5" w/ SPI over GPIO touch interface)
- All four primary encoders are on a single MCP23017 using I2C w/ two interrupt pins. Details available [here](https://github.com/beckdac/zynthian-build/tree/master/case/mcp23017_encoders) and [here](https://github.com/beckdac/zyncoder).
- Uses this DAC: [https://www.sainsmart.com/sainsmart-hifi-dac-audio-sound-card-module-i2s-interface-for-raspberry-pi-2-b.html](https://www.sainsmart.com/sainsmart-hifi-dac-audio-sound-card-module-i2s-interface-for-raspberry-pi-2-b.html)

Most of the documentation exists here:

> **[beckdac/zynthian-build](https://github.com/beckdac/zynthian-build)**
>
> Zynthian RPi-3 build w/ case, controller, etc. Contribute to beckdac/zynthian-build development by creating an account on GitHub.

Demo here, and before you play it, I chose the absolute worst instrument for the ‘Take 5’ demo, sorry:

[![](https://img.youtube.com/vi/0LxjHgSQMDI/hqdefault.jpg "Zynthian custom w/ 5 in touch and encoders all on 1 MCP23017") ](https://www.youtube.com/watch?v=0LxjHgSQMDI)

Assembly photos for the curious:

- Lid inside, I used an old 40 pin cable and made a gender changer for the display touch SPI  
 ![Lid inside](https://discourse.zynthian.org/uploads/default/original/1X/d1c4c26a80959c192d22dacebe89065826543fe4.jpg)
- Lid outside with ribbon HDMI cable  
 ![Lid outside](https://discourse.zynthian.org/uploads/default/original/1X/ff27fdda7b24a434cac19546699e51f9df19cd15.jpg)
- Case inside with RPi3, Sainsmart DAC + MCP23017 board  
 ![Case inside](https://discourse.zynthian.org/uploads/default/original/1X/0e88e08e1a2d269bdfbfcefed570f6d76cc739a0.jpg)
- Fully assembled  
 ![Final](https://discourse.zynthian.org/uploads/default/original/1X/a00a2fd2da7c1344a3077747ddc587d0b2063756.jpg)

---

<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:** [June 14, 2017, 9:39pm UTC](https://discourse.zynthian.org/t/zynthian-w-5in-screen-encoders-on-mcp23017/782/2 "2017-06-14T21:39:18Z")

</div>

Nice mounting, @beckdac! Congratulations!!

Is it working OK? What about the sound?  
Probably you want to increase the font size in UI. You can do it from the webconf tool 😉

Regards!

---

<div class="post-metadata">

**Author:** ![beckdac](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/beckdac/32/519_2.png) [@beckdac](https://discourse.zynthian.org/u/beckdac)\
**Post date:** [June 14, 2017, 11:37pm UTC](https://discourse.zynthian.org/t/zynthian-w-5in-screen-encoders-on-mcp23017/782/3 "2017-06-14T23:37:06Z")

</div>

Works great. Encoder demo here:

Sounds is great too.

I don’t actually own a midi keyboard and I’ve been experimenting with my own teensy, atmega32u4, and joy2midi controllers for generating midi signals. Preview of one of the prototype controllers using a teensy 3.2 and a couple of mcp23017 (not shown is the sd card and oled display):

 ![](https://discourse.zynthian.org/uploads/default/original/1X/f69b6b7340559a7f0133f3ac3a9ed619e99fa6d0.jpg)

I’m cruising eBay for a relatively inexpensive midi keyboard too but haven’t managed to win anything.
