Python: Widerstandswert aus Spannung und Strom mit UliEngineering berechnen
English
Deutsch
Du kannst leicht den Widerstandswert bei gegebener Spannung und Strom mit dem Ohmschen Gesetz und der UliEngineering-Python-Bibliothek berechnen:
resistor_by_voltage_and_current.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *
# Widerstandswert für 5V bei 5mA berechnen
resistor = resistor_by_voltage_and_current("5V", "5mA")
print(f"Widerstand für 5V bei 5mA: {format_value(resistor, 'Ω')}")
# Widerstandswert für 3,3V bei 33mA berechnen
resistor = resistor_by_voltage_and_current("3.3V", "33mA")
print(f"Widerstand für 3,3V bei 33mA: {format_value(resistor, 'Ω')}")Beispielausgabe
resistor_by_voltage_and_current_output.txt
Widerstand für 5V bei 5mA: 1.00 kΩ
Widerstand für 3,3V bei 33mA: 100 ΩDer Widerstandswert wird mit dem Ohmschen Gesetz berechnet: $R = \frac{V}{I}$
Verwandte Beiträge
- How to compute current through resistor in Python using UliEngineering
- How to compute voltage across resistor in Python using UliEngineering
- How to compute power from current and voltage in Python using UliEngineering
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