Design Review (Buck + STM32 + Peripherals) - Phil's Lab #81

Поділитися
Вставка
  • Опубліковано 7 чер 2024
  • Design review of PCB containing an STM32F1 microcontroller, buck converter, relays, and various peripherals. Going through schematic and PCB, giving tips and guidelines throughout.
    Khadem's Git repo: github.com/citrineio/LEL-Dete...
    [SUPPORT]
    Free trial of Altium Designer: www.altium.com/yt/philslab
    Patreon: / phils94
    Mixed-signal hardware design course: phils-lab-shop.fedevel.education
    [GIT]
    GitHub: github.com/pms67
    [TIMESTAMPS]
    00:00 Introduction
    01:15 Altium Designer Free Trial
    01:38 Schematic - Overview
    03:07 Schematic - Power (Buck, LDO)
    08:08 Schematic - MCU & Peripherals
    12:48 PCB
    17:12 PCB - Buck Converter
    19:22 PCB - Additional Comments
    20:15 Recommended Videos
  • Наука та технологія

КОМЕНТАРІ • 49

  • @Stabby666
    @Stabby666 Рік тому +25

    I like these review videos - I've pretty much got to the point where I can anticipate a lot of Phil's points about designs now, which I think is a good sign for myself!

    • @PhilsLab
      @PhilsLab  Рік тому +6

      Thanks! That's right - a lot of the points I mention are very common across peoples' projects and typical 'mistakes' (or things that could be improved). I'd love to make a video on a far more formal design review process at some point (with much more depth) - but that would be a rather long video indeed!

    • @JKTCGMV13
      @JKTCGMV13 Рік тому +4

      @@PhilsLab a video like that would be a great resource for people just starting their engineering career. It’s definitely not something I was taught in college myself

    • @kmacademy6742
      @kmacademy6742 Рік тому

      Indeed, but keep in mind that critiquing other people's designs is much easier than your own designs.
      I found out about this after Phil pointed out the mistakes in my design in this video. It might be helpful to have a design review checklist for future designs.

    • @Stabby666
      @Stabby666 Рік тому +1

      @@kmacademy6742 I've been designing boards for my business for he past 5 years, along with FPGA designs and robotics (I work in the event/creative tech industry). I like to have videos playing while I work though, and usually electronics channels. Constant learning and reinforcing is good 😁

    • @rick_er2481
      @rick_er2481 Рік тому

      @@PhilsLab This would be really helpfull

  • @kmacademy6742
    @kmacademy6742 Рік тому +31

    Thank you so much for featuring my design. I have to admit that most of the mistakes were embarrassing and I might have captured them easily in someone else's design. Well, this isn't an excuse. I designed the buck converter using TI's online tool which is probably the reason for dodgy values. In hindsight, this was not a smart move.
    I have to ask you a question, though. I normally import my footprints from websites like Ultralibrarian and Snapeda. I noticed that their courtyards are gigantic. How do I size the courtyard for a footprint?

    • @JKTCGMV13
      @JKTCGMV13 Рік тому +4

      It’s always hard to catch your own mistakes. Your mind knows what it’s supposed to look like, so you don’t see what it actually looks like haha
      But isn’t that what peer review’s for? 😊

    • @kmacademy6742
      @kmacademy6742 Рік тому +2

      @@JKTCGMV13 Well said.

    • @PhilsLab
      @PhilsLab  Рік тому +11

      Thanks for sending in your design, Khadem. Don't worry - everyone makes mistakes (even 'simple' ones), a great way of learning though. If I look back at some designs I've made (even from the same year), I see things that I could've done better and that in turn means I've progressed, which is a great thing.
      Regarding your question: I never use Snapeda or the like but always try to make the footprints and schematic symbols myself (for a multitude of reasons). For footprints and sizing (incl. courtyards) I use the IPC-7351 standard - which is luckily part of Altium Designer's IPC-compliant footprint wizard.

    • @piranha1337
      @piranha1337 Рік тому +12

      I think nothing was embarrassing here. You're seeing it from the wrong perspective. The more common mistakes you make, the better the video gets for everyone else. If you have the perfect schematics and layout then Phil can only comment on good design decisions which is nice but the 999 pitfalls are hidden and not commented.
      Thank you both for your valuable input!

    • @andymouse
      @andymouse Рік тому +1

      @@piranha1337 Well said.

  • @msmith2961
    @msmith2961 Рік тому +5

    Another excellent review with plenty of practical tips. Thanks Phil, (and all those brave enough to share their work to be dissected!).

  • @moakadarkmaster
    @moakadarkmaster Рік тому +1

    @Phil, thank you for making design reviews. Applying the guidelines and rules of thumbs to a practical design can be quite hard sometimes. I love that you give advice to improve the design for everyone to learn.

  • @bencemarta5222
    @bencemarta5222 Рік тому

    I love to see these kind of videos, the knowledge I gaind has improved my layouts so much. I wish my PCBs were featured in such a video...

  • @redcracklp9592
    @redcracklp9592 Рік тому +15

    I don't think you should use relays in a potentially gas filled environment, because they can produce sparks. Maybe change your design to MOSFTEs

    • @kmacademy6742
      @kmacademy6742 Рік тому

      Nice point, I will look into what commercial gas detectors actually use.

  • @Edgarbopp
    @Edgarbopp Рік тому +1

    Super helpful actually. Would love more content like this.

    • @PhilsLab
      @PhilsLab  Рік тому +1

      Thanks, Doug. Trying to make one design review video per month at the moment!

  • @thomasquiniou7071
    @thomasquiniou7071 Рік тому

    This type of video is really instructive and interesting, thank you Phil !

    • @PhilsLab
      @PhilsLab  Рік тому

      Thanks a lot, Thomas - glad to hear that.

  • @andymouse
    @andymouse Рік тому +1

    I particularly like these critique's their very useful...cheers.

  • @konturgestalter
    @konturgestalter Рік тому

    these are so helpful to learn from

  • @piranha1337
    @piranha1337 Рік тому

    Thank you so much for this excellent review ♥️

  • @syedsulaiman8380
    @syedsulaiman8380 Рік тому +1

    Great help

  • @irudoy
    @irudoy Рік тому +1

    Thanks for the great video! So much useful information. One question: does mechanical relays really needs ESD protection?

  • @doningram3978
    @doningram3978 Рік тому +1

    @Phil’s Lab Phil, not denying the advantages of a well structured hierarchy of schematic sheets in a common pdf, but... one potential benefit of a well structured single page schematic is the ability to turn it into a single image file and drop it onto a web page where what you see is what you get with less danger of downloading a potentially sus file.

  • @jdennee
    @jdennee Рік тому

    Great video!

  • @Difool80
    @Difool80 Рік тому

    Hi Phil. Nice review again !
    Do you answer to each design review request you get through your website or do you get too much of them and only answer to the ones which interest you ?
    I'm asking as I sent you a message a while ago :)

  • @SAILxKamal
    @SAILxKamal Рік тому +1

    Thank you sir for these amazing content, can you please do a series on C\C++ programming for ebedded systems, the resources on the internet that are well explained are quite scarce.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist Рік тому +1

    This form of circuit layout seems to be coming from the UA-cam University, where the important part is not showing the circuit flow from left to right as we were taught in the old days. But as long as you can put each active component in a box and join the pins to a netlist your doing fine.
    I find these drawings a bugger to fault find as you can’t easily see if a connection is missing as all as connectivity is in the mind of the creator.
    When was the last time you saw a bus drawn on a circuit.

    • @andymouse
      @andymouse Рік тому

      I agree, most circuits you see have a whole bunch of blue boxes apparently randomly placed with no regard for the right to left flow that makes so much sense.

    • @obdev9473
      @obdev9473 Рік тому

      I'm split on this topic. Years ago, circuits were mainly analog, where the overall layout of the schematic was important for circuit analysis; or they were MPU based with a single data and address bus connecting everything. Today, most are modular and digital, with well-defined analog sections. Personally, I hate all-in-one diagrams with a rats nest that I have to follow with my finger, or with a pencil on a printout !!

  • @khaledsaleh664
    @khaledsaleh664 Рік тому

    Phil, your channel is an excellent reference on STM32. Please advise how one can interface a 4-20mA transmitter signal reliably to STM32 ADC. Is using a precision resistor all it takes? The voltage drop across this resistor would be high for the loop, we may need an amplifier before the ADC to reduce the resistor value, what do you recommend? Thank you.

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist Рік тому

    ifAs this is a safety device would you go to the extra effort of fitting a power supervisor with built in watchdog as opposed to using the uC’s own internal watchdog?

  • @sanjikaneki6226
    @sanjikaneki6226 Рік тому

    When would one chose a synchronous buck over a normal diode one? Or rather when would be worth it ? Also would making one with the pins of the MUC be a good idea (and then disable the LDO ) so that the MCU self powers via a buck.

  • @duemilanove1844
    @duemilanove1844 Рік тому

    Nice one... Love from India...

  • @diablomoto1328
    @diablomoto1328 Рік тому +1

    FIRST comment! are you still working on the ESC Phil? really looking forward to that project

    • @PhilsLab
      @PhilsLab  Рік тому +1

      Thanks, Alex - yes, that's still in the works, although other designs have take priority in the meantime I'm afraid!

    • @sanjikaneki6226
      @sanjikaneki6226 Рік тому

      @@PhilsLab about how many projects are work in progress at the same time?

  • @sanjikaneki6226
    @sanjikaneki6226 Рік тому

    How complex does a design need to be for a review?

  • @nickbolton9435
    @nickbolton9435 Рік тому

    I'm with Dave Jones on his view of multi-page schematics... only if you really have to. It's much easier to have everything on one page so you're not jumping between pages. I'd use separate pages only for completely separate and independent modules/boards. But, I agree that maybe there are too many sections in this schematic; everything MCU-related should probably be in the same section. Also, 1pF cap and no pull-downs/pull-ups on FET gates... hmm?

  • @markslab28
    @markslab28 Рік тому

    Great review Phil, Can you elaborate more on the comment about ESD protection for the VFC for the alarm outputs, considering that the outputs could be connected to various voltage levels. (ua-cam.com/video/eZnyBt2LVoc/v-deo.html)