#wheatstonebridge

2022-03-31

Circuit VR: The Wheatstone Bridge Analog Computer

We are always impressed with something so simple can actually be so complex. For example, what would you think goes into an analog computer? Of course, a "real" analog computer has opamps that can do logarithms, square roots, multiply, and divide. But would it surprise you that you can make an analog device like a slide rule using a Wheatstone bridge -- essentially two voltage dividers. You don't even need any active devices at all. It is an old idea and one that used to show up in electronic magazines now and again. I'll show you how they work and simulate the device so you don't have to build it unless you just want to.

A voltage divider is one of the easiest circuits in the world to analyze. Consider two resistors Ra and Rb in series. Voltage comes in at the top of Ra and the bottom of Rb is grounded. The node connecting Ra and Rb -- let's call it Z -- is what we'll consider the output.

Let's say we have a 10 V battery feeding A and a perfect voltmeter that doesn't load the circuit connected to Z. By Kirchoff's current law we know the current through Ra and Rb must be the same. After all, there's nowhere else for it to go. We also know the voltage drop across Ra plus the voltage drop across Rb must equal to 10 V. Kirchoff, conservation of energy, whatever you want to call it. Let's call these quantities I, Va, and Vb.

There are many ways to go from here, but let's accept that the current through two series resistors will be the same as if it were one resistor of equal value. That is, a 1 KΩ and a 2 KΩ resistor in series will draw as much current as a 3 KΩ resistor. That means Ohm's law tells us:

I = 10/(Ra+Rb)

Now you can solve for each voltage drop:

Va = I Ra

Vb = I Rb

In fact, our voltmeter at Z will measure Vb since it is grounded.

Big Hairy Deal

Of course, you probably know about voltage dividers. But we were going to talk about Wheatstone bridges. The truth is these are just two voltage dividers in parallel and you measure the voltage between the two outputs (call them Z1 and Z2). You often see this circuit drawn like a diamond, but don't let that fool you. It is still just two voltage dividers.

Without using any math, you can see that if the voltage dividers are the same then Z1 and Z2 will be the same and, therefore, no current will flow because the voltage between the two points is zero. What happens when the divider is not the same? There will be more voltage on one Z point than the other.

Historically, this was used to measure resistance. You could use two matched resistors in part of the bridge, have an unknown resistance in one of the remaining legs and a variable resistor with a dial calibrated to read ohms. You'd turn the dial until a meter read zero and read the resistance value from the dial. If the power source is AC, you can also measure reactance using a similar circuit.

But the Slide Rule?

So how do you get from a piece of antique test equipment to a slide rule? Let's change the bridge so the left-hand divider has resistors Ra and Rb while the other one has Rc and Rd. We can look at the algebra:

Z1=V (Rb/(Ra + Rb))

Z2=V (Rd/(Rc + Rd))

We want Z1 to equal Z2 so:

V (Rb/(Ra + Rb)) = V (Rd/(Rc + Rd))

We can divide both sides by V and get rid of that term:

(Rb/(Ra + Rb)) = (Rd/(Rc + Rd))

So to balance the bridge we need:

(Ra + Rb)/Rb  = (Rc + Rd)/Rd    _reciprocal both sides_

(Ra Rd + Rb Rd) = (Rc Rb + Rb Rd)    _multiply both sides by Rb Rd_

Ra Rd = Rc Rb      _subtract Rb Rd from both sides_

Ra = (Rb Rc)/Rd    _Solve for Ra_

As a simple thought experiment, then, imagine that Rd=1. If you set Rb and Rc then you can adjust Ra to balance and the value of Ra will be the answer. Or you can set Rb to 1 and enter numbers in Rc and Rd. Once you balance Ra, you'll know the result of the division.

In practice, though, you might want to scale the result, especially for division. For example, if Rb=1, Rc=2, and Rd=1000 you would need to set A to .002 ohms which is hard to do. In that case, though, you could set Rb to a scale factor. If it were, say, 10K, then Ra can be set to 20 ohms.

Simulation

You could break out a few potentiometers and have a go at this. We'd suggest linear ones unless you are very handy at making logarithmic scale dials. But since this is Circuit VR, we'd rather do a simulation. Falstad fits the bill, but any simulator is well up to the task.

Analog slide rule simulation

There are two switches in the simulation. The top "C" switch lets you switch in the top resistor or a 10X, 100X, or 1000X range resistor for C. The bottom "D" switch lets you select a 1 ohm resistor or a variable resistor for D. The ammeter in the center shows the bridge balance and will read 0A when you are in balance.

Speaking of variable resistors, I did put sliders for each of the resistors on the right sidebar of the simulator. However, using them often puts values in like 10.002K which reads 10K on the screen and is a source of error. Of course, you'd have the same problem with real pots, so maybe that's a good simulation. However, it is better to double click the resistor you want to change and enter its value directly. Obviously, you shouldn't change the three fixed C resistors or the fixed D resistor.

Next Steps

A similar device in a 1960 Radio Electronics

If you want to see what this circuit looked like in the flesh, check out pages 48 and 49 of the June 1960 Radio Electronics. It may have even been the very article that spawned [Bil Herd's] first computer kit. A similar kit from Edmund Scientific used three potentiometers to form the bridge in a common configuration. We've even seen a version from GE that used an audio oscillator so you could hear the null point using headphones. You can see both of those on the article starting on page 65 of the December 1961 Popular Electronics. Or check out a newer build over on Hackaday.io.

It would be an easy enough rainy day project. If you have an old-fashioned mirror scale meter from an old multimeter, it would really shine in this application. Making the dials in a CAD program and printing them out would be effortless, too.

If you want a challenge, why not use an AC source along with variable capacitors and inductors to make a complex number calculator? That'd be something and if you pull it off, we'd cover it.

Meanwhile, we'd like to point out that real analog computers were not this simple. On the other hand, by definition, this is an analog computer just like a real slide rule. If you read the Radio Electronics article, you'll see it can even chain an answer into the next problem just like you would do on a slipstick.

#engineering #history #analogcomputer #falstad #sliderule #voltagedivider #wheatstonebridge

image
2021-09-18

Finding the Right Hack is Half the Battle

Sometimes you just get lucky. I had a project on my list for a long time, and it was one that I had been putting off for a few months now because I loathed one part of what it entailed -- sensitive, high-accuracy analog measurement. And then, out of the blue I stumbled on exactly the right trick, and my problems vanished in thin air. Thanks, Internet of Hackers!

The project in question is a low-vacuum regulator for "bagging" fiberglass layups. What I needed was some way to read a pressure sensor and turn on and off a vacuum pump accordingly. The industry-standard vacuum gauges are neat devices, essentially a tiny little strain gauge on a membrane between the vacuum side and the atmosphere side, in a package the size of a dime. (That it's a strain gauge is foreshadowing, but I didn't know that at the time.) I bought one for $15 ages ago, and it sat on my desk, awaiting its analog circuitry.

See, the MPX2100 runs on 12 V and puts out a signal around 40 mV on top of a 6 V offset. That voltage level is inconvenient for modern 3.3 V microcontroller ADCs, and the resolution would get clobbered by the 6 V signal if I just put a voltage divider on it. This meant whipping together some kind of instrument amplifier circuit to null out the 6 V and amplify the 40 mV for the ADC. The circuits I found online all called for 1% resistors in values I didn't have, and mildly special op-amps. No fun, for me at least. So there it sat.

Cut the blue wire or the red wire? HX711 module and pressure sensor on the left.

Until I ran into this project that machetes through the analog jungle with one part, and it happened to be one I had on hand. A vacuum pressure sensor is a strain gauge, set up like a Wheatstone bridge, just like you would use for weighing something with a load cell. The solution? A load-cell ADC chip, the HX711, found in every cheap scale or online for under a buck. The only other trick was finding a low-voltage pressure sensor to work with it, but that turns out to be easy as well, and I had one delivered in two days.

In all, this project took months of foot-dragging, but only a few clicks and five minutes of soldering once I got the right idea. The industrial applications and manufacturers' app notes all make sense if you are making hundreds or millions of these devices, where the one-time cost of prototyping up the hard bits gets amortized, but the hacker solution of using a weight-scale chip was just the ticket for a one-off. That just goes to show how useful sharing our tips and tricks can be -- you won't get this from the industry. So send us your success stories, and your useful failures too, and Read More Hackaday!

This article is part of the Hackaday.com newsletter, delivered every seven days for each of the last 200+ weeks. It also includes our favorite articles from the last seven days that you can see on the web version of the newsletter. Want this type of article to hit your inbox every Friday morning? You should sign up!

#hackadaycolumns #hardware #parts #rants #adc #hx711 #inspiration #loadcell #sharing #wheatstonebridge

image

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst