Como calcular a corrente do divisor de tensão em Python usando UliEngineering
Você pode calcular facilmente a corrente fluindo através de um divisor de tensão usando a biblioteca Python UliEngineering:
V
⚠
Ω
⚠
Ω
⚠
voltage_divider_current.py
from UliEngineering.Electronics.VoltageDivider import *
from UliEngineering.EngineerIO import *
# Calcular corrente para resistores de 10k e 10k a 5V de entrada
current = voltage_divider_current("5V", "10k", "10k")
print(f"Current through 10k+10k divider at 5V: {format_value(current, 'A')}")
# Calcular corrente para resistores de 1k e 9k a 12V de entrada
current = voltage_divider_current("12V", "1k", "9k")
print(f"Current through 1k+9k divider at 12V: {format_value(current, 'A')}")Exemplo de saída
voltage_divider_current_output.txt
Current through 10k+10k divider at 5V: 250 µA
Current through 1k+9k divider at 12V: 1.20 mAA corrente é calculada usando a lei de Ohm: $I = \frac{V_{in}}{R_{top} + R_{bottom}}$
Posts relacionados
- Como calcular resistores do divisor de tensão por razão em Python usando UliEngineering
- Como calcular o resistor inferior do divisor de tensão por razã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