# Designing a Ext. Prototyping Breakout (With Raspberry Pi Hat Compatibility)

**URL:** <https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482>\
**Category:** DevTerm\
**Created:** [April 10, 2021, 12:27am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482 "2021-04-10T00:27:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 10, 2021, 12:27am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/1 "2021-04-10T00:27:51Z")

</div>

This thread is for discussing designing an Ext. breakout module for prototyping _and_ potentially connecting raspberry pi hats.

**Some Design Considerations**

- Cheap
- Usable as just a PCB (no extra components)
- 2.54mm spacing with through-hole connectors
- Compatible (or at least _safe_) with raspberry pi hats

**Compatibility**  
I’ve been spending some time getting an iteration worked out. Below are some schematics, layouts, and pin assignments. The main image I’d like to draw attention to is the pin assignment sheet. You’ll notice that this design allows **UART** , **I2C** , **PCM** , **SPI** , and **PWM** functions to exist in the same locations. However, with limitations, this leaves several general purpose pins unconnected. Which is why this breakout wouldn’t be guaranteed to work with all hats. However, with with pin functions, 5V, 3V3 and GND all in the same respective locations, this should make hats _safe_ to plug in.

Another requirement to get a hat working on the DevTerm would be remapping pins in the driver /software.

**Cables**  
With the 2.54mm spacing, this design would be perfect to solder an IDE ribbon cable, exiting the DevTerm printer door. If you already own a Pi Cobbler, you could plug the cable right into this!

**USB, Speakers, and Camera**  
For compatibility, the 40-pin breakout would not include the camera pins, speaker pins, or USB pins. These are special non-gpio pins. To not completely remove their functionality, I think adding solder pads might be helpful. If this design had a larger scope, it would be possible to re-incorporate the USB ports, camera connector, and speaker pads. But to keep this design low-cost and simple, I think simple pads for these should be fine.

**Feedback**  
If anyone else is interested in this design, please feel free to jump in on this conversation. At the very least if nobody is interested, this thread will serve as documentation.

**Pin Guide**

 ![Screenshot from 2021-07-17 11-13-36](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/5/5ade5f21070e8cda8d74b1714023f1d2c3d9f29a.png)

 ![Screenshot from 2021-07-17 12-01-37](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/8/805e7d24b5a83f1502ed701f949b62bb644ebbe4.png)

 ![Screenshot from 2021-04-09 17-17-29](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/7/766efebdfb24f28accba5475a29212b4b724d3fd.png)

**Current Progress**

 ![IMG_20210426_134345](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/9/958f79423c123781b7737438c51af1551576a5c1.jpeg)  
 ![IMG_20210701_145757](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/0/0652df5b4feb14c060904aceb0833cc22f090fe7.jpeg)

Feel free to email me if you are interested in one of these boards! [dustin@whatup.email](mailto:dustin@whatup.email)  
~~I’ve got a handful of extras~~ **All gone for now!**.  
The next production will be a revision. I’ll also get around to posting the gerber files for anyone who wants to order these PCBs themselves.

**Update 06/10** :  
Here are the gerber files you can use to order the proto board and the ext board. It’s important to use a PCB thickness of 1mm for the ext breakout! This will ensure it fits in the connector.

- [Ext Breakout v1](https://drive.google.com/file/d/1-H-vMVcDJ60dJpLt-_xeiBXELJRYMTjt/view?usp=sharing)
- [Proto Board v1](https://drive.google.com/file/d/15mHwbkXtMUI0Xi0YTvz0LOnEht8hbL0g/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Metonym](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/metonym/32/4898_2.png) [@Metonym](https://forum.clockworkpi.com/u/Metonym)\
**Post date:** [April 10, 2021, 7:55am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/2 "2021-04-10T07:55:26Z")

</div>

just like what @qqMajiKpp said, someone get this guy a cape

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 10, 2021, 10:04am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/3 "2021-04-10T10:04:55Z")

</div>

make it L shaped so it sticks out the bottom of the case, then it wont matter how much space there is for a header

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 10, 2021, 8:51pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/4 "2021-04-10T20:51:00Z")

</div>

Here we go! All traces connected, and things labeled. I managed to squeeze speaker pins in there too.

More to come: Looks like the printer area has lots of clearance, I’m working on a proto board for that area. Would be perfect to house soldered components.

 ![Screenshot from 2021-04-10 13-47-24](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/5/530353fa0591935d86d05b20de8441af8c5785f1.png) ![Screenshot from 2021-04-10 13-47-18](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/a/a7acfd8c88c91acfd8eb1d79c1a0923f6b9784a1.png)

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 10, 2021, 9:14pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/5 "2021-04-10T21:14:52Z")

</div>

Quick render to for context

 ![Screenshot from 2021-04-10 14-13-17](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/f/f80c37b365453f926032dbfc24344893dc45c3c2.png)

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 10, 2021, 9:48pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/6 "2021-04-10T21:48:46Z")

</div>

Last follow up for the day.  
Here are some quick mess mockups of a proto board used with the breakout board. The pin alignment would allow the ribbon cable to attach to the proto board, but also extend out of the enclosure for bread board prototyping. (I have barely yet put thought into the proto board layout)

 ![Screenshot from 2021-04-10 14-38-21](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/e/eb9bcd0c17dce69deed4650f8547abc6e0a18b84.jpeg) ![Screenshot from 2021-04-10 14-32-59](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/4/41834d134f3b3350b2cde5b4d8ea0e0708686a8b.png)

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 11, 2021, 12:18am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/7 "2021-04-11T00:18:18Z")

</div>

i still think bending it 90 degrees and extending it out the bottom to fit a full header would be nice… soldering a ribbon cables seems like a huge pain to me. Awesome work regardless!!!

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 11, 2021, 1:56am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/8 "2021-04-11T01:56:31Z")

</div>

How about if the ribbon cable has a header to solder on? I wouldn’t want to solder on individual wires either (unless I was hacking something together).

I think your idea is clever! My only complaint would be that you couldn’t close the enclosure all the way (unless I’m not thinking about it correctly?)

(FYI: I’m thinking about throwing a kit together that includes the PCBs and the ribbon cable.)

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 11, 2021, 2:57am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/9 "2021-04-11T02:57:19Z")

</div>

you know whats up and can picture it in your mind. you are wholly correct. my idea requires either a modification to the shell design and then print at home or to actually modify the case (full disclosure, im prone to the latter since i cant print… anything) i paid primo on shipping to get 5 sheets with designed templates with battery labels…

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [April 11, 2021, 12:15pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/10 "2021-04-11T12:15:16Z")

</div>

PCB cost is by the surface, the bigger the more expensive.

As expensive ribbon cables are, they are still cheaper (and either to replace) than extending the PCB to connect both sides.

The only potential issue with the ribbon cable is signal integrity especially with high frequency stuff if not done properly.

As for connecting the ribbon, don’t use an IDC one for internal, just a flex type, but even, I’m pretty sure there is enough space to have a proper pin header ont eh PCB and use IDC cable with already put connector on them (like a good old IDE/SCSI cable)

But for the board to board inside, use a flex instead there are plenty with enough pin, you can always ahve the pinheader on the protoboard to be able to connect a more robust ribbon cable using a proper connector

In fact I’m pretty sure thare are extender cable for that PCIe connecor they use that would fit and allow to no need the small PCB and not have to bother with the connection to the protoboard as all you would need here is the edge connector

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 11, 2021, 12:48pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/11 "2021-04-11T12:48:15Z")

</div>

the main board already uses an fpc connector… if i had a reflow station, i’d just put an fpc connector on the ext board if i could… i could still convert that to generic breakout, no need to modify the case, form factor and uniform. but if im sending a a file for print, i might pay the extra for a bigger board.

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 11, 2021, 6:23pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/12 "2021-04-11T18:23:32Z")

</div>

> [@Godzil](#):
>
> The only potential issue with the ribbon cable is signal integrity especially with high frequency stuff if not done properly.

I was wondering about trace length too. In some PCB designs, high speed data lines need equal trace lengths. This is a little beyond my knowledge though.

> [@Godzil](#):
>
> I’m pretty sure thare are extender cable for that PCIe connecor…

This was the first thing I looked into! I found a couple cables online, but it was difficult to find (specifically the _mini_ pci-e). It then occurred to me that these extensions wouldn’t have any support to keep them plugged in - something that’s solved with a custom PCB and the holes for the standoffs.

> [@Godzil](#):
>
> As for connecting the ribbon, don’t use an IDC one for internal, just a flex type

I’m pretty keen on using the ribbon cable internally. Ribbon cables can be spliced and soldered to things. Much more versatile for prototyping. For example: Connecting to the proto board is not the only intended use. I’ll post some more images soon for all the use-cases I’m thinking, but imagine wanting to do breadboarding externally or even have the proto board external from the DevTerm while working on it. A ribbon cable (with a few inches extra length) would help with these different use cases.

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 11, 2021, 6:52pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/13 "2021-04-11T18:52:38Z")

</div>

I’m still working ouut some details for orientation of pins and such. But this is my current concept for the proto board:

Note: Even with the design emphasis on being _pi compatible_ this board doesn’t need to be used as a pi-hat adapter. It could be used for standard prototyping. Again: versatile!

 ![proto-board-concept](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/7/772eee272233c374f8a02e72e624e7e4a3e19f4f.jpeg)

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 11, 2021, 6:55pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/14 "2021-04-11T18:55:20Z")

</div>

when i think about hanging a ribbion out of my devterm… it’s not for raspberry or Arduino type prototyping… im picturing lil john o’conner at the atm in terminator2

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 12, 2021, 5:31pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/15 "2021-04-12T17:31:52Z")

</div>

Quick update: I got a response from [help@clockworkpi.com](mailto:help@clockworkpi.com)… we now have the official Ext board outline specs! I’ll be making some revisions to my breakout design soon.

Here’s the DXF they sent me: [Ext\_Module.dxf - Google Drive](https://drive.google.com/file/d/1kjszcedvx3knHdH4DXosCJG-hYFZMhLX/view?usp=sharing)

But to save you some time, here are screenshots from that file:

 ![Screenshot from 2021-04-12 10-30-10](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/1/175a8be819cf1ac0572f1d9ef971739ca0a8a285.png) ![Screenshot from 2021-04-12 10-30-32](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/6/6f06c1a4455e24246e7014514f4f96971abfcb94.png)

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 12, 2021, 7:07pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/16 "2021-04-12T19:07:39Z")

</div>

Something I’m confused about is the PCI-e connector. The specs they sent don’t seem to align with a photo of the actual PCB on instagram. Gonna try to confirm things…

 ![dev-term-ext-dimension-unsure](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/0/0c5c0b9a8bed57763423e86c2c3a93b97f3820b9.png)

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 12, 2021, 7:22pm UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/17 "2021-04-12T19:22:43Z")

</div>

@yong - could you help us out with the Ext board specifications? Just trying to figure out if this DXF file is outdated, or if the photo on instagram is for a outdated prototype. Thanks!

EDIT: looks like maybe a 2mm discrepancy? (the spacing between the Ext and Main board)

---

<div class="post-metadata">

**Author:** ![yong](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/yong/32/73_2.png) [@yong](https://forum.clockworkpi.com/u/yong)\
**Post date:** [April 13, 2021, 4:26am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/18 "2021-04-13T04:26:26Z")

</div>

The DXF file is up-to-date. Thanks.

---

<div class="post-metadata">

**Author:** ![DustinWoods](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/dustinwoods/32/4741_2.png) [@DustinWoods](https://forum.clockworkpi.com/u/DustinWoods)\
**Post date:** [April 13, 2021, 7:29am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/19 "2021-04-13T07:29:03Z")

</div>

Thanks!

Another update on the breakout board: I’ve got the footprint updated with the official Ext specs.  
I ran into an issue with the through-hole design on this board, as I scouted for ribbon cable assemblies, I the shortest I could find was 7.8mm tall, but we’ve only got 5mm clearance. So I had to rethink how to connect a ribbon cable with this clearance. Came up with something clever using pads and a 2x20 header! Here’s the new revision:

 ![Screenshot from 2021-04-13 00-24-56](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/b/b7700bf355ea8c8db4b52f8b0aafb4fc5d6f464d.png) ![Screenshot from 2021-04-13 00-28-18](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/e/ee2214de83925ebca92873b71b888d26517a66ef.png)

---

<div class="post-metadata">

**Author:** ![qqMajiKpp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/qqmajikpp/32/4674_2.png) [@qqMajiKpp](https://forum.clockworkpi.com/u/qqMajiKpp)\
**Post date:** [April 13, 2021, 9:29am UTC](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482/20 "2021-04-13T09:29:35Z")

</div>

i imagine the case will need modification to fit that… not that im complaining or anything… maybe a lil surprised someone actually threw caution to the wind and said to heck wit the case. not many folks seem to feel the way i do about modding the chassis

[Next page](https://forum.clockworkpi.com/t/designing-a-ext-prototyping-breakout-with-raspberry-pi-hat-compatibility/6482.md?page=2)
