Documentation
Go to AppSign InSign Up
    Getting Started
    • Introduction to Flux
    • What is Flux?
    • Quick Start
    • The Flux Method
    • Creating an Account
    • Flux for Organizations
    • Setting Up Your Browser
      • Mouse & Trackpad
      • Multi-Screen Operation
      • Keyboard Shortcuts
    • Your First PCB in Flux
      • DFM & Export
      • PCB Layout & Routing
      • Project Setup
      • Schematic
      • Export & Manufacturing
    • KiCAD to Flux
      • Layout
      • Parts & Libraries
      • Schematics
    • Eagle to Flux
    • EasyEDA to Flux
    • Upverter to Flux
    • Altium to Flux
    • Getting Help
    Tutorials
    • Tutorials
    • Getting Started With Flux
      • Customizing Flux
    • Flux Use Cases
      • AI Architecture Design
      • AI Component Research
      • AI Design Reviews
      • AI Testing & Debugging
      • AI Auto-Layout
      • Generative AI
    • Start Learning Flux, No Matter Your Skill Level
      • Advanced Designer
      • First Time Designer
      • Intermediate Designer
    • Power Regulator
      • 1 – Part Selection
      • 2 – PCB Layout
      • 2 – Schematics
    • Routing
      • High-speed Routing
      • High Density Designs (HDI)
      • Working with Polygons
    • Adding Components to the Library
      • Publishing Components to the Library
      • Creating Components from Scratch
      • Importing Components
      • Working with Footprints
      • Working with Symbols
    • What is a Module?
      • Module Design Best Practices
      • Creating Modules
      • Using Modules
    • Generic Components
      • Creating a generic part
    • Copper Fills Tutorial
      • Creating Copper Cutouts
    • Board Outline Shape and Size
    • The Toolbar
    • Using Layout Rules
    • Intro to collaboration
    • Embedding a Flux Project
    • Reviewing component updates
    • Version Control Deep Dive
    • Custom Shapes
    • AI-Assisted Design with Flux
    • PCB Design Reviews (DRC)
    • Component Placement
    • Component Procurement
    • Multi-Layer PCB Design
    • Working with Ground Signals
    • Reusing Projects
      • Useful links
    Reference
    • Flux Context Menu
    • Calculator Tool
    • Change Project Name
    • Code Tool
    • Convert to component
    • Flux ACUs
    • Overview
    • Data Portability
    • Delete & Archive Projects
    • Design Rule Check (DRC)
    • Expressions
    • File Tool
    • FMEA Report Generation
    • Gerber Exports
    • Help Tool
    • Special Part Types
    • JEP30 PartModel Import/Export
    • Knowledge Base
    • Library Tool
    • Managing Units
    • Measuring Distances
    • Model Selection
    • Nets and Traces
      • Curved Traces
      • Impedance Control
      • Trace Width
    • Object Types
      • AssetNode
      • ControlNode
      • ElementNode
      • ElementTerminalNode
      • OutputNode
      • PropertyNode
      • RouteNode
      • RouteTerminalNode
    • Pads & Holes
    • Passive Component Consolidation
    • Layout Rules Reference
      • Layout Rules List
      • Object-Specific Layout Rules
      • Selector-Based Layout Rules
      • Layout Rules Inheritance & Precedence
      • Layout Rules Modifiers
    • Polygons
    • Comments
    • Cursors
    • Forking & Cloning
    • Copper Fills
    • Importing Schematics
    • Importing Components
    • Schematic Inspector
      • Assets Panel
      • Pricing & Availability Panel
      • Properties Panel
      • Simulation Panel
    • The Library
    • Project Launcher
      • New Blank Project
    • Layout Object Tree
      • PCB Object Types
    • Schematic Object List
    • The PCB Editor
      • Locking
      • Layer View Control
      • Positioning & Routing
      • Selecting Objects
      • Stackup Editor
    • Permission Tiers
    • Preloaded Examples
    • The Profile Page
      • Featured Projects
    • The Schematic Editor
      • Positioning & Wiring
    • Global Search
    • Sharing & Permissions
    • History & Version Control
    • Silkscreen
    • Simulator Tool
    • Star a Project (Favorite)
    • Vias
      • Smart Vias
    Copilot
    • Copilot Overview
    • Model Selection
    • Flux ACUs
    • Knowledge Base
    • Flux Context Menu
    • Calculator Tool
    • Code Tool
    • File Tool
    • Help Tool
    • Library Tool
    • Simulator Tool
    • FMEA Report Generation
    • Passive Component Consolidation
    FAQ
    • Schematic Editor
    • General FAQs
    • Flux and AI FAQs
    • PCB Editor FAQs
    • Parts and Modules
    • Pricing
    • Private and public projects
    • Data security and IP protection
    • When things go wrong: Errors and how to handle them
      • Lost connection
    Legal
    • Terms of Service
    • Privacy Statement
    • Main Services Agreement
    • Subprocessors

Tutorials

Power Regulator

2 – PCB Layout

Tutorials

Buck Converter Tutorial: PCB Layout for Power Regulation


Overview

Designing the PCB for your buck converter is crucial for ensuring efficiency, thermal management, and overall performance. In this section, we'll cover layout tips, routing strategies, and the importance of design checks before exporting your project for manufacturing.

Getting Started

Creating the PCB involves configuration for the following points:

We can ask Flux to give advice for all of these, discussed below. Flux Editor also has rulesets, which allow us to easily set default min and max widths for both high and low-current traces, also discussed in a section below.

Flux for PCB Creation

When creating the PCB, several design considerations are important for a buck converter. Flux can assist with advice on the following

General Considerations

  • @Flux: What do I need to know when designing a PCB for a buck converter that uses the LM2596?

Routing Tips

  • @Flux: Additional routing and layout tips you can provide?

Thermal Relief

Thermal reliefs are used in PCB design to retain heat in a specific area of the copper pad to aid in soldering. They are also used to prevent excessive heat from flowing away from the pad into the surrounding plane during soldering or rework. When designing a board that may contain high currents, this is important to keep in mind.

  • @Flux: When do I use thermal relief for the ground plane and when not to?

Layout and Routing

Taking the advice from Flux, we've created the following PCB layout of our buck converter power regulator.

Top layer of PCB with layout component without any copper shown

Some points of note:

  1. C2 placed close to VIN pin
  2. R1 and R2 placed close to the feedback pin
  3. D1 placed near SW (with L1 relatively close by)
  4. R1 and R2, which will contain the traces used for feedback are spaced a bit further away from the SW/OUT node

Nets and Trace Widths

In our project, we have power traces that carry relatively larger amounts of current, and then signal traces that carry relatively less. For this reason, we want to have two trace widths:

  • Traces connected to the +12V and +5V node will either be drawing a lot of current from the source, or delivering current to the load and therefore should have a width of 80mil.
  • Traces that carry a signal such as the ON/OFF switch or feedback pin only need to read a voltage value, and should not have much current, can be set to 10mil.
  • Traces that go to the pins of the actual converter are limited by the pins' spacing and are 40mil in width.

Bottom layer of the board is one big copper fill

Therefore, it is advantageous to create a few rulesets:

  1. One ruleset that sets default trace width to 80mil

  2. One ruleset that overrides Net 5 (associated with the on/off pin) to 10 mil. Overriding is a feature of inheritance property for rules.

    1. We can rename Net 5 to something identifiable and create a selector-based rules off of that.
  3. Object-specific trace widths for the remaining nets:

10 mil for the feedback path (Vout terminal → feedback resistors → feedback node)

40 mil for the OUT pin on the buck converter

Final Design Checks and Exporting

Now that we've done the layout, we want to make sure we're ready for exporting. Beforehand make sure to check there aren't any design rule check (DRC) errors.

Manufacturers of Printed Circuit Boards (PCBs) require a particular collection of files to process your design for both fabrication and assembly. These files are essential as they generate the necessary instructions for the sophisticated equipment and tools used in PCB production.

Project Export

Once we're happy with our board, we can go ahead and export the necessary files for production. For a comprehensive list of export options, please refer to the gerber export section. In our case, we want to focus on the gerber files.

  • Under Flux > Export > Gerber

After the production of your board, you have the option to either ship it for self-assembly or choose to have it assembled by either the manufacturer or a different company. In the case of the latter, additional files will be needed. It is important to download these files and verify that the data they contain accurately reflects the details of your design project —See our detailed manufacturing section for pointers.

Critical Layout Guidelines

When designing a buck converter PCB, follow these critical guidelines:

  1. Keep high-current loops small: Minimize the area of the loop formed by the input capacitor, switching MOSFET, and diode
  2. Separate power and signal grounds: Use a star connection point to minimize noise coupling
  3. Place components strategically: Input capacitor close to VIN, output capacitor close to load
  4. Use wide traces for power paths: Size traces according to current requirements
  5. Add thermal vias: For components that generate heat, especially the IC and diode
  6. Consider EMI reduction: Add input filtering and keep sensitive signal traces away from switching nodes

Trace Width Calculation

Use the following guidelines for determining trace widths:

Current (A)Trace Width (mil)Temperature Rise (°C)
0.51010
1.02010
2.05010
3.08010
5.015010

For higher currents or different temperature rises, use an online trace width calculator.

Troubleshooting Common Issues

Excessive Noise or Ripple

  • Check for proper component placement and loop minimization
  • Verify ground plane integrity and connection points
  • Add additional filtering capacitors if necessary

Thermal Problems

  • Ensure adequate copper area for heat dissipation
  • Add thermal vias under heat-generating components
  • Consider adding a heatsink for the IC in high-current applications

EMI Issues

  • Keep switching node traces short
  • Add input filtering
  • Consider adding a shield or keep sensitive circuits away from the converter

What's Next

In conclusion, this comprehensive tutorial series has provided a detailed roadmap for designing a DC-DC buck converter using the LM2596 IC DC-DC converter, from the initial selection of the IC based on critical parameters to the creation of a schematic and PCB layout.

Now that you've completed your buck converter design, you might want to explore:

Whether you're a seasoned engineer or a budding electronics enthusiast, Flux's powerful tools equips any engineer with the modern workflows necessary to confidently design and implement your own power converter PCBs.


Previous

1 – Part Selection

Next

2 – Schematics