How to compute diode voltage using the Shockley equation in Python using UliEngineering
You can easily compute the voltage across a diode using the Shockley equation using the UliEngineering Python library:
shockley_diode_voltage.py
from UliEngineering.Electronics.Diode import *
from UliEngineering.EngineerIO import *
voltage = shockley_diode_voltage(current="10mA", saturation_current="1pA")
print(f"Diode voltage: {format_value(voltage, 'V')}")Example output
shockley_diode_voltage_output.txt
Diode voltage: 592 mVCheck 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