如何在 Python 中绘制 MOSFET 栅极电容与栅极驱动电压的关系
使用 UliEngineering,你可以轻松绘制 MOSFET 的等效栅极电容与栅极驱动电压的关系。注意 MOSFET 的栅极不是简单的电容,而是包含(假设为恒定的)电荷。栅极电容是在给定电压下存储此电荷所需的等效电容。
在此示例中,我们将绘制总栅极电荷为 94 nC 的 IRF540N MOSFET 的栅极电容。
plot_mosfet_gate_capacitance.py
from UliEngineering.Electronics.MOSFET import mosfet_gate_capacitance_from_gate_charge
from UliEngineering.EngineerIO import normalize_numeric
import matplotlib.pyplot as plt
import numpy as np
# Define the MOSFET parameters
Qg = normalize_numeric("94 nC")
# Plot starting from 2V min threshold voltage
Vg_th = normalize_numeric("2 V")
Vgs = np.linspace(Vg_th, 20, 1000) # V
# Calculate the gate capacitance
Cgs = mosfet_gate_capacitance_from_gate_charge(Qg, Vgs)
# Plot the gate capacitance
plt.style.use('ggplot')
plt.plot(Vgs, Cgs*1e9)
plt.xlabel("Gate drive voltage (V)")
plt.ylabel("Gate capacitance (nF)")
plt.title("MOSFET Gate capacitance vs gate drive voltage")
plt.savefig("MOSFET-Gate-Capacitance.svg")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