An Eagle Tip: Routing Traces to Pads

Figure 1

It's desirable that connections to pads on a circuit board are correctly aligned to the center of the pad.  A few tips follow to aid in doing this.

Difficulties arise when pads are not on the selected grid in Eagle.  This can happen when mixing parts with imperial and metric units or when it's required to position a component to align with a panel or another board.

The illustration to the right shows the ideal case for a DIP package.  The pad pitch is 0.1" and the grid spacing is 0.05" as shown by the faint gray lines.  The traces intersect with the center of the pads.

The figure below shows what happens when pads aren't on the grid.  In this case, there's a DIP package with 0.1" pitch pads and a header with 2mm pitch.  The grid is set to 1mm and the header is aligned to the grid.  The connections to the header align with the center of the pads.

The connections to the DIP package don't align well.  Every other connection is so far off, the trace connects to the edge of the pad.  This can result in clearance problems, particularly when traces are run between pads, and a weak point where the trace and pad intersect.

Figure 2

 Fortunately, this problem is easy to remedy.  If we start laying out our trace from the pad not on the grid, it will start from the center of the pad, and the trace will stay on the same line in either the horizontal or vertical direction until the direction is changed.  Start from the non-aligned pad, and head towards the aligned pad and things will work out.  The bottom traces in the illustration below show this.

Figure 3

This becomes an even bigger problem with the close pads on SMT components, as shown below; some of the traces end up shorting adjacent pads.  Starting from the non-aligned pad works here too.

Figure 5

When using square packages like the TQFP shown here, it's frequently useful to rotate the package 45° to gain more room for routing.  The above trick doesn't work for 45° traces, so we quickly end up with a mess!

Figure 6

We need a different method to deal with rotated packages and 45° degree traces.  In this case, the pitch of the TQFP leads is 0.8mm.  If we resort to that nearly forgotten high school trigamometry class, we can multiply the pitch of the leads by the sin of the angle to define a new grid spacing such that our rotated pads are on the grid:

0.8 × sin(45) = 0.566

If we reset the grid to 0.566mm long enough to lay out our connections to the TQFP, then reset the grid to our normal selection, we can use the trick above to make smooth connections.

Figure 7

Look at the grid pattern above and you'll see the 45° traces align perfectly with the center of the pads.  One detail not shown in the illustration above is that the chip must be aligned to the new grid for this to work – the crosshairs at the center of the chip must be aligned to the the grid.  The easiest way to accomplish this is to use the I tool to position the chip at (0, 0) and then drag the chip where you want it with the move tool.


Posted: 3 years 5 months ago by GM_Mike #16789
GM_Mike's Avatar
I just want to say that there is another way to accomplish this effect without having to worry about the grid size or where you are starting from. I usually just left click to start the trace, then select (right click is quick, don't even notice I do it often times) either bend style 0 or 4 and then route from there. When I get one click from destination, cycle to around to get it to snap to destination and done. The grid thing would help also when you are tying to wrangle the auto router into being not retarded, but I have only had luck getting to 1/2 retarded with him :P

Forum Activity

Member Access