Python: Strom aus Leistung und Spannung mit UliEngineering berechnen
English
Deutsch
Du kannst leicht den Strom aus Leistung und Spannung mit der UliEngineering-Python-Bibliothek berechnen:
current_by_power.py
from UliEngineering.Electronics.Power import *
from UliEngineering.EngineerIO import *
# Strom für 5W bei 5V berechnen
current = current_by_power("5W", "5V")
print(f"Strom für 5W bei 5V: {format_value(current, 'A')}")
# Strom für 6W bei 12V berechnen
current = current_by_power("6W", "12V")
print(f"Strom für 6W bei 12V: {format_value(current, 'A')}")Beispielausgabe
current_by_power_output.txt
Strom für 5W bei 5V: 1.00 A
Strom für 6W bei 12V: 500 mADer Strom wird mit der Formel $I = \frac{P}{V}$ berechnet.
Verwandte Beiträge
- How to compute power from current and voltage in Python using UliEngineering
- How to compute resistor value from voltage and power in Python using UliEngineering
- How to compute resistor current from power and resistance 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