Spannungsteiler-Ausgangsspannung mit Python berechnen
English
Deutsch
Du kannst die UliEngineering-Bibliothek verwenden, um die Ausgangsspannung eines Spannungsteilers aus seinem oberen Widerstand, unteren Widerstand und seiner Eingangsspannung zu berechnen:
voltage_divider_example.py
from UliEngineering.Electronics.VoltageDivider import *
# Spannungsteiler mit 1MΩ- und 150kΩ-Widerständen & 24V Eingangsspannung
print(voltage_divider_voltage("1MΩ", "150kΩ", "24V")) # Gibt 3.1304347826086953 ausDu kannst diese Spannung auch direkt mit auto_format() formatieren:
voltage_divider_format_example.py
from UliEngineering.EngineerIO import auto_format
# Als Volt formatiert ausgeben
print(auto_format(voltage_divider_voltage, "1MΩ", "150kΩ", "24V")) # Gibt "3.13 V" ausCheck 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