RF + MCU PCB Design Review - Phil's Lab #76

  Рет қаралды 40,135

Phil’s Lab

Phil’s Lab

Күн бұрын

Пікірлер: 111
@andile5945
@andile5945 2 жыл бұрын
This is absolutely outstanding! Thank you for doing these, Phil.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very much for watching - glad you like the video!
@mumumumah
@mumumumah 2 жыл бұрын
Excellent critique Phil - thanks for that, I learned a great deal. And thanks Lukas for the submission - it is always very humbling these sorts of reviews but I believe it has helped many.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Rube!
@oshio9129
@oshio9129 2 жыл бұрын
I'm doing a design with stm32wb55rg, and this was a pleasant surprise! I'm doing a marathon on your videos! great material
@Jihoon0622
@Jihoon0622 Жыл бұрын
I always wanted to see this kind of video, as I want to learn something that every professional engineers naturally know, but not all hobby engineers know. Thank you for this precious contents.
@PhilsLab
@PhilsLab Жыл бұрын
Thanks for watching!
@testboga5991
@testboga5991 2 жыл бұрын
Thank you both! The creator for making enough mistakes to allow Phil to make such an interesting video! Really cool!
@danielbilodeau4701
@danielbilodeau4701 2 жыл бұрын
These are an amazing way of learning tips you might not encounter in every design. I love these videos.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Daniel!
@eleclab4244
@eleclab4244 2 жыл бұрын
More RF content please! Great job Phill 👌
@PhilsLab
@PhilsLab 2 жыл бұрын
More to come! Thank you :)
@Haellsigh
@Haellsigh 2 жыл бұрын
For the 32 MHz crystal, the MCU probably has an integrated capacitor bank which he planned on using. It's becoming really common with newer microcontrollers.
@PhilsLab
@PhilsLab 2 жыл бұрын
Ah that makes sense! I hadn't seen that in STM32s before, so that's pretty awesome.
@isaacclark9825
@isaacclark9825 2 жыл бұрын
Cool. I never heard of that. That's worth this month's internet fee.
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
That feature is great to hear about! Are the capacitors selected by programming fuses? To dial these in, I guess making use of the "clock out" pin would be a great help.
@Mr.Leeroy
@Mr.Leeroy 2 жыл бұрын
great timing to start introducing features that take up large areas of silicon real estate that is already pretty much at at gold value.
@pcbworks
@pcbworks Жыл бұрын
That makes sense! They (the caps) are not even drawn in the schematic of STM32WB reference design and I was investigating the reason until see this. Thanks
@certified-forklifter
@certified-forklifter 2 жыл бұрын
One of my favorite series, I love watching and learning them. Thank you so much!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you - glad to hear that :) Design review videos should be coming once per month.
@dymastro788
@dymastro788 2 жыл бұрын
@@PhilsLab That's awesome!! Looking forward to them!!
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
Again a great video Phil! These videos fill a very valuable role, in a world where ever more of us are working individually, and don't hang out at an office with the opportunity to look over colleagues' shoulders, or have informal incremental chats to resolve some of these more subtle details, or simply to become aware of them. Well done!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you very much, Graham!
@BusyElectrons
@BusyElectrons 2 жыл бұрын
This was very helpful. Thank you for taking the time to share.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks for watching, Jeff!
@estranhoecurioso9475
@estranhoecurioso9475 Ай бұрын
Thanks much for this review. Content like this is what i need to take my hobby to the next level.
@Sovvyy
@Sovvyy 2 жыл бұрын
Super helpful video - well explained. Thanks to your viewer for sharing their project too :).
@jakobhalskov
@jakobhalskov 2 жыл бұрын
So much useful and practical to learn from this! It is great content to keep my engineering brain going while being on sick leave. Thanks again Phil :)
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you, Jakob - hope you recover soon :)
@irgski
@irgski 2 жыл бұрын
Nice review! Not many ppl would take the time and effort to do such a thorough design review. Very informative.
@GiorgiAptsiauriX
@GiorgiAptsiauriX 2 жыл бұрын
This semester we are going to use WB MCU for an IoT project. This is priceless for me.
@lukaswalczak93
@lukaswalczak93 2 жыл бұрын
Hey Phil, thank you very much for reviewing my design. I would like to mention a couple things. 1) The reverse polarity diode actually was a shotkey diode, so no problems with the ams1117. Also, the reference design does also not specify load caps for the crystal. I had no problems with it. Even probing the signal was no issue, because the drive strength on HSE is quite high. 2) I took the schematic symbol and parts of it from a reference design. I later realized, that it got pretty messed up. 3) The ws2812b actually works pretty well on 3.3v. I tested this thoroughly beforehand, but i guess it is not good practice to assume this. 4) The stm32wb55 actually have all the same pinout on the same packages, that's why, the exact model number does not matter too much. 5) I only fitted one of those 10n capacitors on the RF line, which is kind of a low cost RF switch. I would never fit both caps, due to the reasons you mentioned with the impedance. 6) Because of the small PCB size, I had trouble to get the layout done on S GND GND S stack up and because my design does not need to fullfil any EMI specs, I thought this would be fine. 7) Filling the top layer with GND was certainly a mistake. However, the Bluetooth performance is even better than on my evaluation boards. But that's probably due to a higher antenna gain and a filter, which is specifically designed for these MCUs. 8) You actually moved my parts, so the silkscreen got moved as well :D 9) These USB C sockets are a nightmare to route. I also did not find a 3d model, the SMD one was the best I could find. 10) The reset switch is on purpose that big. I wanted to be able, to easly reset my oven with a big button on the front panel, because I work with 230v and I didn't want a bug to mess things up. 11) Adding flyback diodes is important, added them later on the loads. Maybe, these points clarify some issues, which were not entirely clear by looking at the design. I am using this oven really often, and the controller works beautifully, even though I certainly missed critical points :)
@Efedeacheese
@Efedeacheese 2 жыл бұрын
Yeah! Some parts could have done it better (like the usb routing), thats how it is, but other aspects are a little too analytical on the review. Also, deadlines are another constraint in this kind of project! You cant spend a whole year finishing the schematic up to it most minor detail. Especially when you are the circuit, pcb, firmware and mechanical designer. Leave aside BOM management. Sometimes you just make mental notes and keep on working on another stuff or else project is going to be finished by 2080. Specially when you are workin on a open source project (ie: mostly non-paid work) I think you did a great job and the reviewer is being analitical in order to help others in their designs and share knowledge. I know you havent (and i wouldnt) take the review as a critique. Kudos to you for the job and Phill for the review! Good job both of you!
@xxbatman69xx98
@xxbatman69xx98 Жыл бұрын
Question, did you learn how to make a pcb like this in school or was this something you just have to learn outta school?
@_a_x_s_
@_a_x_s_ 2 жыл бұрын
That’s great. Learnt quite a lot. Thanks for the video! For the trace where the width changes, the copper pour under the wider trace can be masked to maintain the impedance consistency.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thank you!
@jj74qformerlyjailbreak3
@jj74qformerlyjailbreak3 2 жыл бұрын
This video earned you a sub. I learned more just from your vocabulary. Very pleasing. Maybe I’m weird. God Bless.
@EfraAv
@EfraAv 2 жыл бұрын
I love this series. Looking forward for the next chapter
@bartek153
@bartek153 2 жыл бұрын
Great review Phil. Enjoyed that one :)
@antenehtadesse8577
@antenehtadesse8577 2 жыл бұрын
keep it up Phil, I really like your point of view and learning from it, so I thank you for it✌
@isaacclark9825
@isaacclark9825 2 жыл бұрын
I am In the process of reviewing a couple of my own MCU PCB. I am glad this video came when it did. I will be re-doing parts of the layout. I would moderate the suggestion to keep all of the MCU stuff on one page. Once the pin count gets high, I think it is practical to partition the pins based on functionality and put some of those functions on separate sheets. I found that idea to be nearly mandatory practice on a 144-pin MCU project. Perhaps do a hierarchy if it gets that complicated?
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Isaac! For larger MCUs/ICs - yes, I also split the schematic over several pages. But for something as small as this project, I'd keep the MCU stuff on one page.
@Program2live
@Program2live 2 жыл бұрын
@Phil's Lab Really helpful as always! Question: If you have a sig, gnd, gnd, sig stackup, is there a benefit to creating gnd fills on the top/bottom layer to surround critical low speed GPIO lines?
@andymouse
@andymouse 2 жыл бұрын
Wondered myself.
@bozodragojevic
@bozodragojevic 2 жыл бұрын
I'd imagine it'd be better to create power fills so you get some extra capacitance.
@timknapen
@timknapen 2 жыл бұрын
Great review and full speed too! I enjoyed this.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Tim!
@stargazer7644
@stargazer7644 2 жыл бұрын
6:41 he might not have used a schottky diode symbol, but he has a part number, and that is a schottky diode part. The AMS1117-3.3 needs a Vin of 4.8V, which is a problem with a 0.55V forward voltage drop
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
Agreed on the diode. Regarding the AMS1117-3.3 Vin requirement, it looks to me like the Vin-Vout differential needed is more like 1.1 or 1.2V, based on not very high load current. So should operate off 4.5V (not accounting for the diode).
@Mr.Leeroy
@Mr.Leeroy 2 жыл бұрын
minimal dropout voltage is internal reference voltage + int amp offset + safe margin (which has to be non zero to even make sense of using LDO in the first place) + current based margin + tempco drift. So your 5v rail to give 3.3 linear outuput either has to be compensated for Vdrop (like 5.2V on USB chargers) or designed bang on with particular load level in mind. To use such a simple LDO that is.
@bren4642
@bren4642 2 жыл бұрын
Lots of great info on this review! Agree with the antenna config, you probably only intend to use either/or, but IMO it's unnecessary to use an RF switch unless; you have a spare GPIO, you are not board space confined, you can swallow the extra cost and the device use-case is to switch between internal and external antenna in operation (unlikely here). Instead, I'd recommend using either a 'shared pad' 0R pop option or a u.FL with an integrated switch in series with the RF trace.
@RedlabsTV
@RedlabsTV 2 жыл бұрын
Thanks for explaining your thoughts. Very interesting!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks for watching!
@badarjahangirkayani6196
@badarjahangirkayani6196 2 жыл бұрын
Awesome review. So helpful. The silk screen was messed up a bit because you were moving components around, I think that caused it to look funny.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks! Whoops - I should've moved the components back before commenting on that, good catch :)
@1over137
@1over137 2 жыл бұрын
the ws2812bs usually work fine on 3.3V data . to be sure a TTL bus interface chips are dirt check to step it up.
@sukotka1521
@sukotka1521 2 жыл бұрын
You say that you could get away with only 1/3 of the stitching vias. I understand that that is a minimum? So the additional vias aren't harmful?
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
Correct. Aside from wearing out the drill bit!
@PhilsLab
@PhilsLab 2 жыл бұрын
Exactly, as Graham also already has noted.
@breedj1
@breedj1 2 жыл бұрын
Again a great video. I find the schematics symbol of Q1-Q5 rather interesting though. I've never seen that in KiCAD. I expect the arrow to point to the gate for an N-channel mosfet
@ahmedalshalchi
@ahmedalshalchi 2 жыл бұрын
Really prof engineering job ... Thank you Phil ...
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Ahmed!
@mrechbreger
@mrechbreger 2 жыл бұрын
There are different grade AMS1117 out there I test quite a bunch of them some time ago... I'm sure there are some which work and some that won't for this design. The difference from one to another which I have seen is quite something.
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
Very interesting! Was the variation outside the variation allowed by the datasheet, and did datatsheets vary across manufacturers?
@cortxt
@cortxt 2 жыл бұрын
Just about the WB2812 I have it working great in a board with Vdd = 3.3v according to the datasheet min is 3.5v but well it work with 3.3v too, for experience, with the Vi note that Vdd min can by 3.5v it means that you can have a high of 2.45v at least
@mortezaghorbani7927
@mortezaghorbani7927 2 жыл бұрын
great video, for future reviews please review the power electronic devices layout too
@prashkd7684
@prashkd7684 Жыл бұрын
This is inspiring.. I may submit my ongoing project for review i.e. if i can finish it : )
@7alfatech860
@7alfatech860 2 жыл бұрын
Hi Phil, any comments on the perimeter trace on the top and bottom of the board? Is it useful, harmless, etc?
@PhilsLab
@PhilsLab 2 жыл бұрын
Hey, I'd say in most cases it's harmless and can be useful to supress 'edge-fired emissions' and for general shielding. This is of course if the stitching is done properly (1/20th wavelength of f(max)).
@7alfatech860
@7alfatech860 2 жыл бұрын
@@PhilsLab 👍
@SlimyRedstone
@SlimyRedstone 2 жыл бұрын
At 5:10, I can confirm that powering WS2812 LEDs at 5V, you can communicate at 3.3V from the microcontroller, but I think this is working at their bare limit even though I have never got any problem working with them
@BrianKPepin
@BrianKPepin 2 жыл бұрын
If there is a voltage drop due to the protection diode at the power supply 5v is really about 4.3v which puts the minimum signal here at about 3.01v, which is within tolerance.
@turneroq9888
@turneroq9888 2 жыл бұрын
I can confirm this is true. Such LEDs can work well with 3.3V communication. LEDs were powered from Lab PSU with strict 5V power
@Mr.Leeroy
@Mr.Leeroy 2 жыл бұрын
still a bad practice and a wishful thinking to rely on out of spec quirks.
@ramimehyar481
@ramimehyar481 Жыл бұрын
Can you please explain ur point with the zero ohm resistor in path of the rx/tx lines in case something happens?
@kimscheibel2248
@kimscheibel2248 2 жыл бұрын
Or you can power the addressable LED with 4.7V, which puts the control level in range at 3.3V, no?
@lattebois5934
@lattebois5934 2 жыл бұрын
Hello Phill. I have a question, which is, should I make copper ground pour on the top and bottom layer of the 4-layer PCB? What is the benefit of both varieties?
@nhlakaniphombatha5769
@nhlakaniphombatha5769 2 жыл бұрын
PHIL IS. THE MAN 💪💪💪💪...❤❤❤......
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks :)
@teslatrooper
@teslatrooper 2 жыл бұрын
I've been wanting to make a design with a Silabs RF microcontroller but put it off because I thought the RF part would be complicated. Thanks for this review showing may not be as hard as I thought. Also I've been using those WS2812's with 3v3 signals for a while, it may not be in spec but in my experience they work fine. A simple solution could be a diode in series to lower the VDD to around 4.3V allowing for a signal high voltage of 3V, the diode on the +5V input might already be enough for that. A 32MHz clock source is recommended for at least some of the STM32WB controllers and they have internal programmable capacitance.
@spehropefhany
@spehropefhany 2 жыл бұрын
Another option for the LED is to pull the data pin up to 5V and run the GPIO open drain, *assuming* the GPIO pin is 5V tolerant. That works on the STM32F401 for interface with a asynch serial device.
@longzhao8778
@longzhao8778 2 жыл бұрын
why does the stitching via distance around the RF need to be 1/20 of the wavelength?
@gmendes1831
@gmendes1831 2 жыл бұрын
Thanks for share.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks for watching :)
@CuriousMaker609
@CuriousMaker609 2 жыл бұрын
I really liked the video and found it informative. If you think your video is too long, why not split it into parts? It also seems like you are rushing to keep your video short. I would love to hear more about the nuances in the aspects that you are reviewing in your video.
@Himmelstrutzable
@Himmelstrutzable 2 жыл бұрын
Very good, once again!
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Joakim! :)
@sampathranaweera3702
@sampathranaweera3702 2 жыл бұрын
Can you make one for the soft stuido trail
@benjamincrall8065
@benjamincrall8065 2 жыл бұрын
While the WS2812Bs don't state 3.3v support, in my experience they have always worked with 3.3v signals and 5V power.
@hgo31079
@hgo31079 2 жыл бұрын
Thanks for this, I really learned alot, don't know if I can get my board review too.
@PhilsLab
@PhilsLab 2 жыл бұрын
Thanks, Hassan - sure, just share your design (via WeTransfer) via my website (phils-lab.net).
@hgo31079
@hgo31079 2 жыл бұрын
@@PhilsLab ok
@MrJK193
@MrJK193 2 жыл бұрын
There is WS2812B Ver. No.:V5 which does not need 100n cap.
@JakubKraus0
@JakubKraus0 2 жыл бұрын
Yep, and also accepts 3.3V input per spec as well. The connection in this design is fine with V5 LEDs, and it's quite possible he received V5 LEDs without knowing, so it works, but would be good to note it in the schematic
@pcbworks
@pcbworks Жыл бұрын
Perfecto!
@saha2202
@saha2202 Жыл бұрын
Youre a genius
@huynhngocthienvuong541
@huynhngocthienvuong541 2 жыл бұрын
great!!!
@paulrnash
@paulrnash 9 ай бұрын
Nice review, but you nicked him for silkscreen under components, highlighting the crystal load caps that *you* hastily rearranged… 😂
@PhilsLab
@PhilsLab 9 ай бұрын
True haha.. sorry about that :D
@ExplodingWaffle101
@ExplodingWaffle101 2 жыл бұрын
23:52 What’s the issue with bias being too close to pads? I always thought it was fine to have the via tangent to an SMD pad, or even to have the via drill tangent to the pad- lower impedance and all that. (obviously this design is not exactly space constrained. and usually I place vias on the same 0.5mm grid as components so this isn’t an issue. still curious though)
@MSP_TechLab
@MSP_TechLab 2 жыл бұрын
As Phil said it can cause solder leaking. If via is too close to pad it can "suck" solder during soldering process which can cause bad joint between pcb and smd part.
@km-electronics1
@km-electronics1 2 жыл бұрын
Also, you will be charged more for the PCB if the fabricator considers them as "via in pad".
@Kefford666
@Kefford666 2 жыл бұрын
@@MSP_TechLab Solder wicking
@swayamgupta6356
@swayamgupta6356 2 жыл бұрын
Foreal man.
@rezkybelianto6216
@rezkybelianto6216 2 жыл бұрын
Ive watched tNice tutorials a couple tis and i tNice tutorialnk the key is to slow the video down to .75. TRY IT!!!
@yuventussellyullu3795
@yuventussellyullu3795 2 жыл бұрын
bro Usually the components in each MCU, what am I?. Please reply
@tamaseduard5145
@tamaseduard5145 2 жыл бұрын
👍🙏❤
@jhonchirstofer1895
@jhonchirstofer1895 2 жыл бұрын
Hi
@PhilsLab
@PhilsLab 2 жыл бұрын
Hello :)
PCB Vias 101 - Phil's Lab #77
17:01
Phil’s Lab
Рет қаралды 54 М.
Critiquing My Own PCB Designs - Phil's Lab #43
24:54
Phil’s Lab
Рет қаралды 50 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 9 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
Linux Kernel 6.12 | This is Historic
1:07:22
Maple Circuit
Рет қаралды 92 М.
BGA PCB Design Tips - Phil's Lab #95
28:21
Phil’s Lab
Рет қаралды 40 М.
FPGA PCB Design Review - Phil's Lab #85
33:13
Phil’s Lab
Рет қаралды 31 М.
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 442 М.
I2C Hardware & PCB Design - Phil's Lab #132
34:50
Phil’s Lab
Рет қаралды 45 М.
Mixed-Signal Hardware/PCB Design Tips - Phil's Lab #88
18:20
Phil’s Lab
Рет қаралды 45 М.
Top 5 Beginner PCB Design Mistakes (and how to fix them)
12:52
Altium Academy
Рет қаралды 238 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 219 М.
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 9 МЛН