Python: Tastverhältnis eines Buck-Reglers mit UliEngineering berechnen
English
Deutsch
Du kannst leicht das Tastverhältnis eines Buck-Reglers mit der UliEngineering-Python-Bibliothek berechnen:
buck_regulator_duty_cycle.py
from UliEngineering.Electronics.SwitchingRegulator import *
# Tastverhältnis für 12V auf 5V Buck-Regler berechnen
duty_cycle = buck_regulator_duty_cycle("12V", "5V")
print(f"Tastverhältnis (12V auf 5V): {duty_cycle:.2%}")
# Tastverhältnis für 24V auf 3.3V Buck-Regler berechnen
duty_cycle = buck_regulator_duty_cycle("24V", "3.3V")
print(f"Tastverhältnis (24V auf 3.3V): {duty_cycle:.2%}")Beispielausgabe
buck_regulator_duty_cycle_output.txt
Tastverhältnis (12V auf 5V): 41.67%
Tastverhältnis (24V auf 3.3V): 13.75%Das Tastverhältnis des Buck-Reglers wird mit der Formel $D = \frac{V_{out}}{V_{in}}$ berechnet.
Check out similar posts by category:
Electronics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow