PCB Traces 101 - Phil's Lab #112
30:19
Пікірлер
@BrentKung89
@BrentKung89 14 сағат бұрын
great video! Another tip ill suggest, for 2 layer PCBs when possible use 0805 components as they allow you to run up to two signal traces underneath thus minimizing need for vias
@jp-ny2pd
@jp-ny2pd 16 сағат бұрын
I started learning KiCAD from one of your videos about laying out an STM32 chip with bluetooth. Fast forward 4 months and I've got a prototype board for my project. I ended up having to pretty heavily populate the back side in order to get everything on an 85x85mm board. Do you have any guidelines or rules of thumb for how much PCB area you should guestimate per chip? Like if I have a 68-pin QFN with an exposed pad, should I plan to have 2 or 3 times it's surface area of room on the PCB when placing components? Should it be the square of it's size?
@user-zj5tx8to1x
@user-zj5tx8to1x 16 сағат бұрын
Spc56alxxx which debugger tool need to buy dear how can I contact you pls send it your whatapp or Skype contact number
@daflamingfox
@daflamingfox 17 сағат бұрын
Hey Phil, great video as usual, however, something I noticed with your driver is that I believe that the bit order is wrong. it should be g7..g0, r7..r0, b7..b0, in MSB order. I have a feeling you didn't notice any issues since you were using 255 to test, so all the values for each bit were high anyway, but using any other value gives the incorrect brightness. I used the following and it is working for me with WS2812B leds: uint16_t bufIndex = 0; for (uint8_t led = 0; led < NUM_LEDS; led++) { // for each LED for (uint8_t bits = 0; bits < BITS_PER_LED; bits++, bufIndex++) { // loop through all 24 bits uint8_t byte = (bits / 8) * 8; uint8_t bit = 7 - (bits % 8); uint8_t bitIndex = byte + bit; if ((LED_DATA[led].data >> bitIndex) & 0x01) // If bit set DMA_BUF[bufIndex] = T1H; // set pulse high else DMA_BUF[bufIndex] = T0H; // set pulse low } }
@PhilsLab
@PhilsLab 16 сағат бұрын
Thank you! You are completely right - sorry about that!
@daflamingfox
@daflamingfox 16 сағат бұрын
@@PhilsLab no worries, it happens! I thought I was losing my mind at first. Appreciate everything you do!
@pauladriaanse
@pauladriaanse 19 сағат бұрын
I'm surprised you do power after your signals. Is having power make jumps over signals via the ground plane good practice? (I've been minimizing via's & tracing signals last instead)
@MarkusBurrer
@MarkusBurrer 19 сағат бұрын
Shipping Cost to Germany 650$? Seriously?
@PhilsLab
@PhilsLab 18 сағат бұрын
For 10000 50x50mm PCBs (roughly 100kg).
@Skinkanful
@Skinkanful 19 сағат бұрын
Nice design! Without diving that deep into the design, wouldn't it be easier fir the bigger IC (U1?, left one) was rotated 90°CCW? That way the USB traces would be more direct and it looks like the SPI lines would work fine as well.
@PhilsLab
@PhilsLab 18 сағат бұрын
Thanks! Yes, I tried that but ended up not making too much of a difference - other than increasing some SPI trace lengths and making the XTAL/external component positions a bit more awkward.
@younesthabet
@younesthabet 20 сағат бұрын
On the bottom left of the FTDI chip, there are 3 adjacent ground pins. why not use a polygon to connect them to the decoupling cap? and also why not use a direct connection instead of the thermal relief for the ground polygon pour? isn't it better to remove the soldermask on top of the RF section (chip and traces)?
@leeslevin7602
@leeslevin7602 21 сағат бұрын
Brilliant, thank you! 👏
@PhilsLab
@PhilsLab 18 сағат бұрын
Thanks for watching!
@originalmianos
@originalmianos Күн бұрын
Looking forward to the vid on the pcb antennas. I hope the people in the far east watch it too. I have got a few esp32 boards with chip antennas that seem to be so badly matched no wifi gets out, giving a max wifi range of under 1M. :(
@PhilsLab
@PhilsLab 18 сағат бұрын
Thanks, that's coming soon! Oh wow, that range really isn't great..
@antoniodimeo
@antoniodimeo Күн бұрын
Many thanks Phil: always a wealth of information. Greetings.
@PhilsLab
@PhilsLab Күн бұрын
Thank you, Antonio!
@smith1401
@smith1401 Күн бұрын
I saw that you made this PCB in march this year. I am also currently designing a 4 layer PCB and do want to order it at PCBWay. Currently they are in the middle of upgrading their stack and I cannot find information of the stackup. Could you provide me any guidance which values I should use? Thanks 🙏🏼
@PhilsLab
@PhilsLab Күн бұрын
Do you have requirements for a particular build-up? If not, just go with the PCBWay's standard build and choose the appropriate final thickness for your design.
@smith1401
@smith1401 21 сағат бұрын
@@PhilsLab I do have impedance controlled traces. Therefore I wanted to check what the layer thickness is for each layer for the standard stack-up. But currently I cannot find it on the PCBWay website.
@wolpumba4099
@wolpumba4099 Күн бұрын
Abstract: This transcript provides a detailed guide for designing 2-layer printed circuit boards (PCBs). It emphasizes cost-effectiveness as a major advantage while outlining best practices for layer assignment, component placement, and routing. The guide stresses the importance of maintaining a solid ground plane on the bottom layer and minimizing cuts for optimal signal integrity. Strategies for power routing and RF trace design are discussed, as well as the tradeoffs between 2-layer and 4-layer PCBs. The information presented serves as a valuable resource for engineers seeking to optimize their 2-layer PCB designs for cost, performance, and manufacturability. *Summary* - 3:35 Cost-effectiveness: 2 layer PCBs are significantly cheaper to produce than 4 layer PCBs, especially in high volumes. - 5:58 Design Constraints: To minimize cost, adhere to manufacturer design rules for minimum trace widths, hole sizes, etc. - 8:35 Layer Assignment: Place all components on the top layer and create a solid ground plane on the bottom layer for a clean reference. - 11:27 Component Placement: Prioritize intelligent component placement to minimize trace lengths and jump requirements. - 15:10 Routing Order: Route critical traces (USB, SPI) first, followed by less critical traces. Iterate on placement as needed. - 15:50 Power Routing: Use wide traces for power where space allows, narrowing only when necessary to reach component pins. - 16:51 Minimize Ground Cuts: Keep jumps between layers short to minimize disruption of the ground plane. - 22:36 Ground Stitching: When using ground pours on both layers, add stitching vias to connect them and improve reference. - 23:08 RF Design: For simple RF systems, keeping trace lengths short minimizes the need for impedance matching. - 28:54 2 vs 4 Layer Tradeoffs: 4 layer PCBs offer improved signal integrity and EMI performance but at a higher cost. i used gemini 1.5 pro
@farhantuah
@farhantuah Күн бұрын
Great video & usefull tips. may I know how you make the layout colourful such as pin have different colour, it look cool?
@PhilsLab
@PhilsLab Күн бұрын
In Altium Designer, I assign net colours in the Properties panel after selecting a wire/bus in the schematic. KiCad has a similar option but that's accessed through assigning net classes.
@TYGAMatt
@TYGAMatt Күн бұрын
All my PCB designs have been two layer so far so this is invaluable info. My last PCB worked perfectly using tips and tricks from your various tutorials. One day I will take the four layer jump...
@PhilsLab
@PhilsLab Күн бұрын
Very cool, glad everything worked out with your last design!
@javaguru7141
@javaguru7141 Күн бұрын
Phil, I hope you get all of the sponsorship money in the world. You deserve it. You are the best PCB and electronics learning channel on KZbin, bar none, and I have probably seen them all over the years. You have single-handedly pushed my own level of knowledge forward what would have otherwise taken me many, many years to attain on my own. You have my eternal respect and appreciation. Thank you ❤
@PhilsLab
@PhilsLab Күн бұрын
That's very kind - thank you so much. Very glad to hear that the videos have been helpful!
@WilliamWeller-cz2ul
@WilliamWeller-cz2ul Күн бұрын
You are very talented and smart! Nice video Phil :)
@PhilsLab
@PhilsLab Күн бұрын
Thank you, William!
@rb8049
@rb8049 Күн бұрын
If you keep trace lengths short, then you can just use inductances and capacitances of the traces. If you components have more inductance and capacitance, the the impact is small. But do check values.
@BerettaBoy211
@BerettaBoy211 Күн бұрын
Hey Phil, what’s your opinion on a 2-layer PCB with components on both sides BUT with a ground fill on both sides? Sometimes I’ll use stitching vias as an outline or spanning the entire board, or just relying on a couple vias near ground.
@PhilsLab
@PhilsLab Күн бұрын
At that point I'd move to a 4-layer board.
@patcherandpatch
@patcherandpatch Күн бұрын
Just I am currently developing a platform for CH32V003 ❤️
@javaguru7141
@javaguru7141 Күн бұрын
Will it be open-source? If so, I'd be very interested in using it too!
@antonioe.2396
@antonioe.2396 Күн бұрын
I love you so much
@PhilsLab
@PhilsLab Күн бұрын
Haha thank you <3
@fritzbender5916
@fritzbender5916 Күн бұрын
@PhilsLab is the design for the RF Schtick available somewhere?
@PhilsLab
@PhilsLab Күн бұрын
I'm afraid not for the moment. I do plan on open-sourcing that and the BumbleB once I've verified everything.
@mufcqw
@mufcqw Күн бұрын
Hey whould love it if you can do a video about high current pcb design (15 amps and above)
@javaguru7141
@javaguru7141 Күн бұрын
I would absolutely love this, too.
@PhilsLab
@PhilsLab Күн бұрын
Yes, will do that in the future!
@FixDaily
@FixDaily Күн бұрын
Awesome, thank you :)
@PhilsLab
@PhilsLab Күн бұрын
Thanks for watching :)
@christopherdev3359
@christopherdev3359 Күн бұрын
Do you happen to know a good book that covers designing High power circuits for power sources and driving Electric Motors?
@PhilsLab
@PhilsLab Күн бұрын
I'm afraid not for PCB design. There are a few on power electronics in general, but they are rather theoretical and more on the schematic/component-side of things (e.g. Power Electronics by Mohan, Fundamentals of Power Electronics by Erickson).
@javaguru7141
@javaguru7141 Күн бұрын
@@PhilsLab This is definitely a topic that would greatly benefit from a dedicated video 😊
@tHaH4x0r
@tHaH4x0r Күн бұрын
20:08 There's some pitfalls with this though! If you aren't careful, there can be two ground planes that are only connected by a sliver, and if these two planes happen to have to carry a lot of energy, you can blow a hole in your board quite easily. The layout software wont alert you of this, as clearly the nets are connected (just not wide enough).
@PhilsLab
@PhilsLab Күн бұрын
Great point!
@neekonsaadat2532
@neekonsaadat2532 Күн бұрын
Phil, this was a great video as always, thank you for taking time to spread knowledge
@PhilsLab
@PhilsLab Күн бұрын
Thank you very much!
@ElTurbandito
@ElTurbandito Күн бұрын
Love your channel and the tips I can steal. Gotta slightly make fun of the solder pasted fiducials though 😅
@PhilsLab
@PhilsLab Күн бұрын
Thank you! Haha they actually don't have solder paste on them, the picture just gives that appearance.
@vi4133
@vi4133 Күн бұрын
Hi Phil! You are an inspiration! Keep it up!You help us learn and grow. Love from India!!
@PhilsLab
@PhilsLab Күн бұрын
Thank you very much - greetings from Germany :)
@SmashCatRandom
@SmashCatRandom Күн бұрын
Great video! One sneaky thing I've done with very tight designs is route GPIOs from MCUs under the chip, then out by going through an unused pin. For example if I have a SPI bus signal that can't be swapped, I'd route it via a generic GPIO that's not used in the design. Obviously this can only be done if the pin is high impedance at boot, and it can then never be used. Can save space in a pinch though! Another option is to create a custom footprint with solder mask over the pins you don't need, so you can route under them, but some PCB houses complain about it if doing the PCBA, I've found. Obviously also some routing is easier if the component is rotated 45 degrees.
@nimashirazi6307
@nimashirazi6307 Күн бұрын
Very smart, how much experience do you have designing boards my guy?
@PhilsLab
@PhilsLab Күн бұрын
Thank you! Yes, that's a great tip - and actually something I did just recently in a different design.
@SmashCatRandom
@SmashCatRandom Күн бұрын
@@nimashirazi6307 Not as much as Phil :)
@originalmianos
@originalmianos Күн бұрын
Damn Big Clive and his reverse engineering. He'll never work out what the heck is going on.
@aaronwilliams7062
@aaronwilliams7062 Күн бұрын
Had a project recently that I used a similar trick. The screen connector for the oled was as wide as the PCB making it difficult to route any signals past it. Luckily there were a bunch of unused pins that we passed signals through and it worked like a charm 🤌
@R.Daneel
@R.Daneel Күн бұрын
"So to speak." DRINK!
@satoshimanabe2493
@satoshimanabe2493 Күн бұрын
Thanks Phil for another helpful lesson! One additional trick I've seen is to cross a track on the top, by using a 0603 or larger component. This would be limited to slow-speed signals only. Of course, this adds components (and therefore cost) so it's useful only if you really need this. For example, the bottom can only be ground in some RF designs, as the PCB is intended to be attached to a heatsink of the same size. Or you just absolutely detest having tracks on the bottom, even when no one else will be seeing them!
@PhilsLab
@PhilsLab Күн бұрын
Thank you - great tip!
@michaelcummings7246
@michaelcummings7246 Күн бұрын
I have used this in places to get my routed power around signal lines with 0 ohm resistors. It has the added benefit of allowing you to remove them to isolate things during troubleshooting etc.
@awocrf
@awocrf Күн бұрын
What do you think about aisler?
@PhilsLab
@PhilsLab Күн бұрын
Only used them once a couple of years ago when they were very new, so I'm afraid I can't really comment on them.
@rraheem_p
@rraheem_p Күн бұрын
“Guys , we’re skipping lunch, Phil just dropped another one!”
@dylpickle8147
@dylpickle8147 Күн бұрын
Why not both lol, top tier lunch break content
@oyewumivictor103
@oyewumivictor103 Күн бұрын
😄
@richardbekking
@richardbekking Күн бұрын
Good stuff, beautifull design as always
@PhilsLab
@PhilsLab Күн бұрын
Thanks a lot, Richard!
@Elektrobastler
@Elektrobastler Күн бұрын
At jlcpcb going from 2 to 4 layers (50x50mm, all "base" settings and no expensive add-ons, 10pc) it goes from 50ct to 70ct per unit.
@tommihommi1
@tommihommi1 Күн бұрын
yeah, just pointless to go 2 layer for a hobby project in that case unless it's really something trivial where it needs zero thinking to do the design on 2 layers
@shmuelbitton9703
@shmuelbitton9703 Күн бұрын
Dear phill I have to say…you channel is amazing A fully mine of knowledge ❤️ Thank you so much from Israel 🇮🇱 ❤
@PhilsLab
@PhilsLab Күн бұрын
Thank you very much for your kind comment!
@DataDiode
@DataDiode Күн бұрын
In your video, you advise keeping the traces short compared to trying to do controlled impedance in the RF section. Would this recommendation change if the traces were connecting to an SMA connector instead of a chip antenna?
@PhilsLab
@PhilsLab Күн бұрын
No, that recommendation generally stays the same.
@javaguru7141
@javaguru7141 Күн бұрын
@@PhilsLab That's surprising to me, but very valuable to know.
@perceptron9834
@perceptron9834 Күн бұрын
thank you for another great video :)
@PhilsLab
@PhilsLab Күн бұрын
Thanks for watching! :)
@tamaseduard5145
@tamaseduard5145 Күн бұрын
👍🙏❤️
@12012004
@12012004 Күн бұрын
I enjoy your video a lot! Always after seeing one of your videos I get instantly highly motivated to start some new PCB design. Thank you!
@PhilsLab
@PhilsLab Күн бұрын
That's awesome, glad to hear they bring motivation! :D
@Aryan-dq1ll
@Aryan-dq1ll Күн бұрын
Dear Phil, Thank you so much! I started watching your tutorials since earlier this year as per the requirement of my internship and now I have a job in my hand ( I am a final year EE student) before my graduation just because of your tutorials, I was able to clear interviews. Thanks a lot, I learnt a lot from your tutorials.
@PhilsLab
@PhilsLab Күн бұрын
Hi Aryan, That's awesome - I'm very glad to hear that the videos have been helpful. Congratulations on landing your new job!
@dylpickle8147
@dylpickle8147 Күн бұрын
Just graduated as CSE and now have a job that is largely PCB design lol, Phil is the GOAT
@AsminSilwal-pj4ju
@AsminSilwal-pj4ju Күн бұрын
Thank you. This is informative.
@PhilsLab
@PhilsLab Күн бұрын
Glad to hear that, thanks for watching!
@mwafakaljabi9611
@mwafakaljabi9611 Күн бұрын
Such a deep and detailed dive. I do feel though that it is almost never recommended to use a 2- layer instead of 4-layers specially for RF. But as you said your tips are also valid for PCBs with higher count layers. Really excited for your video with the two PCBs communicating. Thank you Phil.
@PhilsLab
@PhilsLab Күн бұрын
Thank you! I agree, although there are many areas in industry where they are used (successfully). Personally, only when really necessary (or for simple, hobby projects such as this one) I go with two-layer designs.
@javaguru7141
@javaguru7141 Күн бұрын
@@PhilsLab Certainly. I have seen 2-layer designs used in many cost-optimized designs including in RF designs like those sub-dollar modules. I find it fascinating since it's a lot of fun to do the same or more with less.
@tommihommi1
@tommihommi1 Күн бұрын
4 layer prototype PCBs from some vendors are such a low extra cost vs 2 layer that it's just not worth it to go 2 layer for a prototype, unless you're doing it for the exercise​@@PhilsLab
@andrewlloydwebber2616
@andrewlloydwebber2616 Күн бұрын
Gold mine of a channel
@PhilsLab
@PhilsLab Күн бұрын
Thank you very much!
@dylpickle8147
@dylpickle8147 Күн бұрын
Facts
@minhkhoa445
@minhkhoa445 Күн бұрын
Hi sir, I am a 3rd years student and at school I was taught to pour both the top and bottom layers of a 2-layer PCB with GND. However, I saw that you did not pour the top layer at all. Is there any reason for you to not do that? Is it to ensure that there is a definite return path of the current?
@PhilsLab
@PhilsLab Күн бұрын
The top and bottom layers are poured with GND in this video. In general, I would suggest doing that for 2-layer designs.
@minhkhoa445
@minhkhoa445 Күн бұрын
@@PhilsLab Thanks you sir!
@tommihommi1
@tommihommi1 Күн бұрын
top pour doesn't have benefits outside of copper balancing the PCB for preventing bending. If you do it wrong (not enough vias) a copper pour can ruin your designs performance
@abdulrahimnaser
@abdulrahimnaser Күн бұрын
Hi Phil, there was an old video of you designing a hardware accelerator based on the artix-7 fpga with an m.2 interface, (kzbin.info/www/bejne/bpPaaWOCnqifbck). could you please provide me the vivado logic design files of the project? I couldn't find them on your github.
@PhilsLab
@PhilsLab Күн бұрын
Hi Abdul, I'm afraid the design files - other than what's shown in the video - aren't public. Sorry about that!
@Hunterxadill
@Hunterxadill Күн бұрын
Awesome man learned a lot from you ❤️
@PhilsLab
@PhilsLab Күн бұрын
Thank you, I'm glad to hear that!
@kiprof4350
@kiprof4350 2 күн бұрын
Thank you so much Phil! nice Video!
@PhilsLab
@PhilsLab Күн бұрын
Thanks for watching!
@GustavoPinho89
@GustavoPinho89 2 күн бұрын
That's cool and all but where are the RGB LEDs?