# Encoder Display Power Fan Board (epdf)

**URL:** <https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830>\
**Category:** Hardware\
**Created:** [February 23, 2020, 7:35pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830 "2020-02-23T19:35:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [February 23, 2020, 7:35pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/1 "2020-02-23T19:35:04Z")

</div>

I have created a PCB to simplify a basic encoder Zynthian build.

[![](https://raw.githubusercontent.com/smiths73v3/zynthian-hw/master/zynthian_controller_epdf/doc/pcb_3d_render_components.png) ](https://raw.githubusercontent.com/smiths73v3/zynthian-hw/master/zynthian_controller_epdf/doc/pcb_3d_render_components.png)

It is centered around an MCP23017 IO expander, with the pinout headers configured for use with “off the shelf” 5-pin arduino style encoders. The hope here is that this will fill the gap for some of the other DIY builders that want to get started with their first Zynthian.

It also includes nice to have, but optional extras. A 2pin header output for driving a 7" Pi Foundation touchscreen, a 5V power input to simplify using a high current supply, and a GPIO-PWM modulated 5v fan output for cooling a Pi4.

I have included Pi zero style mounting holes so that an Audioinjector zero can be used as the soundcard and mechanically secured to the full assembly if desired. The build is intended to be a Pi stack, using 40pin stacking headers, and no ribbon cable.

At this point, the design is “experimental” and I am waiting to send it off for prototyping and SMT assembly. Unsure at this point when I’ll be able to prove out the design, I’m expecting it will be at least June at this point.

All files are in a forked zynthain-hw repo:

> **[smiths73v3/zynthian-hw](https://github.com/smiths73v3/zynthian-hw/tree/master/zynthian_controller_epdf)**
>
> Zynthian hardware stuff: PCBs, schemes, parts specifications, pin assignment, ... - smiths73v3/zynthian-hw

This is my first go at hardware design. Comments, criticism and suggestions are welcome.

---

<div class="post-metadata">

**Author:** ![Jtunes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jtunes/32/16402_2.png) [@Jtunes](https://discourse.zynthian.org/u/Jtunes)\
**Post date:** [February 23, 2020, 8:22pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/2 "2020-02-23T20:22:31Z")

</div>

Are you saying that this fits right on top of the Pi? That’s fantastic! The Zynthian HAT! 😃

---

<div class="post-metadata">

**Author:** ![Baggypants](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/baggypants/32/1911_2.png) [@Baggypants](https://discourse.zynthian.org/u/Baggypants)\
**Post date:** [February 23, 2020, 8:27pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/3 "2020-02-23T20:27:49Z")

</div>

Is this instead of the old [All in one board](https://shop.zynthian.org/shop/product/zynthian-all-in-one-module-pcb-v2-175?category=14)?

---

<div class="post-metadata">

**Author:** ![Andy](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.zynthian.org/u/Andy)\
**Post date:** [February 24, 2020, 6:33am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/4 "2020-02-24T06:33:07Z")

</div>

The layout looks great. I made a similar board for my build that uses an HDMI display so I was able to drop the I/O expander from the design.

These 40 pin stacking connectors are hard to find. You could think of having a second 40 pin connector just for the soundcard.

---

<div class="post-metadata">

**Author:** ![Jtunes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jtunes/32/16402_2.png) [@Jtunes](https://discourse.zynthian.org/u/Jtunes)\
**Post date:** [February 24, 2020, 12:38pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/5 "2020-02-24T12:38:11Z")

</div>

> [@Andy](#):
>
> You could think of having a second 40 pin connector just for the sound card.

I don’t know if that is possible, because you would have to offset the connectors, and then the mounting holes on the sound card wouldn’t line up.

![HiFiBerry DAC+ ADC](https://www.hifiberry.com/wp-content/uploads/2018/11/dacplus-adc2-441x441.jpg)

However… 🤔 …you could possibly desolder the 40-pin header on the sound card and move it to the _other_ 40-pin connector.

Assuming that works (and you have enough time and patience to get that done), then you _could_ offset the headers on the EDPF board, and the mounting holes would still line up.

(FYI, I am by no means a professional, so if this is completely wrong, please correct me! 😃)

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [February 24, 2020, 12:43pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/6 "2020-02-24T12:43:57Z")

</div>

Yes, an alternative to the all-in-one.  
The main reasons are to use easy to find pre-built encoders, and to stack up on the Pi. I opted to drop the DIN style MIDI since I don’t use those anymore.

@Jtunes, I have that soundcard currently, and populated the second connector. Like you pointed out, the mounting holes don’t line up, and the second hat flops around. I want a more secure solution.

The 40 pin stacking headers are available on Amazon from at least 2 sources, more if you get creative with 2x20 pin or other build up combinations. Some boards are starting to appear with SMT connectors, so that might be an option. One on top, one on bottom.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [February 24, 2020, 7:21pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/7 "2020-02-24T19:21:40Z")

</div>

> [@Jtunes](#):
>
> desolder the 40-pin header

You will be very sorry you started that. Desoldering is an art and can be tricky, especially with older solder.

---

<div class="post-metadata">

**Author:** ![BrainStormer](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@BrainStormer](https://discourse.zynthian.org/u/BrainStormer)\
**Post date:** [February 24, 2020, 11:02pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/8 "2020-02-24T23:02:46Z")

</div>

I used one of the 1 to 2 risers so I can attach a second cable.

 ![20200129_182405](https://discourse.zynthian.org/uploads/default/original/2X/e/e5ba713242e79f970384256dc1a4740334ec1776.jpeg)

---

<div class="post-metadata">

**Author:** ![Andy](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.zynthian.org/u/Andy)\
**Post date:** [February 25, 2020, 6:01am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/9 "2020-02-25T06:01:10Z")

</div>

I noticed in the original post that smiths73 is using an audioinjector zero card that has a smaller footprint than other sound cards. So my musings about off-setting the 40 pin connector are still valid 🙂

---

<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:** [February 25, 2020, 11:11pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/10 "2020-02-25T23:11:16Z")

</div>

Hi @smiths73v3!

Nice work! This looks very promising! I would like to get some of this babes when they are ready for dancing … How many units would you like to produce?

Regards,

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [February 26, 2020, 2:33am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/11 "2020-02-26T02:33:51Z")

</div>

Hi @jofemodo,

Trying to patiently to wait for the supply chain disruptions to resolve. After that it’s probably a 4-6 week process, you probably know better than I would. This is my first attempt at designing and manufacture. There is still a bit of risk that V1.0 will end up scrap.

I was planning on an initial proto run of 5 boards to prove out the design and to figure out what the board costs are. I’ll plan on sending you two boards once they are working.

I am just now starting to think about the question of what is next. If I can do a small batch, then Tindie might be the best route unless there was significant interest.

The design files are in a forked zynthian-hw, so I could do a pull request and they could be built by Zynthian official once the design is verified. I also have a forked zynthian-sys for the systemd and install files to control the fan but it’s not pushed yet.

---

<div class="post-metadata">

**Author:** ![Invert](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/invert/32/1153_2.png) [@Invert](https://discourse.zynthian.org/u/Invert)\
**Post date:** [February 26, 2020, 10:21pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/12 "2020-02-26T22:21:40Z")

</div>

Funny, I started the same thing, although mine is alot more basic 🙂  
It connects to the 4 port encoders that the original uses 🙂

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/9/93627423ffe39c5480d2fdcd39069add90733efa.png)

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [April 14, 2020, 11:50am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/13 "2020-04-14T11:50:08Z")

</div>

Whilst we are showing off our Zynthian encoder interface designs, here is the parent board for mine:

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/2/2b9d0ce9a51c448dd49fe036b7e8e4ea851ef93b.png)

There are also child boards for expanding inputs further:

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/8/8ca2928e23bb19eea0e634319e2c4d4f4e303513.png)  
 ![image](https://discourse.zynthian.org/uploads/default/original/2X/8/87d8aa5021445db515a914c87a24a3f1d00aa404.png)

I haven’t built any of these PCBs yet but will try to find time to get back to this now that the interest in extending quantity of encoders has (re)ignited.

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [April 14, 2020, 3:20pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/14 "2020-04-14T15:20:56Z")

</div>

One of the reasons that the STM32 solution I use hasn’t been elevated to standard use within Zynthian (to replace the MP23017) is because it relies on firmware that would ideally be flashed by the RPi and whilst this is feasible, I haven’t had time to device a neat solution. It could be done via USB but that would require connecting the RPi USB to the STM32 unit which is cumbersome. I plan to implement a I2C based bootloader for the STM32 which would resolve this but time… is not on my side.

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [April 15, 2020, 1:47am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/15 "2020-04-15T01:47:49Z")

</div>

@riban, You and me both my friend. The epdf is on hold, but not forgotten. The supply house came back online but has been out of stock of the dual transistor, and then ran out of the MCP23017 before I could replace the transistor…

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [April 28, 2020, 11:41pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/16 "2020-04-28T23:41:38Z")

</div>

Boards are ordered! Now the waiting begins… Reminds me of the old days when I mail-ordered a 300 baud modem and counted the days until it might arrive. 🤩

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [May 7, 2020, 10:12pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/17 "2020-05-07T22:12:15Z")

</div>

Boards are in hand!

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/f/f84651a9be3a12c8b706b43e22e4724be23fb68a.jpeg)  
Now the slow process of methodic bring-up, and soldering connectors.

---

<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 10, 2020, 1:09am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/18 "2020-06-10T01:09:30Z")

</div>

Hi @smiths73v3!

I just added your EPDF PCB design to the zynthian-hw repository. I’m reviewing your other PRs …

Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [June 10, 2020, 2:16am UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/19 "2020-06-10T02:16:32Z")

</div>

Thanks!

Quick warning before anyone builds one of these from the schematic.  
It’s going to need a minor rework to the power section based on a low current issue. Everything else seems to be testing out as expected.  
The action photo here shows it running with 4 encoders, power input, the Pi 7" touchscreen, fan, Stackable header, and Pi Zero sized Audio Injector soundcard with matching standoff mounts.

 ![IMG_20200527_114212](https://discourse.zynthian.org/uploads/default/original/2X/4/48b8f3e703395b4bbea8835a6f5e7ba6a8cb5fcd.jpeg)

---

<div class="post-metadata">

**Author:** ![smiths73v3](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/smiths73v3/32/5452_2.png) [@smiths73v3](https://discourse.zynthian.org/u/smiths73v3)\
**Post date:** [August 8, 2020, 8:15pm UTC](https://discourse.zynthian.org/t/encoder-display-power-fan-board-epdf/3830/20 "2020-08-08T20:15:34Z")

</div>

Next steps accomplished.  
EPDF support is in the latest nightly builds, and I have programmed the eeprom on all of the boards.  
One last rework to do before these can be released in the wild!

 ![IMG_20200808_153449](https://discourse.zynthian.org/uploads/default/original/2X/c/cb142def04addf65d333270a91d334d630755408.jpeg) ![IMG_20200808_154122](https://discourse.zynthian.org/uploads/default/original/2X/f/f298ed05545c47fd4fdc3e4ef03a4898c242f9bc.jpeg) ![IMG_20200808_154849](https://discourse.zynthian.org/uploads/default/original/2X/7/7116e561c3e585210e1a74f1a043770c6cfbcf8c.jpeg)
