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

1 – Part Selection

Tutorials

Buck Converter Tutorial: Part Selection for Power Regulation


How to Select an IC for Your Project

Choosing the right Integrated Circuit (IC) for your buck converter is crucial for performance, efficiency, and reliability. This section will guide you through the essential factors to consider when selecting an IC and introduce the one we'll use for this project.

Understanding Power and Buck Converters

A buck converter is a type of DC-DC converter that steps down a higher input voltage to a lower output voltage efficiently. Instead of simply dissipating excess power as heat (like a linear regulator), a buck converter switches between ON and OFF states rapidly, using components like inductors and capacitors to smooth the output. This switching action minimizes power loss, making buck converters ideal for powering sensitive electronics like the ESP32 in a wide range of projects.

Here's how it works:

  • Switch ON: When the switch (often a MOSFET) is closed, current flows through the inductor, storing energy and delivering power to the load.
  • Switch OFF: When the switch opens, the inductor releases its stored energy, and the diode becomes forward-biased, allowing current to continue flowing.
  • Duty Cycle: The duty cycle (ratio of ON to OFF time) controls the output voltage. By adjusting the duty cycle, you can maintain a steady output voltage regardless of input fluctuations or load changes.

Choosing the Right IC

When selecting an IC for your buck converter, several key parameters need to be evaluated to ensure optimal performance for your design:

  • Input Voltage Range (VIN): Your IC must support the input voltage range of your project. For example, if you're using a 12V power supply but need to step it down to 3.3V for the ESP32, ensure that the IC can handle at least 12V as input.

  • Output Voltage (VOUT): The IC should provide an output voltage that matches your system requirements. Many ICs, like the LM2596, offer adjustable output voltage options, making them versatile for different projects.

  • Output Current (IOUT): Make sure the IC can supply the maximum current your load will draw. For the ESP32 and peripherals, you'll likely need a few hundred milliamps, but it's important to consider peak current needs as well.

  • Efficiency: Higher efficiency means less power wasted as heat. Efficient ICs reduce the need for additional cooling solutions and improve overall power management. IC datasheets typically provide efficiency curves based on load conditions.

  • Switching Frequency: This determines the size of external components (inductors, capacitors) and affects efficiency. Higher frequencies allow for smaller components but may generate more electromagnetic interference (EMI).

    • Protection Features: Look for ICs with built-in protections such as:
    • Overcurrent Protection (prevents damage from excessive current)
    • Thermal Shutdown (prevents overheating)
    • Under-voltage Lockout (UVLO) (prevents operation at dangerously low voltages)
  • Thermal Considerations: Power dissipation increases with higher currents and voltages. Choose an IC that can handle your design's thermal load or ensure proper heat sinking and cooling strategies are in place.

  • Physical Package: Consider the IC's size and pin configuration, especially if space is limited on your PCB. Some ICs come in small packages ideal for compact designs.

For a deeper breakdown of each of these characteristics, see TI's webpage about power supply selection.

The LM2596 IC: Our Choice

For this project, we'll be using the LM2596 from Texas Instruments, a versatile and cost-effective buck converter IC. Here's why it's a great choice:

  • Input Voltage Range: It supports a wide input range (up to 40V), making it suitable for a variety of power sources, including 12V or 24V power supplies.
  • Adjustable Output: The LM2596 allows easy adjustment of the output voltage, perfect for projects where you need flexibility (such as stepping down to 3.3V for the ESP32).
  • Built-in Protections: It includes essential protections like overcurrent and thermal shutdown, which make it robust for different use cases.
  • Efficiency: With efficiencies of up to 90%, it's ideal for applications where power conservation and heat management are critical.
  • Switching Frequency: The IC operates at 150 kHz, providing a balance between component size and efficiency.

Using AI to Select the Best IC

We can also ask Flux, the AI design assistant in Flux Editor. Flux can assist in every part of the PCB creation process, from initial brainstorming, to schematic wiring, and layout as well. All of which we'll see further below.

  • Do you have advice for selecting an IC for a buck converter module? What parameters are important?

Prebuilt References in Flux Editor

Flux Editor's user-contributed library also contains a variety of reference designs you can base your own designs on. Simply search the library for what you're looking for, clone the project, and work from there.

In other words, there may already be a variety of buck converters, regulators, or other pre-made circuit designs made by other members of the community. With Flux Editor's ability to fork or clone, you can easily modify pre-made board for your own needs.

In our case, we'll be starting completely from scratch.

Best Practices for IC Selection

  1. Always check the datasheet: Manufacturer datasheets contain critical information about operating conditions, thermal characteristics, and recommended circuit configurations
  2. Consider future requirements: Select an IC that can handle slightly more than your current needs to accommodate potential future expansions
  3. Evaluate total solution cost: Sometimes a more expensive IC might reduce the cost of external components or simplify the design
  4. Verify availability: Check that your chosen IC is readily available and not facing supply chain issues
  5. Test before committing: If possible, prototype your design with the selected IC before finalizing your PCB design

Troubleshooting Common Issues

Thermal Problems

  • If your IC is getting too hot, check that you've provided adequate copper area for heat dissipation
  • Verify that your input voltage isn't too high above your output voltage, which can reduce efficiency
  • Consider adding a heatsink for high-current applications

Unstable Output Voltage

  • Check that your feedback resistors are the correct values and properly connected
  • Verify that your output capacitor meets the minimum capacitance and ESR requirements
  • Ensure that your inductor has the appropriate current rating and inductance value

Noise Issues

  • Add input and output filtering capacitors as recommended in the datasheet
  • Keep high-current paths short and wide to minimize inductance
  • Consider adding a snubber circuit if switching noise is problematic

What's Next

Now that you've selected the LM2596 IC for your buck converter, you're ready to move on to the next steps:

By following this guide, you've taken the first crucial step in creating a reliable power supply for your ESP32 or other microcontroller projects.


Previous

Power Regulator

Next

2 – PCB Layout