How to compute diode thermal voltage in Python using UliEngineering

You can easily compute the thermal voltage of a diode using the UliEngineering Python library:

diode_thermal_voltage.py
from UliEngineering.Electronics.Diode import *
from UliEngineering.EngineerIO import *

thermal_voltage = diode_thermal_voltage("25°C")
print(f"Thermal voltage: {format_value(thermal_voltage, 'V')}")

Example output

diode_thermal_voltage_output.txt
Thermal voltage: 25.7 mV

Check out similar posts by category: Electronics, Python