如何使用 Python 通过反馈电阻计算 Buck/Boost/LDO 输出电压
你可以使用 UliEngineering 库来计算电压转换器的输出电压。
首先,你需要知道 Vfb,即转换器 IC 的反馈电压,你需要从数据手册中读取。对于此示例,我们将使用 AP3012 的反馈电压 1.25V。
voltage_feedback.py
from UliEngineering.Electronics.VoltageDivider import feedback_actual_voltage
from UliEngineering.EngineerIO import auto_format
# 计算电压
output_voltage = feedback_actual_voltage("220k", "12.1k", vfb="1.25V")
# output_voltage == 23.97727272727273
# ... 或格式化并打印
auto_format(feedback_actual_voltage, "220k", "12.1k", vfb="1.25V") # 打印 "24.0V"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