Python: Spannungsteiler-unterer-Widerstand nach Verhältnis mit UliEngineering berechnen
English
Deutsch
Du kannst leicht den unteren Widerstand eines Spannungsteilers berechnen, wenn der oberen Widerstandswert und das Teilerverhältnis gegeben sind, mit der UliEngineering-Python-Bibliothek:
bottom_resistor_by_ratio.py
from UliEngineering.Electronics.VoltageDivider import *
from UliEngineering.EngineerIO import *
# Unterer Widerstand für 10k oberen Widerstand und 0,5 Verhältnis berechnen
rbottom = bottom_resistor_by_ratio("10k", 0.5)
print(f"Unterer Widerstand (Verhältnis 0,5, oben 10k): {format_value(rbottom, 'Ω')}")
# Unterer Widerstand für 9k oberen Widerstand und 0,1 Verhältnis berechnen
rbottom = bottom_resistor_by_ratio("9k", 0.1)
print(f"Unterer Widerstand (Verhältnis 0,1, oben 9k): {format_value(rbottom, 'Ω')}")Beispielausgabe
bottom_resistor_by_ratio_output.txt
Unterer Widerstand (Verhältnis 0,5, oben 10k): 10.0 kΩ
Unterer Widerstand (Verhältnis 0,1, oben 9k): 1.00 kΩDer untere Widerstand wird mit der Formel $R_{unten} = R_{oben} \times \frac{\text{Verhältnis}}{1 - \text{Verhältnis}}$ berechnet, wobei das Verhältnis $V_{out}/V_{in}$ ist.
Verwandte Beiträge
- How to compute voltage divider resistors by ratio in Python using UliEngineering
- How to compute voltage divider current 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