UliEngineering Python ライブラリを使うと、オームの法則を用いて抵抗に流れる電流を簡単に計算できます。
オンライン計算機: 抵抗に流れる電流を求める計算機
current_through_resistor.py
from UliEngineering.Electronics.Resistors import *
from UliEngineering.EngineerIO import *
# 5V で 1kΩ 抵抗に流れる電流を計算
current = current_through_resistor("5V", "1k")
print(f"Current through 1kΩ at 5V: {format_value(current, 'A')}")
# 3.3V で 100Ω 抵抗に流れる電流を計算
current = current_through_resistor("3.3V", "100Ω")
print(f"Current through 100Ω at 3.3V: {format_value(current, 'A')}")出力例
current_through_resistor_output.txt
Current through 1kΩ at 5V: 5.00 mA
Current through 100Ω at 3.3V: 33.0 mA電流はオームの法則を使って計算されます: $I = \frac{V}{R}$
関連記事
この記事が役に立った場合は、TechOverflow での新しい記事の調査と公開を支援するため、「Buy Me a Coffee」でのご支援、または PayPal 経由でのご寄付をご検討ください