simplipfy.WheatstoneBridge package

Submodules

simplipfy.WheatstoneBridge.solver module

simplipfy.WheatstoneBridge.solver.bridgeIsBalanced(R1: float, R2: float, R3: float, R4: float) bool
Parameters:
  • R1 – Resistance R1 in ohm

  • R2 – Resistance R2 in ohm

  • R3 – Resistance R3 in ohm

  • R4 – Resistance R4 in ohm

Check if the Wheatstone bridge is balanced. The bridge is balanced if the ratio of the resistances is equal.

simplipfy.WheatstoneBridge.solver.calcMissingVal(R1, R2, R3, R4, Uq, Um) tuple[str, float]
Parameters:
  • R1 – Resistance R1 in ohm

  • R2 – Resistance R2 in ohm

  • R3 – Resistance R3 in ohm

  • R4 – Resistance R4 in ohm

  • Uq – Voltage across the voltage source

  • Um – Voltage between point A (between R1 and R2) and B (between R3 and R4) in Weathstone bridge R1 and R2 in series, R3 and R4 in series, R1+R2 parallel R3+R4

Returns:

tuple[varName, varVal] value of the missing variable, if the bridge is balanced there are infinitely many solutions for Uq, in this case for varVal 0 is returned

Calculate the missing value of the Wheatstone bridge equation

simplipfy.WheatstoneBridge.solver.equationIsValid(R1: float, R2: float, R3: float, R4: float, Uq: float, Um: float) bool
Parameters:
  • R1 – Resistance R1

  • R2 – Resistance R2

  • R3 – Resistance R3

  • R4 – Resistance R4

  • Uq – Voltage of the source in Volts

  • Um – Voltage between point A (between R1 and R2) and B (between R3 and R4) in Weathstone bridge R1 and R2 in seires, R3 and R4 in series, R1+R2 parallel R3+R4

Check if the equation: Um = Uq * (R2/(R1+R2) - R4/(R3+R4) is valid for the given values of R1, R2, R3, R4, Uq, and Um. The equation is valid if the left-hand side equals the right-hand side. Uses sympy Rational to avoid floating point errors.

Module contents