Skip to content

Commit ac189be

Browse files
Refine Wheatstone Bridge explanation
Updated docstring to provide a clearer explanation of the Wheatstone Bridge, its balance condition, and applications.
1 parent 2c15b8c commit ac189be

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

electronics/wheatstone_bridge.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ def wheatstone_solver(
66
resistance_1: float, resistance_2: float, resistance_3: float
77
) -> float:
88
"""
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-
---------------
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.
1625
1726
Usage examples:
1827
>>> wheatstone_solver(resistance_1=2, resistance_2=4, resistance_3=5)

0 commit comments

Comments
 (0)