Why product design industry prefer manual routing over autoroute for designing Pcb layout?

Hi, der.ule

The design in question was done before 1998. I never had personal possession of the layout and I certainly do not have it now. However, it would be straightforward to create a layout which embodies what was done wrong, and another which corrects the errors. I would also need to explain the issue…understanding circuit operation is important. Document this and place the files all into a zip. Note that I am running KiCad version 5.99 and I guess that might work against all others easily opening my resulting files. I guess that someone on this forum might be able to advise or help with converting my files to stable release version.

I guess that all of this might take me 1-2 weeks if there is interest?

I guess that placement is the first thing to get right (after the schematic, the board outline, and the footprints.) But connections can be routed wrong even if placement is good. In my example, the placement was largely dictated by the mechanical design of the product. The second pcb layout was done properly but the first was not.

I was continuing my previous info. So if you:

  • use all bottom as GND,
  • place/rotate components to have no crossing tracks

then it is rather hardly to rout it wrongly.

Two weeks! I am sorry, of course I do not want to cause you that much trouble! I just thought that you were talking about something that you had at hand and I got curious. Thank you

I agree that grounding is the single biggest area of concern, and that a solid ground plane is usually a good bet. But not always, and grounding is not the only area of concern. It is true that in my example grounding was the problem and a solid ground plane would help (but would probably not be the best solution technically.) I am thinking that this pcb had plating on only one side.

I did not mean that this would be anything close to 80 hours of work.

My thinking on this is that the best use of time would probably be a SPICE simulation, including the small amount of pcb trace resistance which was in the wrong place thus caused the problem. I do not have a photographic memory regarding the exact appearance of the pcb, but the SPICE sim might do a good job of getting the idea across to anyone interested. I use Mindi (from Microchip) but I could also provide the schematic and results in a .pdf format so you would not need to run the simulator to see what I am doing.

1 Like

The worst design with 7805 in my opinion is to connect input capacitor far away from IC and connect it to GND near the output of the whole supply and the output capacitor also far away from IC and grounded near the input. Never tried it but till now I assumed 7805 is (by default) stable in all possible to imagine conditions. If connected in such way don’t works properly then my assumption was wrong or such circuit design is out of my imagination :slight_smile:
Coming back to the thread subject. I suppose that if capacitors would be wrongly placed then autorouter could do the connections as I described.

1 Like

Even if the placement is correct, then an autorouter can still add great detours to the wrong tracks.

Autorouters have always been a mixed bag, and I’ve never used them (except for some experiments). For “simple” boards, comparative to for example the nixie tube PCB from EEVblog (see youtube) cleaning up the autorouter mess is about the same amount of work that laying out the tracks “properly” the first time is, especially with the excellent interactive router in KiCad, and it’s push and shove capability.

The area where autorouters get really useful is for boards with many, many connections, combined with an autorouter that be guided to do partial things.
For example even things such as “Break out this data bus from this BGA to the left side”. or “Connect this 32 bit databus between this CPU and that DDR3 chip”.

In such ways autorouters can speed up some “dumb” and “boring” tasks, but they do not have enough smarts to route a whole board.

Things like for example:

  • Star grounding.
  • Thick track to a shunt resistor, and a sense line back.
  • High voltage isolation gaps.
  • Decoupling caps.
  • Sensitive stuff that needs guard rings.

And there are many more considerations to make for a good PCB layout. Think for example about a high power audio amplifier. On the voltage supply rails and the output you have 50V voltage swings and multiple amperes of currents to cope with, on the input side you have a 1V input signal, and you want a dynamic range (noise floor, harmonic distortion, etc) about 120dB lower. That’s 1uV on the same PCB. Combine that with the fact that each copper track has resistance, inductance and a stray field around it, and it’s amazing it’s possible to build such a thing in the first place.

A completely other type of PCB design is in RF design, and one of the most extreme are spectrum analyzers. Look at a teardown of a spectrum analyzer on youtube.

Such a spectrum analyzer is designed with very tight rules in mind, but those rules are very different from the earlier example of an audio amplifier.

SMPS circuits are another example where PCB layout is critical, and an integral part of the whole design. Take a perfect schematic, combine it with a bad PCB layout and the circuit does not work at all.

Because of all these limits of autorouters, and high demands of PCB design, you have to know how to layout a PCB properly first before you can learn to use an autorouter effectively. Just putting some quasi random component placement into freerouter and letting it rip does not teach you anything, and you will without doubt make errors in the first component placement. And without learning, you will keep repeating the same errors in later PCB’s you design.

If you do the routing manually, then your intimate interaction with the PCB you are making will reveal errors in the component placement, you will correct them and learn from it, so you make less errors in in the next PCB. Designing a PCB properly is a puzzle, and it requires a certain way of thinking that you can only learn by doing it yourself.

On top of all that you have EMC regulations, “Design for Manufacturing” and other considerations. Designing a proper PCB is much more then “connect A to B, and repeat until done”, which is sort of the only thing autorouters can do for you. Designing a proper PCB is an art and requires skill and experience, and you will not get the experience by using an autorouter.

5 Likes

Here’s an example of one IC + external components: bq25886, a Boost-Mode Battery Charger (nothing fancy nor overly specialized as a component or as an application IMO).

bq25886.pdf (3.8 MB)

Take a look at section 11.1. What kind of autorouter could satisfy those requirements?

The switching node rise and fall times should be minimized for minimum switching loss. Proper layout of the components to minimize high frequency current path loops is important to prevent electrical and magnetic field radiation and high frequency resonant problems. Here is a PCB layout priority list for proper layout. Layout PCB according to this specific order is essential.

  1. Put SYS output capacitor as close to SYS and GND pins as possible. Ground connections need to be tied to the IC ground with a short copper trace connection or GND plane.
  2. Place PMID input capacitor as close as possible to PMID pins and PGND pins and use shortest copper trace connection or GND plane.
  3. Place inductor input terminal to SW pins as close as possible. Minimize the copper area of this trace to lower electrical and magnetic field radiation but make the trace wide enough to carry the input current. Minimize parasitic capacitance from this area to any other trace or plane.
  4. Decoupling capacitors should be placed on the same side of and next to the IC and make trace connection as short as possible.
  5. Route analog ground separately from power ground. Connect analog ground and connect power ground separately. Connect analog ground and power ground together using thermal pad as the single ground connection point. Or using a 0-Ω resistor to tie analog ground to power ground.
  6. It is critical that the exposed thermal pad on the backside of the device package be soldered to the PCB ground. Ensure that there are sufficient thermal vias directly under the IC, connecting to the ground plane on the other layers.
  7. Via size and number should be enough for a given current path.
2 Likes

Job Security! :slight_smile:

Last night I ran some simulations of the basic linear power supply. Microchip (supports this free version of Simplis/Simetrix simulator) did not include a 7805 linear reg model, so I used an LDO they had. This all ran well before I introduced the undesirable trace resistance. With the added trace resistance, the LDO model oscillated and I could not easily fix that. (The 7805 regulator did not oscillate in the real world.) I think I can import a 7805 SPICE model from somewhere. I have done this sort of thing previously but I am not a simulation expert and I don’t remember what I did…may need to figure it out again. I think I had to fix some minor issues in the text file to get an imported model to run in Simetrix.

LM7805 has a darlington NPN transistor on it’s output, and this is an emitter follower.
Low Drop regulators have an PNP transistor on their output to make the voltage differential lower. This is a completely different setup, with different rules for loop stability and you can not expect to have sensible results if you arbitrarily exchange them in simulations (or real life).

For example:
Low Drop Regulators tend to have some issues with high capacitive outputs, and often need a minimum ESR to work properly. They work OK with electolytics, but can oscillate with Tantalums or high value ceramics or polymer Elco’s.

1 Like

Hi, Paul

Yes I am generally familiar with much of what you are saying. But…the original hardware did not oscillate, and behavior I am trying to reproduce is not related to instability. There is a (2 * AC Line frequency) current component in the DC output of the bridge rectifier. This causes a corresponding voltage drop waveform in copper traces which the current passes through. In a good design, the regulator should nicely reject this ripple and the output voltage ripple should be in the low mV peak-peak or less. But a bad pcb layout can greatly increase the output ripple, especially at full load current. So in my simulation if I get oscillation that is something I need to fix…

It is funny how sometimes something which ought to be easy turns out not to be; and sometimes vice versa. I spent a little while today trying to find an easy behavioral SPICE model for a 7805 regulator…have not found it yet. So instead, I took a different Microchip LDO model, rated for 150 mA. Then my simulation circuit added a PNP booster transistor. In the “clean” design, the 200 mSec simulation ran in maybe 2 seconds and worked nicely, producing a clean 5V output. Then I inserted the 10 mOhm trace resistance, and the simulation run is maybe 60% finished after about 4 hours! :frowning: I am expecting another dismal failure and I would quit it if anything were pressing, but nothing else is urgent and I am being patient for later tonight to see what garbage the simulation will produce. I will then bid goodnight to my darlington. :slight_smile:

It depends upon the LDO. Most of the newer types are designed to work with ceramic output capacitors. I think that a 7805 regulator (which is not an LDO) is NOT designed to work with a very low ESR output capacitor. But one of the things I tried was adding some ESR in series with my output capacitor. This did not seem to help.

LM7805, ua7805, KA7805 and a whole bunch of others are all different internally, though they have similar functionality. The big Ceramics and very low ESR polymer caps did not even exist when the 7805 variants were designed, but the emitter follower topology is much less prone to oscillation.
This is what a datasheet of a Motorola LM317 says about output capacitance:

Although the LM317 is stable with no output capacitance, like any feedback circuit, certain values of external capacitance can cause excessive ringing. An output capacitance (CO) in the form of a 1.0 μF tantalum or 25 μF aluminum electrolytic capacitor on the output swamps this effect and insures stability.

More generally I simply do not trust simulators for stuff like this. How do you verify if the spice model you use is even close to the real thing on these parameters?

I Once spent over an hour to find a working model of a NE555 for simulation in KiCad / NgSpice. The youtube tutorial I found was: Install this commercial Simulation program, and then steel the spice models from it, which I did not find acceptable.

This feels like a total thread hijack.

Yes I suppose I agree!

I agree again. And I will plead ignorance regarding differing internal architecture of the 7805 variants. But I think that any of them (if they do not oscillate) would produce high 2x mains frequency ripple if connected as the subject matter was connected. Just don’t call any of these LDO’s (Meaning low drop out (linear regulator). I am not saying that you did but some people do so.) These devices typically require Vin-Vout > 2.0V so they are the definition of a (NOT low dropout) linear regulator.

I have come to disdain the NE555. Any time I consider using one, I find I can do better with 1 or 2 comparators.

In our first product (1988) I used NE555 as a DCDC controller to convert 5V to VPP (12/21/25V) voltage for EPROM programming.
In my opinion it’s a brilliant IC. Of course it contains not a lot more than two comparators.

Why product design industry prefer manual routing over autoroute for designing Pcb layout?

Look at it like this, anyone can press the autoroute button, not many can lay out a design well.
If you are wanting to be employed in the role of PCB layout, what can you offer that a computer can’t

2 Likes

Hi, Piotr

EDIT: It looks like the forum website has issues down for a while, up, down again?

I guess that your voltage conversion might have used the NE555 to drive a charge pump? Or did it work as a controller in the strict sense…driving an external power switch?

I recently used an inverting low side gate driver as a power oscillator to drive a charge pump producing -5V from +12V. This oscillator would free run or synch to an incoming 300 KHz clock. Perhaps a similar “trick.”

Bob Zwicker

Even when it was up I could’t login - Unknown error was reported.

It was driving external BD137 NPN as switch in clasical step-up. As I remember there were two possibilities (I have read about) to give feedback to it - to pin 5 or to reset pin. I don’t remember which way I used.

I have now attached a zip file which includes a simulation of the bad layout. In the end I constructed my own discrete linear regulator to get to my “point”. I think the performance of this sim is reasonably close to the hardware. The zip includes my Simetrix schematic and a .pdf printout of schematic, waveforms, and explanation. The one key thing I did not provide is any sort of layout image, but I think you might be able to reverse engineer this as I can. Open to any further questions; if anyone is interested!

Results of bad linear power supply layout July 07 2020a.zip (170.3 KB)

1 Like

As I understand the question was about bad using standard 7805.

Your schematic is even not similar to 7805. It is more similar to LDO construction.

Hi, Piotr

The core subject is pcb layout, and the hardware issue at hand does not significantly depend upon the internal design of the regulator. I was unable to find an available regulator model which did not oscillate (the original hardware did not oscillate.) But even though the internal architecture of my regulator model is different, its behavior resulting from pcb resistance in the ground leg as shown duplicates that which was seen in hardware with a 7805. So I think I have demonstrated the point I was trying to make. The lesson is that pcb trace resistance can be a problem even with a simple pcb design such as this.

By the way…I do not want to try to manually duplicate the 7805 internal schematic in Simetrix. I might violate a node limit for my free simulator version, but mainly do not want to put that much effort into something which misses the point. However if you can direct me to a suitable SPICE model for a 7805 regulator (probably a behavioral model rather than device level) I can try to import & run it. I will update my post if I am successful at doing this.

I use PSpice very rarely and practically only to simulate passive filters behaviour. Don’t know where to look for 7805 models.
The key difference between your model and 7805 is that there is NPN Darlington used as an voltage follower. So if you do such follower driven from the second transistor of differential pair it would be closer to 7805. I think you can replace the current source used in real 7805 with ideal current source (current - don’t know - may be 1mA, may be 0.1mA).

I am surprised that you are doing anything in this subject. Until we don’t know exactly what was the circuit and what was the problem I think it is waste of your time.