4 ms·
I don't like this tutorial. It purports to teach you "what everything on the PCB fundamentally does, and what every single component on your PCB is actually for
by exmadscientist 11mo ago
I don't like this tutorial. It purports to teach you "what everything on the PCB fundamentally does, and what every single component on your PCB is actually for!" but it gets the reasoning for a lot of stuff wrong, sometimes badly wrong. I think every single instance of a component with a numerical value picks the value with a misleading or even completely wrong justification. Even if the tutorial gets to an OK schematic in the end, it shouldn't be teaching shoddy reasoning.
(And the author doesn't seem to understand decoupling capacitors, but most people don't understand decoupling capacitors, including most datasheet authors, so that doesn't surprise me.)
Also, KiCad's "solutions" for BOMs are hilariously, absurdly terrible. But that helps me earn a living, so I can't complain too much....
- randmeerkat 11mo agoDo you have a tutorial that you like?
- exmadscientist 11mo agoI agree with the sibling comment that "How to decide what you need on your devboard" is the tutorial that would be nice to see. This article is trying to do too many things at once (design a dev board, baby's first schematic, baby's first PCB, baby's first JLCPCB order,...) and that's really the only one that's novel. The rest of it is standard EE stuff that's covered in a lot of places (with varying degrees of success). As for decoupling, I've written about how to do it in various places scattered across the internet. I should really collect it all in one place one of these days.
- althaine 11mo agoCan you clarify the issues with KiCad's BOM flow?
- exmadscientist 11mo agoWhat BOM flow? It doesn't bloody well have any! At no point in the entire design process within KiCad does this design ever get part numbers assigned for its resistors or capacitors (to pick one thing). That's not acceptable for professional work. A Bill of Materials ABSOLUTELY MUST DESCRIBE THE MATERIALS used in the assembly of the PCBA. Internal part numbers are perfectly acceptable: assigning a generic RES-0402-10k or WIDGETCO-PN987654321 or whatever would be OK by me. KiCAD does not really do this, as evidenced by how this design reaches "design complete" without being... complete. EVERYTHING MUST HAVE AN ORDERABLE PART NUMBER OR INTERNAL PART NUMBER. But the resistors are the easy parts. SMD thick film resistors are basically all interchangeable. Things like the ceramic capacitors (MLCCs) cannot be substituted for each other because they all bloody well behave differently so good luck getting the same behavior if you randomly pick a capacitor vendor on LCSC each time you build boards! That's how EEs get fired, and deserve it. When I generate a build package in Altium, it has complete lists of every part in the design, its MPN, at least one supplier to purchase it, and the SPN for that MPN. (Sometimes internal parts don't have suppliers assigned, but then they're tracked elsewhere in the project or company organization.) There are also assigned alternates in many cases, though they are typically inadequate. Larger projects should use entirely internal part numbering, but that's a real headwind for smaller stuff. All of this comes from a single master part database, plus a project part database, and never gets touched by hand after a library entry's birth. KiCad is so crap at doing this that last month a client literally paid me thousands of dollars to fix up a garbage KiCad design package that didn't have this information properly stored. There are several add-ins for KiCad that claim to do BOMs better... but it's not standard, so if you don't document what you did and how (which you do not have to do in real CAD software, because it is built in and the CAD vendor documentation plus the years of built-up lore will cover you!) it may as well not exist. Certainly it didn't exist in any sort of usable form for this project.
- wronex 11mo agoI don’t think you’ve used KiCAD. Simply add an MPN attribute to your component and that is it. Use the built in BOM editor and exporter. Done. There are certainly ways to misuse any advanced software. But it definitely can and will produce a complete BOM without additional add-ons. Grated, the exporter is limited to CSV files. So I’m guessing your workflow requires something more interesting?
- exmadscientist 11mo ago> Simply add an MPN attribute to your component and that is it. No, that's the problem, right there. KiCad doesn't have a parts library. KiCad has schematic elements you can manually tack parameters on to. And everyone does it slightly differently! There's no way to have a set of parts you can select from that are guaranteed-approved (because we used them previously or whatever). There's no way to have the software just show you the entire E24+E96 series of standard 0603 resistors so you can just grab one and go and know that it's orderable. There's no way to be able to get that confusing series of diode footprints and orientations right once and store it forever so the software gets it right for you from now on. (Diodes are the worst. At least Panasonic got out of the diode business. And, yes, I was thinking of their product line when I said that.) Yeah, sure, you can do anything by tacking parameters on schematic components. Sometimes you even have to do that. Just like programming in assembly: there's no job it can't do. But sometimes you really need a little bit more, right? And that's notwithstanding the fact that many people who use KiCad, like our article author here, don't even bother to tag parts with an MPN parameter! That's a cultural issue, but it is one the software can and should be pushing back on.
- wronex 11mo agoThe nice thing with KiCAD is that a part is simply a symbol (schematic element) with enough parameters attached. You can specify footprints, MPN, ratings, value, etc. then store it in your approved and verified symbol library for use in all your projects. Use your R_4.7k_0603 symbol an it comes preconfigured with footprint, MPN, rating etc. Making these symbols is a lot of work but very simple. Unfortunately there is no standard name for these parameters beyond footprint, value and some others. MPN, brand, rating etc. are not default. This hinders bigger adoption I think, and makes every project unique. This should be improved.
- numpad0 11mo agoThis reads like the author just wanted to format his ChatGPT-aided build record in a lecture manual format, rather than being an attempt at such material.
- _def 11mo agoWhat do people often get wrong about decoupling capacitors?
- IndrekR 11mo agoFew things for starters: - you have to look at it in frequency domain as well; - speed of light is too slow; - often capacitors are inductors, even more so when mounted on PCB; - capacitance is not what is written on the component. I am teaching this to robotics and computer engineering MSc students. Quite nice intro book into the topic that I recommend to my students: https://www.oreilly.com/library/view/principles-of-power/9780132735568/ https://www.oreilly.com/library/view/principles-of-power/978...
- exmadscientist 11mo agoNot quite a list of fallacies, but some words about how to do it well: Me at eevblog: https://www.eevblog.com/forum/projects/location-and-value-of-decoupling-capacitors-(not-bga)/msg3126270/#msg3126270 https://www.eevblog.com/forum/projects/location-and-value-of... A discussion here a while back (not all of which I agree with): https://news.ycombinator.com/item?id=42830948 https://news.ycombinator.com/item?id=42830948