From Artwork to Fab: Designing a Eurorack Front Panel

Designing complex FR4 Eurorack panel art has always been a bit tricky for me. I’ve been refining my process over time as I’ve designed more panels. I’ve experimented with many different workflows and apps to aid in panel art creation but it seemed like everything I tried had flaws or or weird quirks. I eventually settled on using the svg2mod python script to help convert my vector artwork into a KiCad footprint. The results have been great but the workflow wasn’t the best for me because I like to do my graphic work in Adobe Illustrator. Illustrator stores its layer names in the id attribute and uses 72 DPI, but svg2mod only recognizes layers tagged with Inkscape’s inkscape:label attribute at 96 DPI, so it sees no usable layers in an Illustrator SVG. To get around this, I had to import my .ai file into Inkscape and then re-organize all the shapes back into appropriately named layers. It was a tedious process but I did it because the end result was high quality. I eventually became tired of it though and decided to build a script/app on top of the svg2mod framework. I call it Vector2KiCad and it can directly convert .ai files and most types of .svg (where top-level layer groups carry an id, data-name, or inkscape:label file) into a KiCad footprint. It really streamlines my process and I’ve decided to share it with the Eurorack community and anyone else that finds it useful. You can learn more about this free script/app here.

The Panel Outline

The most important part of a panel is how it fits. You can design the most beautiful panel but if the panel doesn’t fit, well, it’s not a great panel. My strategy to ensure a perfect fit every time starts in KiCad. It’s a little trick I developed that begins with my component footprints.

Any footprint for a component that will protrude through an opening in the front panel has it’s front panel cutout baked into the footprint itself. In this Thonkiconn jack example, I made sure the footprint is centered on the jack opening. Then I drew a circle on the User.2 layer for the size of the opening that I want. I chose the User.2 layer to draw all my panel openings across all my footprints and stick to that for consistency. Whenever I load one of these footprints, the front panel cutout follows it. Now I never have to worry about alignment when moving footprints around in my PCB design.

Once my PCB design is finalized, I draw the front panel outline on the User.2 layer as well. Then I export the front panel outlines by plotting the User.2 layer to an SVG file.

Moving to Illustrator

Now I have a perfect front panel layout that will align with my PCB. I open the SVG in Illustrator and get this as my starting point:

Notice the holes I outlined in red. These were from the User.2 layer for my 3mm THT LED footprints. This allows me to put my panel windows exactly over where the LEDs will be under the panel. I just need to make sure to delete them from the Edge.Cuts layer after I place my window graphics so that holes don’t get cut there. Having them early in the design process eliminates the guessing and that’s a big advantage.

Since I’m designing a black panel, I can just invert the ‘black outline, no fill’ to ‘no outline, black fill’ with this button in the tool menu (Shift + X is the keyboard shortcut):

That will produce the result below which brings us to an important concept to remember. Compound shapes are your friend and you will need them often when designing front panels in Illustrator. Right now the panel has all the openings filled which is not desired.

We need to convert the panel to a compound shape by selecting the shape and clicking Object > Compound Path > Make. That will remove the fill from all the panel openings. Now we can lock this layer and start building our design on layers above it.

Understanding how the KiCad layers of an FR4 panel interact is crucial and I use fill colors to help visually guide me. You’ll be dealing with 6 layers:

  • F.SilkS – the silkscreen layer
  • F.Mask – where you DON’T want solder mask to be on the front of your panel
  • F.Cu – the copper pour on the front of your panel
  • B.Mask – where you DON’T want solder mask to be on the back of your panel
  • B.Cu – the copper pour on the back of your panel
  • Edge.Cuts – the physical shape of your panel

F.Silks

If I’m working on a black panel design, my silkscreen layer is typically going to be white so any artwork that will end up on this layer gets a white fill. This layer would be black for a white panel design. Your PCB fab house probably has a selection of solder mask and silkscreen colors so you can get more creative if you want. Designs on the F.SilkS layer might be mutually exclusive with F.Mask layer. Silkscreen typically only goes on solder mask. Check with your PCB manufacturer as some may automatically remove silkscreen that lands on pads/exposed copper areas. To be safe, make sure there are no shapes on F.Mask layer directly under where F.SilkS shapes are.

F.Mask

The mask layers can trip people up. It did for me at first. This is where color helps. If I’m doing ENIG (gold) panel accents, I use a gold color for things on this layer that will be gold in the final design. But this layer is also used for LED diffusion windows (in combination with the F.Cu layer). For something that’s going to be an LED window, I’ll choose a fill color based on the LED color that will be under this portion of the panel. Any random color will do if it’s an RGB LED. They key is that it’s different enough from the gold color so it’s less confusing for you while designing.

F.Cu

For a basic panel design, you might just fill the whole front of the panel with copper in which case it would essentially look like the Edge.Cuts layer we started with in the screenshot above. Wherever there is a filled shape on the F.Mask layer, it will expose this layer below. Hammer this concept into your head: a filled shape on F.Mask blocks the solder mask and reveals what is below whether copper on F.Cu or the clear(ish) fiberglass of the panel. Shape on F.Mask stacked with a shape on F.Cu = gold color on the panel. Shape on F.Mask and no shape under it on F.Cu = diffusion panel window for LED.

This layer is also where you can add some subtle flair to your design. If you take away copper on this layer the physical size of the panel will be slighty thinner where there is no copper. When covered with solder mask (no filled shapes above on the F.Mask layer), you’ll see all black but with depressions in the panel where there is no copper. Usually you can only see this effect when the angle of the light is just right. Here’s an example on the original Cloct panel. Look at the subtle borders around the jacks and logo:

That is where the copper was removed on the F.Cu layer. One of my favorite uses of this technique was done by my buddy Eli from Mystic Circuits. He added a tight inter-weaving M.C. Escher type pattern on the copper layer of IDUM which produced a cool texture under the solder mask:

B.Mask

This layer is really only important if you are making a two sided panel design or an LED diffusion window otherwise it will typically be an empty layer in your design. Something to keep in mind is that you don’t want to flip your design for the back of the panel in Illustrator. When you are holding a physical panel with a diffusion window and you flip it over, you would see a mirror image of the window that’s on the front. But in the design software you want the design to be the same orientation on F.Mask and B.Mask. The way I visualize it is that I’m not looking at the back of the panel from the back (like I would if I had the panel in my hand) but the back of the panel from the front. I hope that makes sense. Some screenshots later in this blog should solidify the concept.

B.Cu

The same applies here as in B.Mask. B.Cu is either used for two sided designs or diffusion windows. For a circle diffusion window, you would have a filled circle on F.Mask and B.Mask, and that circle removed from the filled shapes on F.Cu and B.Cu layers which leaves only the raw semi-transparent fiberglass panel in the final product.

Edge.Cuts

This layer is only read as outlines in Vector2KiCad and KiCad but we use fill color in Illustrator in order to help us visualize the final product. So in my process, the Edge.Cuts layer gets filled with the color of the panel (solder mask).

Starting the Artwork

Now that you have an understanding of the different KiCad layers, it’s time to get creative. I never begin my complex designs with the labeled F.Silks, F.Mask, F.Cu, B.Mask, and B.Cu layers. My design is going to go through many transformations along the way so I won’t create and organize the artwork into these KiCad named layers until the end. For now, the way I keep track of what is intended for what layer is by the fill color. I’ll have and use many temp layers to house different aspects of the design throughout the process. It’s just the way I’m used to working in Illustrator. If you’re doing a very simple design (you should probably start simple), you can create the KiCad layers and work on them from the beginning.

I wanted to start with a funky swirl pattern that is subtle in the background of my panel. The brown fill is going to be on the F.Cu layer and the black is the Edge.Cuts layer beneath it showing through the gaps. The panel as you see it below will be entirely black on the actual panel but the parts with the brown fill will be slightly raised like in my Cloct and IDUM example photos above because it will have copper under the solder mask on the panel:

In order to maintain a clean panel look, where the design doesn’t cover the holes and go off the panel edges or where you have to draw carefully within the bounds of the panel outlines, you can use the Clipping Mask feature. Create a new layer and pick a fill color that pops enough against black but isn’t too bright. I like to use brown. Create a pattern or design however you like to draw in illustrator. You can also import a pattern if you want. Don’t worry if it overlaps the panel holes or goes beyond the borders of the panel. Once you have the design finshed, make a duplicate of the Edge.Cuts layer and put it directly above the layer with the pattern you just created. Use the selection tool to select both the Edge.Cuts copy and the design you created. Then right click on them and click Make Clipping Mask in the context menu. The result will look like the image above. Anywhere your pattern went off the panel or over a panel hole, it will disappear. If you don’t like the positioning of your design on the panel, you can edit it by going to Object > Clipping Mask > Edit contents. Once you are happy with how it looks, you can “finalize” this by selecting the contents of the combined layers and using the Pathfinder tool called Merge. Pathfinder is another tool you will use often when working on panel designs.

If you don’t see the Pathfinder in your tool bar, you can open the window by going to Window > Pathfinder. Unite, Minus Front, and Merge are the three that I use most often.

It’s probably best to rename this layer now as it will be named ‘Edge.Cuts copy’ after the Clipping Mask merged your two layers into the top layer. Organization is key as the layers start to build up. I named it ‘bkgnd swirls’. Now I have one part of my F.Cu design done. If I turn off the Edge.Cuts layer, it looks like this:

I’ll be adding more layers with brown filled shapes on top of this for the sections of the panel that I also want to have copper (whether covered with solder mask or exposed). During the design phase you can have multiple layers that stack visually using the same fill color to create the pseudo panel design. At the end, I will Merge things by fill color and organize into KiCad named layers.

To recap, anything with white fill will end up on the F.SilkS layer, gold fill and LED color fill (purple in the panel at the top of the page) will end up on the F.Mask and/or B.Mask, brown fill will end up on F.Cu and/or B.Cu and black fill is reserved for the Edge.Cuts panel. This can feel counterintuitive at times (because gold is the copper for example so why is it on the F.Mask layer?) but it’s the system I’ve come up with to give me the closest approximation of the final look while I’m designing. Vector2KiCad ignores color and only respects filled shapes or outlines and what KiCad named layer they are on. So use color to your advantage.

Output LED Diffusion Windows and Jacks

I drew my output numbers with my Wacom pen using a calligraphy brush. These will become the diffusion windows for the output LEDs. As you can see, they are strokes which means they will need to be converted to shapes. Vector2KiCad ignores any strokes so it’s important to use Object > Expand Appearance to convert strokes to filled shapes. I use strokes all the time while designing and convert them at different points throughout the process. I want to add an outline stroke to these numbers so they need to be expanded first (you can’t add a stroke to a stroke). The same process would apply if you were using a font.

After expanding the numbers, I resized and placed them over my LED alignment circles. I swapped the stroke and fill so that the outline stroke is gold. I then chose blue as a fill color to represent the LED window. Both the gold and blue will end up on the F.Mask layer and then just the gold outline portion will be on the F.Cu layer. The blue shape will need to be subtracted from F.Cu and B.Cu so that there is no copper blocking light transmission.

Another thing to consider when adding a stroke is the alignment of the stroke. You can choose to have the stroke align to the center, inside, or outside of your shape. The default is the Align Stroke to Center but I wanted to gold outline to be outside the shape:

When you’re designing panels, it’s best to come up with a design language and stick to it across all your panel designs. For my panels, I mark input jacks with white silkscreen text labels and no color around the jack. Output jacks get gold color around them (usually a rounded rectangle or square) and I subtract the text label from the gold so it shows the text in black. For this alt Cloct panel, the LED windows are the label and I tied the output to the LED by drawing gold shapes between the output jack and the LED window:

At this point I need to create matching shapes that will end up on F.Cu so I dupicate the numbers and output jack shapes layers and fill those same shapes with brown. The I drag that layer below the gold layers. It’s important at this stage to sort your increasing layers in an order that maintains the proper look of the pseudo panel design.

During the design process, I’m constantly creating temp layers where I copy shapes that I need to subtract from other shapes below them. This is where Pathfinder > Minus Front comes in handy.

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *