Skip to content

Commit 39a4cbe

Browse files
authored
Apply suggestion from @cclauss
1 parent 8305858 commit 39a4cbe

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

electronics/wheatstone_bridge.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,13 @@ def wheatstone_solver(
66
resistance_1: float, resistance_2: float, resistance_3: float
77
) -> float:
88
"""
9-
Wheatstone Bridge is an electrical circuit used to accurately measure
10-
an unknown resistance by balancing two legs of a bridge circuit.
11-
12-
The bridge is said to be balanced when no current flows
13-
through the galvanometer connected between the midpoints
14-
of the two voltage dividers.
15-
Balance condition:
16-
R1 / R2 = R3 / R4
17-
18-
Applications:
19-
- Measurement of unknown resistance
20-
- Strain gauge circuits
21-
- Sensor calibration
22-
This function can calculate the unknown resistance in an wheatstone
23-
network, given that the three other resistances
24-
in the network are known.
9+
This function can calculate the unknown resistance in an wheatstone network,
10+
given that the three other resistances in the network are known.
11+
The formula to calculate the same is:
12+
13+
---------------
14+
|Rx=(R2/R1)*R3|
15+
---------------
2516
2617
Usage examples:
2718
>>> wheatstone_solver(resistance_1=2, resistance_2=4, resistance_3=5)

0 commit comments

Comments
 (0)