KiCad 6 STM32 PCB Design Full Tutorial - Phil's Lab #65
Вставка
- Опубліковано 19 чер 2024
- Complete step-by-step PCB design process going through the schematic, layout, and routing of a 'black-pill' STM32-based PCB including USB in the new KiCAD 6. All the way from schematic creation, through to two-layer PCB layout and routing, as well as sending it off for manufacture and assembly via JLCPCB.
Mixed-signal hardware design course: phils-lab-shop.fedevel.education
[SUPPORT]
Free trial of Altium Designer: www.altium.com/yt/philslab
PCBA from $0 (Free Setup, Free Stencil): jlcpcb.com/RHS
Patreon: / phils94
[LINKS]
GitHub: github.com/pms67
[TIMESTAMPS]
00:00 Introduction
01:26 What You'll Learn
(Schematic)
03:54 STM32 Microcontroller, Decoupling
15:01 STM32 Configuration Pins
21:15 Pin-Out and STM32CubeIDE
26:59 Crystal Circuitry
30:49 USB
33:57 Power Supply and Connectors
42:54 Electrical Rules Check (ERC), Annotation
49:25 Footprint Assignment
(Layout)
52:11 PCB Set-Up
57:03 MCU, Decoupling Caps, Crystal Layout
01:03:15 USB and SWD Layout
01:06:37 Changing Footprints, Adding 3D Models
01:09:38 Switch and Connector Placement
01:12:11 Power Supply Layout
01:14:50 Mounting Holes, Board Outline
(Routing)
01:19:54 Decoupling, Crystal Routing
01:24:10 Signal Routing
01:27:26 Power Routing
01:32:45 Finishing Touches, Design Rule Check (DRC)
01:35:21 Producing Manufacturing Files (BOM, CPL, Gerber, Drill)
01:39:44 Outro
ID: QIBvbJtYjWuHiTG0uCoK - Наука та технологія
Incredible. I had to spend 10 years in industry *plus* Engineering school to learn all of this, soup to nuts. And, now, here it all is, presented for everyone to learn in an easy to access, concise format. Thank you again, Phil!
YEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!
Couldn't have said better
AWWWW YESSS AWWW YESSS DADDY AWWW 😩😩😩😩
@@ahmedosman4658😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊
@@benjamin4321nah bro you gotta go
Ive been routing PCBs since 1979, using tape, then CAD - this was one of the best tutorials I have seen. Thank you for sharing.
Thank you very much, Stuart!
Thank you for making the course free Phil! You are amazing.
You're very welcome - thanks for watching :)
do we get certificate upon completion of this course?
@@maazsiddiqui6324lol….
It'd be much harder to get involved in designing your own PCB without videos like this.
Thank you Phil!
Thanks for watching - glad you liked the video!
Original two videos really helped me to start with PCB design. Specifically, I like about these videos that they end to end from design to manufacturing. I think, this completion is really important specially for beginners. Thanks!
Thanks, Sergey - glad to hear that!
Woohoo! Made it through! Thanks! I plan to review it later when actually making a PCB. Hopefully making a PCB soon!!!
It's nice to see your credentials in the video. It's something I miss in a lot of videos. I think most people don't mention this because they they want to be humble but I find a lot of value in knowing someone's background. A scientist will have a different perspective than a hobbyist and a hobbyist will have different perspective than someone working in the industry. Someone designing factory floor machinery will have a different perspective from someone designing cost sensitive products. All perspectives are valid and important. it's just nice to know who you're listening to so you can get the best of all worlds.
I know from my experience that:
a) People don't present a reason as to why they should know.
b) What I did over my lifetime isn't random people's business.
c) They would find out eventually if it was important.
d) People tend to label you by your accomplishments and they sometimes make incorrect assumptions, I hate that.
None of those are "wanting to be humble". Also people either are humble or are not, few people are actively wanting to be humble. People either became humble or did not. The process of becoming humble takes effort itself, but that isn't being humble. What I mean is that humble people don't have to actively stop themselves from bragging.
Also it's nice of you to share your opinion :D (even if I wouldn't word it like that, I understand it)
Wow, thanks for making this available!
You're very welcome, Garret!
That was very good and informative!! I have been using KiCad for 6 years now and still learned a couple of things. Wish this had been around back when I started ;) Very concise explanations too, cheers!
I’ve just stumbled across this course and before I knew it and hour and forty had passed. A very good piece of work.
I can't describe how grateful I am for this video. It's filled with content up to the brim and there is no cheap talking. Thank you.
Thank you very much! A data-rich course, requiring many replays of key points, as you would expect for such.
I have wanted to produce my own PCBs for some time but now I have the confidence to go ahead. Thanks again.
Awesome tutorial, I learned a lot. I was especially interested in the way you did the ground planes. I watched another tutorial a month ago when I first started with KiCad that suggested using ground planes on both the back and front, so that is what I've been doing. With that, for most ground connections I've been letting the front ground mask make most of the ground connections, except where space was limited.
I'm currently working on a mixed digital / analog design with a Teensy 4.1 controller board, and plan to go back and adjust a few things based on what I've now learned.
Learnt more from this video than my 2 month microcontroller uni course. Thank you for sharing, will look more into your videos!
Thank you very much for share this course free to everyone, this will help to learn and gain knowledge people like me who can rarely afford to bye it. Big thanks☺
Very helpful. Thank you . I love your guides about these topics, especially the layers too. The button help is nice too.
You are an amazing person! You could have kept the course for a price on udemy but instead you chose to make it free and accessible to everyone. Hats off to you.
I remeber watch the previous versions of this. So glad i found this. Thanks for making it free
If only every datasheet had such a clear step by step guide like this video. Very well done
Thanks a lot, Rian!
Thank you very much, your course is really excellent! There is a ton of very usefull tips and recommandations. Thanks to you, I'm finally on the road to be better at pcb design!
Your videos are amazing, thanks to all of your videos I have been able to produce a functional PCB, is it likely perfect? No! But it's massively better than if I had gone and done it with the knowledge I thought I had! It's not very often that I find someone on youtube that posts video after video of just pure knowledge source, kudos to you, the way you teach is amazing.
Appreciate the UA-cam session.
I often need to re-scale or adopt existing designs - changes to PC board size and I/O port locations (or type).
Possibly you could cover that, as a specific episode, in the future.
You deserve more recognition. Your contribution is essential to all that hope to succeed in the design of a pcb layout.
Thank you!
Built a STM32F078VBTx LQFP100 breakout board based off of this video. This material was hugely informative in that design process. Thanks Phil!
Thanks Phil for sharing your knowledge! Your videos are very useful. Love them. Good luck!
This is amazing and will be an invaluable reference piece. Thank you.
Thanks for watching! :)
These long stm 32 tutorials are what I always look forward to from you. Thank you so much....and I hope you do something about can bus as you promised
Thank you, Brian. CAN bus (among many other topics) is definitely on the list - just need to find more time to finish it I'm afraid...
God! What a good channel this is. I hope I can learn a lot and start designing my own PCB. Thanks a lot for the effort you put into making this content, it's truly appreciated.
Thanks for producing these types of videos, especially with KiCad. Your videos have been very helpful in designing my first PCBs. Hoping to do my first PCB with a microcontroller soon -- when STM32s are back in stock!
You're very welcome. Hope all goes well with your first MCU-based PCB!
Very helpful video, Phil. Especially appreciate the sequential and complete walk-through and the detailed rationale for the various design decisions. Thank you.
Thank you very much, Darin.
Brilliant. Thanks a lot. I am just a hobbyist and have always in the past used EasyEDA due to the autorouting and then proceeded to 'clean up' the obvious shortcomings in the autorouter but I can see, thanks to your video here, perhaps routing myself might not be the bear I always thought it would be by following the basic procedures you outline. 👍
I am a licensed ham radio operator here in the US, but I’ve never done much with the practical application of the electrical theory side of our education. Because of a project I’m working on, and this video, it has really brought to life what had been strictly academic for me up until now! Thank you!
Haven't seen the video yet, but the fact that you've moved it to YT for free gives it a like. Big thanks.
This is an awesome resource, and so well-executed. Thanks for sharing this gratis!
I cannot thank you enough, this video is both a gem and a lifesaver. For years, I've felt lost in electronic design, not being able to break it down, it just wasn't clear to me. You have opened a window through which I finally see a way ahead. If you are not teaching at some school or private electronics club, it's a loss to a lot of people out there, but thankfully you share an amazing content on-line. The only problem is finding out about your channel, once that is achieved, it's a keeper.
I have two questions for you:
1 - Could you consider a video on oscilloscopes, with an emphasis on serial protocol readings and noise reduction? I have done a quick search and haven't found such a video in your channel, and it could be quite helpful for a lot of people, me included.
2 - Do you accept design or review orders? In other words, can someone hire you to tackle those subjects? Or perhaps you could suggest someone you know who would do it. Sometimes there isn't enough time to go through the learning process for more urgent projects, and being able to hire someone that is already experienced would be a massive help.
Many thanks for your generosity in sharing your knowledge, either charging for it or not (which you certainly deserve). There are not many people that I admire, but you are in that list. I wish my teachers would have been able to do such a good job as you do.
Wow, this is a goldmine. Far more useful and to the point than what I learned in college. Will be supporting your patreon. Keep up the amazing tutorials.
Thank you very much for your support, Boston!
Many thanks Phil, for making this free as well as continuing to use both kicad & altium
Thank you for watching :)
Perfect video ! Exactly what I was looking for straight to the point !! Much love !
Hey Phil, thank you for your fantastic videos. I started PCB design as a hobby this year and with the help of your YT videos and your mixed-signal course, I was able to design a class D amp from part selection to production. And I would not have been able to complete the project while learning so much. Without dedicated teachers like you, (and many other great content creators) this would not be possible. Thank you!
Best Fabian
ps: Would love to see a video regarding USB-C standards and PD implementation.
+1 - It feels like a great time to be getting into electronics design and fabrication as a hobbyist, compared to just 5-10 years ago. The EDA software has come a long way, and there are excellent free/OSS products like KiCAD.
The on-demand PCB manufacturing space is getting competitive, and offers low-volume, affordable manufacturing and even assembly services, there are many, comprehensive, online parts retailers that also offer low-volume, affordable pricing.
Fast, low-power MCUs are available in all shapes and sizes, speeds and capabilities, again very affordably, and the OSS/free software toolchains for programming them are just as diverse and powerful.
Finally, the content creator economy has helped produce high quality tutorials like this one from Phil, and many others, that provide the knowledge to wield and utilise all these offerings effectively. It really ties a bow on the whole endeavour, and I can't say enough about how much I appreciate this - and judging from the comments, I'm far from alone!
thanks for making it available free. i was overloaded with things to learn and couldn't afford more courses
I'm in computer science industry for years, but my dream since I was a child is to design and build REAL devices, you can touch, not only a code. This video opened my eyes, what possibilities exist today! My dream will come true soon!! Many thanks Phil for that!
This is now the most important video in my tech play list. I learned so much. KiCad was a mystery to me.
I do think the big pcb manufacturers could do more to make their services accessible.
This is a full on detailed design but often you just want a basic pcb to cobble some components together. After this video I realise you can do that with KiCad but till now I never used pcb services because I didn't know how to.
I am in the process of designing my first MCU board using Kicad 6. My project is not STM32 based, but I still find that this content is still extremely helpful.
What MCU are you using?
@@wiicchooo It's an NXP processor. IMX RT-1021
This is one of the best KiCAD tutorial out there, thanks a lot!
Thank you, Aman!
Thanks for putting this course up on YT. Power packed!
Thanks for watching!
I already know how to do this, but I still like to watch videos like this as both a refresher and to pick up tips on doing things in ways I hadn't thought of before. Thanks for an informative video with no rock concert in the background!
Glad to hear that - thanks for watching!
This video worked out great. I had my first boards made and everything worked great. I am watching a second time months later ( cause I forgot most everything ! ) to make my second board. Thanks.
I was looking into what a Micro Controller was and in 160min of watching this and researching terminology I didn't know, I'm walking away with so much more. Thank you. Subbed.
Thanks, Chaz - glad you found it helpful!
This tutorial is just superb, so much information in under two hours!
Thank you very much for watching, Mick!
thanks a lot, man, this is very helpful, I did get a hardware design job 6 months ago and I was not very knowledgeable on the PCB design field, your videos were very helpful and got me through my first design. very appreciated
You're very welcome - glad to hear the videos have been helpful for your job!
Awesome Phil. What a create tutorial. I come from using Eagle and Diptrace. I noticed Kicad has come a long way in recent years. Thanks for the tutorial. It really helped me out getting started back with this version of Kicad again. I see the community is really large now too.
Thank you! I had to use Eagle at my first job and really didn't like it. Great that KiCad is around and (in my eyes) far more capable!
Very good video that covers all the steps of making a PCB. Thanks..
Such a great learning experience. Thank you so much!
Very cool! I am an old timer. I started with the 8 bit 6502 in 1977 then an Apple ][ computer in 1978. I am now retired but still doing DSP with modern chips. I remember solving diirereential equations on my Apple ][ using Apple Pascal. It would take two days to get a solution .. if convergence to a unique solution!!! Thank you !
I wanted a compact course on Kicad, and you delivered the best in one video. Thank you.
Thank you, glad to hear that!
Really simple and descriptive explanation. Thanks..
Thank you for posting this course. I'm tinkering on an Arduino project that needs a more professional design. This is the solution. 👍The presentation here is clear and easy to follow.
Thank you very much for all of your videos! I have learnt a lot from them.
Wonderful content and very pleasant to watch. Please keep up this great work, as I see it benefit a lot of people!
Thank you very much, Jakob!
Phil, your content is astoundingly useful, first year in EEE here, thank you.
Thank you, Jake!
I had no idea software like this existed. You make it look easy and to be fair for simple it is by the looks of it. I knew the PCB houses existed but never put two and two together for some reason LOL. The end cost is also crazy cheap!
This is so generous. It's truly inspirational.
Fantastic! Thank you for taking the time to make this video.
Thank you, David.
Very nice video, superb narration, clear instructions, not too much detail and not too little, thanks
Thank you very much!
The way you teach this stuff is impressive! highly talented.
Thank you very much, Rami!
Thanks for publishing it!
Wonderful tutorial, Phil. Just the right level of detail for the ambitious hobbyist (and no doubt entry-level professionals) like myself. Really appreciate the effort you put into your content, it's presented very clearly, and I really appreciate the way you explain your reasoning for _why_ you're doing particular things, rather than just saying "do this, because". You've definitely earned yourself a sub from me!
Thank you very much, David!
Fantastic video - this is incredibly helpful!
Thank you for making this free, I learned a lot, thank you again...
CRAZY VID!!!!!! all the steps. Thank you!
Another great vid Phil. Very informative.
Huge thanks for making this great tutorial, Phil! I followed along and ordered 5 of these boards from JLC, and guess what -- they're working! It's such an amazement, considering I've never gone any further from various development boards. Now I'm thinking of finishing one of my little projects and actually transfer it to a PCB!
(Actually I also ordered SMT service from JLC as well, which is a little pricey but saved a lot of fuss. I'm looking to get a hot air station and do my own soldering next up :D )
That's awesome - well done! :) Hope all goes well with your future projects.
oh yeah. getting done programming a high performance CNC general purpose controller, and I'm just using dev boards to interface with the controller. this might be the video that gets me making a PCB for it, which will come in really handy cuz my need for 5v+ outputs has me soldering tens of through-hole transistors in perfboard like a complete goon.
thank you for making these videos man.
why not buy a 3d printer controller and modify it? i suppose there should be open source cnc controller boards too
the same degree as what you finished in, electrical and electronics eng. the way you explain things in these tutorials is awesome, gets curiosity flowing again as opposed to listening to slow mono tone lecturers explaining one thing for two hours straight. Here we can see what were doing and why, and actually have something built. awesome, super helpful
Thanks a lot for your kind comment!
I always look forward to your videos! You are a generous educator!
Thank you very much, Clint!
Thanks for this. I've recently delved into a role where I can no longer afford to be just "the software guy" and this is a huge help. Loved the bit about schematic notes. Very important, especially when transferring tech from one organization to another. A schematic without notes is like code without comments explaining why the software was designed/written as it was, or requirements with no rationale!
Thanks, Scott! Exactly as you say - it's always good to document work properly, regardless of the format (hardware, software, ...).
YAAAY I made my design finally :D
a PCB 3DPrinter probe, that's basically a strain gauge and the HX711 alongside a stm32f0 :)
this was a great tutorial thank you!
Awesome, congrats on your design!
@@PhilsLab Thanks! the parts and shipping sadly got a bit much and I found a mistake in my schematic, but I think I can just fix it with a razor for the first prototype when it arrives!
I'm sooo excited and can't wait for it to arrive!
Excited to follow this tutorial!
Reached the end of the course. Was worth all the time! Thanks again. Can't wait for my PCB to arrive and start soldering!
In today's world of parts shortages, choosing your footprints will probably involve checking to see what size packages the required parts are actually available in. You might for example find that you'd have to go with 08' sized capacitors and resistors because they were not available in the 04' or 06' sized packages. Similarly the microcontroller might be available in a QFN footprint and not a QFTP package. Of course there are certain pad layouts that can fit multiple sized parts. In the case of the microcontroller, it might be possible to 'nest' footprints so two different packages could be fit on the same layout.
The king, I wish I had this video a couple of years ago
Very good useful tutorial, ty phil👍🏻
Thank you very much, your course is really excellent!
This video is amazing. You make it seem so easy
This is the best tutorial on KiCad, it got me started very quickly to design my own pcb. Thank you Phil!
Thank you for watching!
@@PhilsLab Your tutorials are great, I designed my first pcb only based on your UA-cam video's!
Thank you for all your content. You are amazing.
This is one of the best videos I have watched recently. This is what YT should be like
Thank you very much, Fritz!
Bardzo dziękuję. Bardzo wartościowy materiał :)
Regards from Poland :)
Dzięki za oglądanie :)
very beautiful explanation to understand
Thank you so much Phil for this amazing video course👏
Thank you for watching, Nicola!
So many good videos! Excellent job sharing your experience and knowledge. Thanks.
Thank you very much, Neil!
Yeah I'm still a total noob in terms of hardware design (I've designed/ordered one simple PCB for a hobby project so far). This tutorial definitely inspires me to design a whole MCU project from scratch, instead of using boards like the Arduino or ESP32 DevKit V1. I'm building a multitrack MIDI sequencer, similar to the Cirklon Sequentix. I've made a POC with a Raspberry Pi + PCB and am currently working on a version two with an ESP32. Interesting stuff!
Great tutorial. awsome work.
Thanks a lot for this. This is really useful for the fresher eng. student such as me just a day before their practical KiCAD exam.
You're very welcome!
I'm not even a hardware geek, I mostly program and occasionally hack an Arduino, but I watched this all the way through and it made so much hardware design make sense. great video!
Thank you for watching!
Very useful tutorial, Thanks.
Another great Tutorial...cheers.
This channel is a gem! Love your content.
Thank you!
I first came across your channel due to kicad video
Wow, great walkthrough
Thanks for sharing your experiences with all of us :-)
Thank you for watching, Asger!