Como calcular o resistor inferior do divisor de tensão por razão em Python usando UliEngineering
Você pode calcular facilmente o resistor inferior de um divisor de tensão dado o valor do resistor superior e a razão de divisão usando a biblioteca Python UliEngineering:
Ω
⚠
⚠
bottom_resistor_by_ratio.py
from UliEngineering.Electronics.VoltageDivider import *
from UliEngineering.EngineerIO import *
# Calcular resistor inferior para resistor superior de 10k e razão 0.5
rbottom = bottom_resistor_by_ratio("10k", 0.5)
print(f"Bottom resistor (ratio 0.5, top 10k): {format_value(rbottom, 'Ω')}")
# Calcular resistor inferior para resistor superior de 9k e razão 0.1
rbottom = bottom_resistor_by_ratio("9k", 0.1)
print(f"Bottom resistor (ratio 0.1, top 9k): {format_value(rbottom, 'Ω')}")Exemplo de saída
bottom_resistor_by_ratio_output.txt
Bottom resistor (ratio 0.5, top 10k): 10.0 kΩ
Bottom resistor (ratio 0.1, top 9k): 1.00 kΩO resistor inferior é calculado usando a fórmula: $R_{bottom} = R_{top} \times \frac{ratio}{1 - ratio}$, onde a razão é $V_{out}/V_{in}$.
Posts relacionados
- Como calcular resistores do divisor de tensão por razão em Python usando UliEngineering
- Como calcular a corrente do divisor de tensão em Python usando UliEngineering
- Como calcular a potência do divisor de tensão em Python usando UliEngineering
Check out similar posts by category:
Calculators, 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