News for hackers. Stuff that matters.
Re:Teach Me PCB by fho on Tuesday October 05, 2021 @10:59AM (#28760393)
Also: the Autorouter in Kicad is actually pretty useful ... if you use it as a tool, not as a magic problem solving machine.

I normally place components somewhat randomly, big chip in the middle, connectors at the side, small stuff close to where it belongs ... then hit the autorouter, look at the result and move around some components, hit the autorouter again, rinse repeat ...

In the end I'll end up with fairly good looking PCBs (e.g. https://imgur.com/a/rUGtBNa) without having placed a single line myself.

Re:Teach Me PCB by cdcarter on Tuesday October 05, 2021 @12:32PM (#28761716)
Yep, autorouter makes easy work out of hard stuff. Folks who tell you not to use it haven't spent much time using one or are working at a very different level of polish. It's super convenient to draw some important power traces and let the router do its best with signals. If it's taking too long, you start rearranging.
Re:Teach Me PCB by xondono on Tuesday October 05, 2021 @11:17AM (#28760600)
> the Autorouter in Kicad is actually pretty useful...

For most toy projects it’s perfectly sufficient, but once you get into complicated stuff it will bite you back.

Using an auto router is like building your software by copy pasting from stack overflow indiscriminately.

Re:Teach Me PCB by leoedin on Tuesday October 05, 2021 @12:35PM (#28761752)
An autorouter is perfectly fine for whole classes of electronics. As a basic rule, if you'd happily assemble the circuit on a breadboard or with jumper cables and not worry about signal continuity, the autorouter will be fine.

It's only when you get to higher speed or higher currents that an autorouter won't have the context needed to effectively route the circuit.

Re:Teach Me PCB by fho on Tuesday October 05, 2021 @12:46PM (#28761943)
But that's strange, isn't it? Higher currents basically just require wider traces, higher frequencies require very specific trace lengths.

That's nothing that can't be incorporated into an auto router.

Re:Teach Me PCB by leoedin on Wednesday October 06, 2021 @06:10AM (#28771208)
I think I should have added the caveat "with the typical information we give it".

I suspect that if we made enough effort at the schematic stage to properly annotate all the nets and define the types of signals flowing around the board, an autorouter could do a superior job to a human (from an RF emissions and trace current sense).

I've never seen a schematic with that level of annotation though. So as long as the person doing the layout has to use external knowledge of what they're laying out, autorouters will struggle.

In theory you could make EDA software which incorporated a full circuit simulation which was then fed into the autorouter to provide a layout optimised for low-EMI and high efficiency. That would be nice!

Re:Teach Me PCB by hellohntoday on Wednesday October 06, 2021 @12:42AM (#28769283)
Yea - I wish I had the time to write one which understands differential impedence, matched lengths etc.

Perhaps one exists, I don't know as I try to only use open source.

Re:Teach Me PCB by fho on Wednesday October 06, 2021 @05:00AM (#28770751)
I am pretty sure that I saw some ads for a commercial PCB cad program that showed functionality for exactly that.

But yes ... probably not open source.

Re:Teach Me PCB by sokoloff on Tuesday October 05, 2021 @12:20PM (#28761526)
I didn’t get the sense the autorouter was used anywhere near as often as that.
Re:Teach Me PCB by fho on Tuesday October 05, 2021 @12:27PM (#28761629)
I don't think it is ... and I think some it is some sort of "get of my lawn"-ism. I passed a degree in electrical engineering at some point (haven't used it too much after that), and "don't use the auto-router" is basically what is taught from day zero.

So ... while I can't say anything about PCB design in industry ... I can say that I tend to use a auto-router for my small DIY audio projects and it has never really failed me.

And ... if auto-routers are not used in the industry ... maybe that is something somebody on here should "disrupt" ... computers have become just too powerful not to be combative in solving some constraint path finding problems.

Re:Teach Me PCB by sokoloff on Tuesday October 05, 2021 @03:34PM (#28764490)
I tried using the auto-router in KiCAD on my last <simple hobbyist> design and realized that it had been removed from KiCAD.

There was some external package that could do it, but at that point “screw it, I can route this board faster than reading the docs on how to deal with the autorouter” took over, especially since I couldn’t be sure anything I learned for this project would still apply for my next project if KiCAD later re-added an autorouter.

Re:Teach Me PCB by jareklupinski on Tuesday October 05, 2021 @02:13PM (#28763294)
i use the Eagle one at the end of my routing flow:

first drop VCC and GND vias if you're using power planes, then route chunky power traces, route high-speed / differential pairs, finally autoroute everything else

on some boards, only 3-4 signals aren't power or something tight, but for LED Matrix boards with thousands of criss-crossing low-speed signals and other 'fun' projects with hundred of components (keyboards!), the autorouter is really the only way to go if you want to be done in a night or two

Re:Teach Me PCB by voakbasda on Tuesday October 05, 2021 @06:24PM (#28766496)
I loved Eagle until Autodesk bought them and turned that product into a subscription. Now, I’m locked out of my old designs. Fool me once, you’ll never get my money again.
Re:Teach Me PCB by fho on Wednesday October 06, 2021 @05:00AM (#28770752)
Sad but true ... Last time I checked they still had the old standalone hidden on their web pages somewhere ... might be enough to open and convert your projects.
Re:Teach Me PCB by DowsingSpoon on Tuesday October 05, 2021 @04:44PM (#28765377)
Kicad has an autorouter? Are you talking about FreeRouting?
Re:Teach Me PCB by fho on Tuesday October 05, 2021 @05:00PM (#28765562)
Yep ... It's not exactly integrated, but usable.

I feel like somebody could have a academic career based around that