Buck Converter Tutorial: Part Selection for Power Regulation
Buck Converter Tutorial: Part Selection for Power Regulation
Learn how to select the optimal IC for your buck converter project, with a focus on the LM2596 for powering ESP32 and similar microcontrollers.

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 copilot, Flux's browser-based electronics AI design assistant. Copilot 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.
@copilot: Do you have advice for selecting an IC for a buck converter module? What parameters are important?

Prebuilt References in Flux
Flux'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'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
- Always check the datasheet: Manufacturer datasheets contain critical information about operating conditions, thermal characteristics, and recommended circuit configurations
- Consider future requirements: Select an IC that can handle slightly more than your current needs to accommodate potential future expansions
- Evaluate total solution cost: Sometimes a more expensive IC might reduce the cost of external components or simplify the design
- Verify availability: Check that your chosen IC is readily available and not facing supply chain issues
- 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:
- Creating the Schematic - Learn how to design the circuit diagram for your buck converter
- PCB Layout - Discover best practices for laying out your buck converter PCB
- Testing and Validation - Learn how to verify your buck converter's performance
By following this guide, you've taken the first crucial step in creating a reliable power supply for your ESP32 or other microcontroller projects.