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-ny2pd16 сағат бұрын
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-zj5tx8to1x16 сағат бұрын
Spc56alxxx which debugger tool need to buy dear how can I contact you pls send it your whatapp or Skype contact number
@daflamingfox17 сағат бұрын
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 } }
@PhilsLab16 сағат бұрын
Thank you! You are completely right - sorry about that!
@daflamingfox16 сағат бұрын
@@PhilsLab no worries, it happens! I thought I was losing my mind at first. Appreciate everything you do!
@pauladriaanse19 сағат бұрын
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)
@MarkusBurrer19 сағат бұрын
Shipping Cost to Germany 650$? Seriously?
@PhilsLab18 сағат бұрын
For 10000 50x50mm PCBs (roughly 100kg).
@Skinkanful19 сағат бұрын
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.
@PhilsLab18 сағат бұрын
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.
@younesthabet20 сағат бұрын
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)?
@leeslevin760221 сағат бұрын
Brilliant, thank you! 👏
@PhilsLab18 сағат бұрын
Thanks for watching!
@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. :(
@PhilsLab18 сағат бұрын
Thanks, that's coming soon! Oh wow, that range really isn't great..
@antoniodimeoКүн бұрын
Many thanks Phil: always a wealth of information. Greetings.
@PhilsLabКүн бұрын
Thank you, Antonio!
@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Күн бұрын
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.
@smith140121 сағат бұрын
@@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Күн бұрын
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Күн бұрын
Great video & usefull tips. may I know how you make the layout colourful such as pin have different colour, it look cool?
@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Күн бұрын
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Күн бұрын
Very cool, glad everything worked out with your last design!
@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Күн бұрын
That's very kind - thank you so much. Very glad to hear that the videos have been helpful!
@WilliamWeller-cz2ulКүн бұрын
You are very talented and smart! Nice video Phil :)
@PhilsLabКүн бұрын
Thank you, William!
@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Күн бұрын
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Күн бұрын
At that point I'd move to a 4-layer board.
@patcherandpatchКүн бұрын
Just I am currently developing a platform for CH32V003 ❤️
@javaguru7141Күн бұрын
Will it be open-source? If so, I'd be very interested in using it too!
@antonioe.2396Күн бұрын
I love you so much
@PhilsLabКүн бұрын
Haha thank you <3
@fritzbender5916Күн бұрын
@PhilsLab is the design for the RF Schtick available somewhere?
@PhilsLabКүн бұрын
I'm afraid not for the moment. I do plan on open-sourcing that and the BumbleB once I've verified everything.
@mufcqwКүн бұрын
Hey whould love it if you can do a video about high current pcb design (15 amps and above)
@javaguru7141Күн бұрын
I would absolutely love this, too.
@PhilsLabКүн бұрын
Yes, will do that in the future!
@FixDailyКүн бұрын
Awesome, thank you :)
@PhilsLabКүн бұрын
Thanks for watching :)
@christopherdev3359Күн бұрын
Do you happen to know a good book that covers designing High power circuits for power sources and driving Electric Motors?
@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Күн бұрын
@@PhilsLab This is definitely a topic that would greatly benefit from a dedicated video 😊
@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Күн бұрын
Great point!
@neekonsaadat2532Күн бұрын
Phil, this was a great video as always, thank you for taking time to spread knowledge
@PhilsLabКүн бұрын
Thank you very much!
@ElTurbanditoКүн бұрын
Love your channel and the tips I can steal. Gotta slightly make fun of the solder pasted fiducials though 😅
@PhilsLabКүн бұрын
Thank you! Haha they actually don't have solder paste on them, the picture just gives that appearance.
@vi4133Күн бұрын
Hi Phil! You are an inspiration! Keep it up!You help us learn and grow. Love from India!!
@PhilsLabКүн бұрын
Thank you very much - greetings from Germany :)
@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Күн бұрын
Very smart, how much experience do you have designing boards my guy?
@PhilsLabКүн бұрын
Thank you! Yes, that's a great tip - and actually something I did just recently in a different design.
@SmashCatRandomКүн бұрын
@@nimashirazi6307 Not as much as Phil :)
@originalmianosКүн бұрын
Damn Big Clive and his reverse engineering. He'll never work out what the heck is going on.
@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Күн бұрын
"So to speak." DRINK!
@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Күн бұрын
Thank you - great tip!
@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Күн бұрын
What do you think about aisler?
@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Күн бұрын
“Guys , we’re skipping lunch, Phil just dropped another one!”
@dylpickle8147Күн бұрын
Why not both lol, top tier lunch break content
@oyewumivictor103Күн бұрын
😄
@richardbekkingКүн бұрын
Good stuff, beautifull design as always
@PhilsLabКүн бұрын
Thanks a lot, Richard!
@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Күн бұрын
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Күн бұрын
Dear phill I have to say…you channel is amazing A fully mine of knowledge ❤️ Thank you so much from Israel 🇮🇱 ❤
@PhilsLabКүн бұрын
Thank you very much for your kind comment!
@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Күн бұрын
No, that recommendation generally stays the same.
@javaguru7141Күн бұрын
@@PhilsLab That's surprising to me, but very valuable to know.
@perceptron9834Күн бұрын
thank you for another great video :)
@PhilsLabКүн бұрын
Thanks for watching! :)
@tamaseduard5145Күн бұрын
👍🙏❤️
@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Күн бұрын
That's awesome, glad to hear they bring motivation! :D
@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Күн бұрын
Hi Aryan, That's awesome - I'm very glad to hear that the videos have been helpful. Congratulations on landing your new job!
@dylpickle8147Күн бұрын
Just graduated as CSE and now have a job that is largely PCB design lol, Phil is the GOAT
@AsminSilwal-pj4juКүн бұрын
Thank you. This is informative.
@PhilsLabКүн бұрын
Glad to hear that, thanks for watching!
@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Күн бұрын
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Күн бұрын
@@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Күн бұрын
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Күн бұрын
Gold mine of a channel
@PhilsLabКүн бұрын
Thank you very much!
@dylpickle8147Күн бұрын
Facts
@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Күн бұрын
The top and bottom layers are poured with GND in this video. In general, I would suggest doing that for 2-layer designs.
@minhkhoa445Күн бұрын
@@PhilsLab Thanks you sir!
@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Күн бұрын
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Күн бұрын
Hi Abdul, I'm afraid the design files - other than what's shown in the video - aren't public. Sorry about that!