Making Custom Footprint for Plug-in Relay

I’m building a PCB that contains a large relay. Its dimensions are 38x35mm and the pins are spaced at two different pitches-- 6 pins at 7.8mm and the coil pins at 5.5mm.

Since I could not find the TE Connectivity 15722B200-R2918 relay in the Footprints list, I tried to design my own. However, the template I used must have been for SMD device as there are no thru holes.
The second issue is that there are no net connections.
This is what I get as a result, relay is missing and only SMD pads on board:

How do I make holes and connect the nets so there are electrical connections?

I hereby certify that I am not simply asking someone else to design a footprint for me.

This is an auto-generated message that is in place on the “footprints” section of the KiCad.info forum. If I remove it and ask for a footprint to be designed anyway, I understand that I will be subject to forum members telling me to go design my own footprint or referring me to a 3rd party footprint site.

Can you post a link to a data sheet.
The only link I can find is one to a relay with spade clip connectors.

This is the relay. It’s a “plug-in” relay. I’m still trying to locate the socket that enables this to be mounted to a PCB.

https://www.mouser.com/datasheet/2/418/9/157_23C200-3217977.pdf

If you scroll down the page, you will see there is a version available to directly solder into a PCB. Is that available? If so, there is a PCB template shown.

I’ll comment in the next post on creating a footprint.

1 Like

When you create a footprint, you have to specify whether it’s for a surface-mount or through-hole device; I suspect you missed this step. And it looks like your wiring is all on the bottom layer, while the SMT pads are all on the top, so there’s no way to connect these.

In the footprint editor, take a look at your footprint’s properties (type “E”) and change the component type:

Screenshot 2025-07-02 at 10.28.13 PM

Once the component type is fixed you can modify the footprint as needed. You should make sure the pad names/numbers are correct (see Footprints - Library Conventions | KiCad EDA for information on this - I believe there are special rules for relays).

From the datasheet it looks like this relay is normally socketed, it’s possible that the Relay_Socket_4PDT_Omron_PY14-02 footprint will be suitable for the matching socket, but you’ll have to do your own homework for this.

This is how I would create a footprint according to the PCB layout at the bottom of your data sheet.

Find a relay (any relay) in the Kicad library. RMB, then select “Save as”. Give the relay a new name, highlight your personal library, press Enter.
Open this relay in your personal library and move the relay to one side of the workspace. This is your “cheat sheet” to remind you of all the lines and layers required.

Set up three new grids. X = 11.04 Y = 5.58, X = 11.04 Y = 13.71, X = 11.04 Y = 21.33. These are the pad spacings on the data sheet. To do this click on the arrow in the grid display at the top of the worksheet (green arrow). At the bottom “Edit Grids”. At the bottom of the grid list in the new window click the + sign. Untick “Linked” fill in X & Y and OK.

Select new grid X=11.04 Y= 5.58.
Place “Add Pad” open Properties of pad. Make THT, give it number 1, select size and shape and hole diameter. (I used X=5 Y=4 round rectangle hole = 2mm)
Place first 6 pads using this grid. Pads will automatically land in their correct position with their correct numbers.
NOTE: the data sheet shows the bottom view but you are creating a new footprint with the top view, so numbers are reversed)

Change grid to X=11.04 Y= 13.71. Place pads 7,8 & 9.
Change grid to X=11.04 Y= 21.33. Place last two pads and rename.

Change grid to suitable small grid to draw your three outlines according to the “Cheat sheet” relay (I’ve only drawn the F.Fab). Start with F.Fab as the overall size of the relay cover. ( I used 36mm X 39mm)
When you have finished all the drawing, delete the “Cheat sheet” relay and save the new relay.
Job done.

1 Like

At the time of my search on Mouser’s site, this was the only relay I found that had the needed specs. I also wanted a plug in for easy replacement should this one fail at some point.

I’m going to take tomorrow to digest your followup post and do some mockups of the relay.

I’ve sent requests to Mouser and TE Connectivity for the socket part number and also if they have footprint files. A lot of their product does. But I’m taking this as an opportunity to learn how to make my own for situations where none are published.

Good to hear.
Making footprints and symbols are really easy after just a little practice and, usually, much quicker than surfing the net to find something suitable.
It is often even easier to modify existing kicad footprints. Use “Save as” or Copy/paste the Kicad library part.

Most of the basic stuff is covered in the “Beginners Guide” but if you ever have problems creating footprints and symbols, ask on this forum. You’re bound to get at least 10 different, but correct, solutions. :slightly_smiling_face:

1 Like

There’s a lot to absorb! I started this project with the intent to breadboard it, and purchased most of the components, the relay being specified for electrical characteristics and what was available at Mouser, but then it became too complex to breadboard, and being it’s a customer’s amplifier, I wanted to make something more in keeping with the quality of the rest of the amplifier.
I’m on the hunt for a socket for that relay now, which is turning out to be fruitless, so I’ve put in requests at TE Connectivity and Mouser to locate the matching socket part number so I can order it. A lot of their parts do come with footprint files, so I may be able to use their data.
For sake of experimentation, on the advise of another user, I tried a footprint for a similar sized relay just to see how the footprint fits and allow me to rearrange the other parts and make ready for when I find the correct part.
The PCB layout is looking much better now.

Ah yes. Yet another thing to consider:
I’m not sure whether PCB mounted sockets are available for this type of relay. It looks more like the type that has sockets only for DIN rail mounting.

1 Like

That’s a concerning thought that crossed my mind more than once last night. I may have to look for a PCB version, or mount the relay separately with wires. I don’t like the idea of not having it on a socket. Relay contacts wear out eventually. Having it built for easy maintenance was one of the design goals.
If they tell me no socket exists, I’ll ask them to recommend a PCB version of this relay or equivalent. Project may take a little longer than expected, but I’m trying to make a quality modification. And once I make a PCB, I can do this mod for other customers easily.

I got creative… and figured I’d try making a workaround so I could mount relay directly to the PCB. The rectangle cutout is to accommodate the plastic partitions between rows of pins on the bottom of the relay.

Some of the net names are confusingly inconsistent from pin to pin, but the rats nest all point to the right connecting points.

DRC only finds silk screen overlaps, but no electric errors now.

I even figured out how to get my company logo on to the PCB. Supposedly it’s on the silkscreen layer, though to me it looks like copper with conformal coating over it in this 3D preview.

1 Like

It doesn’t look like it, it should look the same colour as the refdes and courtyard rectangles. Check your logo layer again.

According to the properties, it’s Silkscreen, but you’re right,. it doesn’t look like it.

That however is saying that the refdes and value properties are on the F.Silkscreen. You have to look at the footprint. Here’s what the KiCad logo footprint on my board looks like when I edit it. Notice that the dropdown in the middle says that it’s on F.Silkscreen.

If you were looking at a footprint with pads then those would be on a Cu layer.

Edit: In fact if you had put your logo graphics on Cu in the footprint that would explain the appearance, a copper logo under soldermask. Also it’s easy to check. In a Gerber viewer turn off Silkscreen. If the logo remains visible it’s not on Silkscreen.

I thought I could simply cut it from the Cu layer and paste it into the silkscreen layer, but it’s still in the Cu Layer.

How does one move this to another layer? I’m sure there’s an easy way, but I haven’t found the menu or command yet.

Select the graphics then use Edit > Edit Text & Graphics Properties ticking Selected Items to change the layer.

1 Like

It was on a ‘hidden’ menu… had to enable it under the View menu. Thanks!

2 Likes

I thought I’d update this thread with the finished result…

Ain’t she purty? I started tested today. It works. I just may change to a relay with a higher coil resistance, as this one’s pretty low and makes the driver transistor run hot. Or I may try a MOSFET with a low RdsON value. Time to experiment!

3 Likes

It’s nice to see a finished project, thank you.

My only criticism is I’d have preferred to see bigger pads and wider tracks everywhere, especially as there is lots of spare real estate and the PCB is supporting a large, heavy, relay.

3 Likes