Como calcular o ciclo de trabalho do regulador buck em Python usando UliEngineering

Você pode calcular facilmente o ciclo de trabalho de um regulador buck usando a biblioteca Python UliEngineering:

TechOverflow calculators:
You can enter values with SI suffixes like 12.2m (equivalent to 0.012) or 14k (14000) or 32u (0.000032).
The results are calculated while you type and shown directly below the calculator, so there is no need to press return or click on a Calculate button.
V
V
buck_regulator_duty_cycle.py
from UliEngineering.Electronics.SwitchingRegulator import *

# Calcular ciclo de trabalho para regulador buck de 12V para 5V
duty_cycle = buck_regulator_duty_cycle("12V", "5V")
print(f"Duty cycle (12V to 5V): {duty_cycle:.2%}")

# Calcular ciclo de trabalho para regulador buck de 24V para 3.3V
duty_cycle = buck_regulator_duty_cycle("24V", "3.3V")
print(f"Duty cycle (24V to 3.3V): {duty_cycle:.2%}")

Exemplo de saída

buck_regulator_duty_cycle_output.txt
Duty cycle (12V to 5V): 41.67%
Duty cycle (24V to 3.3V): 13.75%

O ciclo de trabalho do regulador buck é calculado usando a fórmula: $D = \frac{V_{out}}{V_{in}}$


Check out similar posts by category: Calculators, Electronics, Python