Menu

Solving a Wheatstone bridge in JavaScript: balance and galvanometer current
📰

Solving a Wheatstone bridge in JavaScript: balance and galvanometer current

DEV Community: javascript·Surendra Singh Kamboj·14 days ago
#jhVlpF7K
Long article (566 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.