A Wheatstone bridge looks like four resistors in a diamond with a galvanometer across the middle. When the bridge is balanced the galvanometer reads zero, and that gives a way to measure an unknown resistance. Here is the circuit solved in code. (I build PractiSci , which has a free Wheatstone bridge lab.)
The balance condition
With resistors P and Q in one arm pair and R and S in the other, the bridge balances when P/Q = R/S. So an unknown S is found from S = R Q / P.
const unknown = ( P , Q , R ) => R * Q / P ; console . log ( unknown ( 100 , 200 , 50 ) ) ; // 100 ohm
Enter fullscreen mode
Exit fullscreen mode
Solving the full bridge
To see what the galvanometer reads away from balance, solve the two middle node voltages.…