Puedes encontrar fácilmente el siguiente valor de resistor estándar inferior usando la librería Python UliEngineering:
next_lower_resistor.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *
# Encontrar el siguiente valor E96 inferior a 1.5k
resistor = next_lower_resistor("1.5k")
print(f"Sig. inferior a 1.5k: {format_value(resistor, 'Ω')}")
# Encontrar el siguiente valor E24 inferior a 120Ω
resistor = next_lower_resistor("120Ω", sequence=e24)
print(f"Sig. inferior a 120Ω (E24): {format_value(resistor, 'Ω')}")Ejemplo de salida
next_lower_resistor_output.txt
Sig. inferior a 1.5k: 1.47 kΩ
Sig. inferior a 120Ω (E24): 100 ΩLa función next_lower_resistor() encuentra el siguiente valor de resistor estándar inferior de la serie E especificada (por defecto es E96).
Echa un vistazo a artículos similares por categoría:
Electronics Python
Si este artículo te ha ayudado, considera invitarme a un café o hacer una donación vía PayPal para apoyar la investigación y publicación de nuevos artículos en TechOverflow