Python: Spannungsteiler-Strom mit UliEngineering berechnen
English
Deutsch
Du kannst leicht den Strom durch einen Spannungsteiler mit der UliEngineering-Python-Bibliothek berechnen:
voltage_divider_current.py
from UliEngineering.Electronics.VoltageDivider import *
from UliEngineering.EngineerIO import *
# Strom für 10k und 10k Widerstände bei 5V Eingang berechnen
current = voltage_divider_current("5V", "10k", "10k")
print(f"Strom durch 10k+10k-Teiler bei 5V: {format_value(current, 'A')}")
# Strom für 1k und 9k Widerstände bei 12V Eingang berechnen
current = voltage_divider_current("12V", "1k", "9k")
print(f"Strom durch 1k+9k-Teiler bei 12V: {format_value(current, 'A')}")Beispielausgabe
voltage_divider_current_output.txt
Strom durch 10k+10k-Teiler bei 5V: 250 µA
Strom durch 1k+9k-Teiler bei 12V: 1.20 mADer Strom wird mit dem Ohmschen Gesetz berechnet: $I = \frac{V_{in}}{R_{oben} + R_{unten}}$
Verwandte Beiträge
- How to compute voltage divider resistors by ratio in Python using UliEngineering
- How to compute voltage divider bottom resistor by ratio in Python using UliEngineering
- How to compute voltage divider power 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