Como calcular as tensões de limiar de histerese em Python usando UliEngineering
Você pode calcular facilmente as tensões de limiar de histerese usando a biblioteca Python UliEngineering:
from UliEngineering.Electronics.Hysteresis import hysteresis_threshold_voltages
from UliEngineering.EngineerIO import *
# Calcular tensões de limiar para referência 5V com histerese 10%
low_v, high_v = hysteresis_threshold_voltages("5V", 0.10)
print(f"Low threshold (5V, 10% hysteresis): {format_value(low_v, 'V')}")
print(f"High threshold (5V, 10% hysteresis): {format_value(high_v, 'V')}")
# Calcular tensões de limiar para referência 12V com histerese 20%
low_v, high_v = hysteresis_threshold_voltages("12V", 0.20)
print(f"Low threshold (12V, 20% hysteresis): {format_value(low_v, 'V')}")
print(f"High threshold (12V, 20% hysteresis): {format_value(high_v, 'V')}")Exemplo de saída
Low threshold (5V, 10% hysteresis): 2.25 V
High threshold (5V, 10% hysteresis): 2.75 V
Low threshold (12V, 20% hysteresis): 4.80 V
High threshold (12V, 20% hysteresis): 7.20 VAs tensões de limiar de histerese representam os níveis de tensão reais nos quais um comparador ou circuito de comutação mudará de estado. Estes limiares são calculados como porcentagens de uma tensão de referência, criando uma banda morta que previne comutação indesejada devido a ruído ou flutuações de sinal.
As tensões de limiar são calculadas usando as fórmulas: $V_{low} = V_{ref} \times \frac{1 - h}{2}$ e $V_{high} = V_{ref} \times \frac{1 + h}{2}$, onde $V_{ref}$ é a tensão de referência e $h$ é a porcentagem de histerese. O limiar inferior é definido abaixo do ponto médio, enquanto o limiar superior é definido acima do ponto médio.
Posts relacionados
- Como calcular as proporções de limiar de histerese em Python usando UliEngineering
- Como calcular o resistor de histerese em Python usando UliEngineering
- Como calcular a constante de tempo RC em Python usando UliEngineering