Sub topic 7
Switching Regulators: Buck, Boost, and Buck-Boost
Assume you know voltage, current, resistance, and basic Arduino wiring. You should also understand that power is measured in watts:
\[ P = V \times I \]
A switching regulator is a circuit that changes one DC voltage to another by rapidly turning current on and off. An inductor, capacitor, and control circuit smooth the switched energy into a steady output. Switching regulators usually waste less energy as heat than linear regulators.
The three main types
| Regulator | Input compared with output | Typical use |
|---|---|---|
| Buck | Input higher than output | 9 V battery to regulated 5 V |
| Boost | Input lower than output | 3.7 V Li-ion cell to regulated 5 V |
| Buck-boost | Input may be higher or lower | Battery voltage changing around a fixed output |
A buck converter steps voltage down. For example, it can convert a 9 V battery to 5 V for an Arduino circuit.
A boost converter steps voltage up. A single Li-ion cell may range from about 4.2 V when full to about 3.0 V when nearly empty. A boost converter can produce a steady 5 V during that range.
A buck-boost converter can step voltage up or down. It is useful when the battery voltage crosses the desired output voltage. For example, a two-cell battery might be above 5 V when full and below 5 V later. A buck-boost converter can maintain 5 V throughout.
Efficiency and input current
Switching regulators are rated by efficiency, the fraction of input power delivered to the load. A regulator that is 90% efficient still loses 10% as heat.
Because power is approximately conserved, stepping voltage down increases input current relative to output current. Estimate the input current with:
def input_current(output_voltage, output_current, input_voltage, efficiency):
output_power = output_voltage * output_current
return output_power / (input_voltage * efficiency)
# A 5 V, 0.2 A load from a 9 V battery through a 90% efficient buck
current = input_current(5.0, 0.2, 9.0, 0.90)
print(f"{current:.3f} A")The result is about 0.123 A. The battery current is lower than the load current because the battery voltage is higher, but it is higher than an ideal calculation because of losses.
Selection and failure modes
Check these specifications before choosing a module:
- Input voltage range, including the battery's full and empty limits.
- Adjustable or fixed output voltage.
- Maximum continuous output current, with margin above your measured load.
- Efficiency at your actual input voltage and load.
- Ripple and switching noise if using sensors, radios, or audio circuits.
- Protection against overcurrent, overheating, and reverse polarity.
A converter rated for 2 A may need airflow or a heatsink to deliver 2 A continuously. Modules can also produce a voltage spike when connected, especially with long wires or a light load. Measure the output with a multimeter before connecting the Arduino.
Exercise
Exercise
A battery ranges from 3.0 V to 4.2 V, but your circuit needs a steady 3.3 V. Which regulator type should you choose, and why?
Show answer
Choose a buck-boost converter because the battery starts above 3.3 V and later falls below 3.3 V.