7
\$\begingroup\$

This is my first PCB design.

I want to design the PCB layout of the following switched mode regulator:

enter image description here

This is the resulting PCB layout in which I've placed my components and the auto-router function of EasyEDA has created the traces:

enter image description here

  1. Can you tell me the reason why the auto-router has put the traces to J5 and J2 on a different layer (bottom layer)?
  2. Do you have any particular advice for components placement or routing? I'm quite hesitant since it's my first project.
\$\endgroup\$
1
  • 1
    \$\begingroup\$ Which direction you want your jumpers to look at? If you have e.g. jumpers with a plastic cover and you want to make the contact at the top side, you need to connect them on the bottom side and vice versa. So, I could imagine that depending on your library your auto router has thought of this. \$\endgroup\$
    – Maxim
    Commented Apr 5, 2021 at 8:42

7 Answers 7

16
\$\begingroup\$

Here's some advice - never use an auto-router until you have had several years experience in designing circuit boards. If I were to tell you what to do based on my own experience (many years) my advice would be simply: NEVER use an auto-router. I've never used one in decades of designing many printed circuit boards and so you, as a beginner on this (maybe) shouldn't be considering it as an option.

Do you have any particular advice for components placement or routing?

  • Spend more time on placement than routing. Time spent on placement saves you time on routing and delivers a better design.
  • Always use a double sided board as a minimum and make sure you have a ground plane that is minimally affected by connection tracks from the top having to enter the ground plane side in order to cross other tracks on the top layer.
\$\endgroup\$
1
  • \$\begingroup\$ Definitely. Place first, route later. If the placement is done correctly, there's barely any routing left. When in doubt, try again. And again, again, again... Placement and routing can easily take a very long time the first 10 or so attempts. It takes some practice. \$\endgroup\$
    – Mast
    Commented Apr 6, 2021 at 12:52
25
\$\begingroup\$

It appears that your autorouter is using one layer for north-south traces (red) and another for east-west traces (blue).

enter image description here

Figure 1. This side of the board is almost all north-south routing. The east-west routing will be done on the other side. Image source: Advances in printed circuit boards.

This is a sensible strategy as it is an easy design rule for a human or autorouter to follow. It also means that future additional north-south traces won't run into obstructions that require re-routing or circumnavigation.

Regarding placement advice:

  • Some components such as edge connectors, push-buttons, LEDs, displays, etc. will have pre-determined positions to line up with enclosure holes. Position these first.
  • If manual assembly is to be used then consider component orientation. Don't, for example, put one of ten chips rotated 180° from all the others.
  • The schematic should give you a good indication of what components need to be grouped in close proximity due to the number of traces between them. Work on these as a sub-section of the PCB.
  • Certain components will have recommended PCB layouts on their datasheets and these have to be followed to ensure good performance.
\$\endgroup\$
2
  • 4
    \$\begingroup\$ It's a sensible strategy in general, but absolute overkill for OP, especially since it means requiring an extra layer to be worked. But I get why it's default in the program \$\endgroup\$
    – Hobbamok
    Commented Apr 6, 2021 at 11:40
  • \$\begingroup\$ I don't agree with items 1 and 2 as a general rule: a) in general, it's much more complex to design a dense PCB than to design the mounting holes for the controls and indicators of the PCB on the enclosure. Usually the mechanical designer, if not collaborating closely, gets the mounting holes layout from the electrical designer. b) Often it is much more efficient to orient a component differently, and that's not a problem since there are orientation marks and the assembler could (and should if they have access to it) explore the layout to check everything as they solder. \$\endgroup\$ Commented Apr 9, 2021 at 10:45
6
\$\begingroup\$

Can you tell me the reason why the auto-router has put the traces to J5 and J2 on a different layer (bottom layer)?

Complex boards usually use 2 adjacent layers for signals. Then the auto-router routes vertical traces on one layer and horizontal traces on the next layer. This minimizes cross-talk. Your signals don't cross so it doesn't matter. The auto-router just follows simple rules to get the job done.

Don't use the auto-router for two-layer boards. Maybe use it when you have a lot of layers, after you have a lot of experience.

For a simple two layer board, you usually want one layer to be mostly a ground plane. Route as much as you can on the top, put a few traces on the bottom only when necessary. Fill top and bottom with ground fills.

Don't forget to use wider traces for power and other high-current signals. And don't simply use a table that only considers trace temperature rise, always consider voltage drops as well.

There are plenty of PCB layout tutorials on youtube.

\$\endgroup\$
5
\$\begingroup\$

Can you tell me the reason why the auto-router has put the traces to J5 and J2 on a different layer (bottom layer)?

Because it could. And because, having many options to choose from, it followed a sensible general strategy of using one layer for traces running left-to-right and another for traces running top-to-bottom. For your super simple board this is unnecessary, but as others have noted, if you had a lot more intersecting traces it could simplify things considerably. And the autorouter doesn't know whether or not you're planning to add more components and traces later, so it makes use of the layers it has available to route things in a way that will hopefully make future additions as easy as possible.

Remember that autorouters are tools. They do what you tell them to do and what they've been programmed to do, no more and no less. Contrary to some of the advice given in other answers here, I'd say it's perfectly fine to use them to save time and effort. Just don't expect even the best autorouters to always give you the exact results you want, at least not without careful tweaking of the configuration and routing constraints. Generally you should just use their output as a starting point for manual tweaking, and/or use them to finish up the "boring" parts of the routing after you've done the important and non-trivial parts manually.

Anyway, if you want the autorouter to keep all your traces on a single layer, you'll need to tell it to do so, e.g. by disabling the second layer entirely or just configuring the autorouter not to use it.

Based on some googling, however, EasyEDA doesn't seem to make this as easy as one would expect, as the assumption of having at least two layers available appears to be hardcoded into it. I guess you might be able to kluge it e.g. by filling one layer with a copper pour so that there's no room for the autorouter to put traces there, but I haven't tested this. The alternatives would seem to be either routing your traces manually, fixing up the autorouter output by hand or switching to another program with more flexible layer and routing options.

\$\endgroup\$
0
3
\$\begingroup\$

Autorouters must be instructed in order to do what you want.

You have to input rules.

I've never used one because they put a lot of vias and do odd things.


Put all connectors on one side of the board.

Use 0.2 or 0.25 mm track width for routing signals.

Use 0.3 mm diameter for drill holes of vias.

Use 0.8 mm diameter for copper pad of vias.

\$\endgroup\$
1
\$\begingroup\$

Auto-routers have at least one strategy they use. A very common strategy is to route in one direction (North-South) on one layer, and the perpendicular direction (East-West) on another layer. That way the traces pack in much better, just as lanes on a highway going N-S on an overpass pack together well, and lanes going E-W under it pack together well.

In this case you don't really need what an auto-router can do for you; they're really intended for much denser boards with a lot more traces. Still, have fun playing with it.

Usually you can have it auto-route a single trace; that might be more useful.

Remember that you can use jumpers or zerohm resistors (essentially jumpers), or orient and locate components to minimize trace lengths or make routing more convenient. Usually spend some time moving parts around with connections in 'rubber-band' mode, figure out where connectors, mounting holes (allow for the screw head, the spacer underneath, somewhat-oversized screw heads), etc. go.

\$\endgroup\$
0
\$\begingroup\$

Assuming that the auto router you're using is even capable of laying this out sensibly, you haven't configured it to do the right thing, so let's just forget about that - it'll take less time to do the manual layout. In fact, it should take less time than it'll take you to read this answer, assuming that the components were placed is good locations (they likely aren't!).

What you show isn't a switched-mode regulator, it's just a switched low-side power stage. The layout should be done manually, using large copper fills, to minimize the current loop areas. Since you're designing a component for use in a larger circuit, minimizing the pulsed current loop areas in the system is just as important as in the subassembly you're focused on. It seems to me that your idea is to have flying wires going to J2, J3, J4 and J5. Those wires will act as parasitic inductances and can potentially destroy the components due to inductive kickback. J1 may also be critical since gate drivers usually slew fast, so the kickback on that wire may well break down the gate insulation.

To review your design, we need to see the entirety of the switching regulator circuit, so that the best partitioning of the circuit can be suggested. It is highly likely that the subassembly you're proposing should not, in fact, be a sub-assembly, but rather a part of the larger regulator circuit - or at least the pulsed high current loops need to be on the same board, i.e. the input capacitors, the switches, the inductors, and the load capacitors, all need to be close-by, and the loop area minimization needs to be an integral aspect of the overall design.

TL;DR: Tell us what you're actually designing, since what you show is just a little component of something bigger, and as shown it's unlikely to perform satisfactorily or even at all.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.