74 points · by mindcrime · 9y ago · 65 comments
Typical users went from aerospace and automotive ("will our wing or chassis oscillate badly when we hit a thermal or pothole"?) to audio (that's how they would make those Frequency Response charts for speakers) to hard disk drive head servos ("if we send the head from track X to track Y, will it get there directly, or "ring" -- slightly overshoot and then overcorrect for a while?").
One fun detail: eventually they had to encase their OpAmps in special little heaters that would keep them at a constant temperature, to avoid drift as the ambient temperature changed.
You can still occasionally buy one surplus on eBay for a few hundred dollars; they were about $10k new (in 70's dollars).
Let me point out that the description here is as understood by a pure-digital person: I didn't seem to inherit the analog gene, and as a teen couldn't grok his deeper explanations ("What do you mean 'the imaginary part of the signal'? We're in the real world; the electrons don't have any imaginary components!").
Roughly speaking, you need 2-degrees of freedom to represent a circuit: the voltage and the current. Instead of throwing "two numbers" around all the time, we create a complex number.
We call the two parts of the number "real" and "imaginary", but really... they're roughly lining up with "voltage" and "current". We just call them "real" and "imaginary" because that's what all the math guys call it.
A "purely imaginary" number in phasor world is when the current is +/- 90-degrees out of phase with the voltage. (180-degrees out of phase means the current is simply negative, going backwards).
A "purely real" number happens at 0-degrees (positive current) or 180-degrees (negative current). "Purely Real" numbers line up exactly to all of the DC-voltage experiments from beginner-level electronics.
As it turns out, all circuits are made up of resistors, capacitors, and inductors can be calculated using "simple" addition, subtraction, multiplication and division with complex numbers.
-------------
The above is a gross simplification of whats going on. More details can be found here: https://en.wikipedia.org/wiki/Phasor
https://www.amazon.com/Between-Human-Machine-Cybernetics-Tec...
I am curious to what extent an analog/digital hybrid can blend the best of both worlds, especially for something where the speed <-> precision tradeoff may somewhat favor speed. Like training neural networks.
That's where Analog comes in. You can shape and calculate microvolt and even nano-volt level signals before upscaling them to millivolts so that the CPU can handle the rest of things.
In general, digital RAM will hold a value more reliably for a longer-period of time than an analog storage device (aka: capacitor). True, RAM is implemented using capacitors (DRAM needs to be "Refreshed" as those capacitors lose value).
Its easy to "refresh" a capacitor if you only care about two states: high and low. If you're analog however and care about microvolts / nanovolts, its impossible to "refresh" capacitors.
After all, what does a capacitor at 5000uV really mean? In digital, you can refresh it back to 6000uV every few seconds. In analog, you don't know if part of the information leaked out or not.
If you are measuring a differential signal with a large high-frequency common-mode component, then it also makes sense to perform the subtraction in analog. Otherwise the inevitable small phase shift between the sampling of the two channels in your ADC will end up coupling the common-mode signal into your difference.
Doing multiplication/division/exponentiation/etc is actually a little more difficult. Typically, they are done through log amplifiers[0], of which there are plenty of monolithic versions.
[0] http://www.analog.com/media/en/training-seminars/tutorials/M...
You know, back in the era where computers were 33 MHz (That's 30-nanoseconds per clock!) with 16-bit adders and cost tens-of-thousands of dollars.
Today, things are different. We have 2GHz octcore computers in our pockets with 4GB of RAM. Analog-circuits have improved, but not nearly as much as digital circuits.
The primary issue with Analog is that we've hit the noise-floor. Getting more than 7.5 digits of accuracy on all calculations means getting rid of noise at the -75db (volts) level or 150db-watts. Case in point: 7.5 digits of analog accuracy on a 5V circuit is accurate to +/- 150-nanovolts.
At those minuscule levels of voltages and currents, simple heat, airborne static electricity, and even sound... noise... and physical movement... can disturb your calculations. (Crystal Oscillators for example are Piezoelectric and are tiny-little microphones that pick up sound / movement and convert them into voltages!! Every PCB trace is a potential antenna that may pick up a stray radio signal. Things get hard...)
Voltages are connected to the real world after all. At some point, the circuit can "feel" you breathing on it (condensation in the air changes humidity, which changes the resistance of the surrounding air. Extra heat decreases and/or increases the resistance of various components)
Today? 90% of those problems would indeed be solved much more easily with a $0.50 microcontroller. Raw speed and price drops pretty much eliminated the benefits of analog circuitry in most applications.
It's pretty much impossible to maintain a stock of any other electronic bit you need, other than maybe resistors. I'm not sure why you'd want to either. I have a ton of ICs left over from random projects. I can never find them when I need them, and even if I can find them again, I have to spend a bunch of time re-reading the datasheet.
I've realized that you can accomplish almost anything you'd like with a microcontroller and some mosfets. It might be more elegant to use a ripple counter if you have to drive a whole bunch of elements, but I'd rather just chain a bunch of microcontrollers together.
But lets say... a 1GHz DSP (specialized chip designed to perform "digital signal processing") implementing an optimized FIR or IIR filter most certainly react within nanoseconds and pick out signals in the 100MHz range.
That's still a general-purpose processor too. Switch to FPGAs or even ASICs (the fastest and most expensive of digital-logic designs), and you can probably get even faster.
----------
Analog can only get better accuracy by literally creating temperature-controlled cases for various components. (Think I'm kidding? https://www.vectron.com/products/literature_library/OCXO.pdf) Analog hit the noise-floor decades ago.
Do you happen to know the name of any of these books? I would love to play around with something like that.
http://www.keysight.com/en/pd-1000001296%3Aepsg%3Apro-pn-344...
Chapter 5 is all about precision, Chapter 8 is all about noise.
In essence, you run a worst-case error analysis over your circuit. In many cases, 1% errors can be attenuated into smaller errors with good design. If you aren't careful however, then errors grow bigger instead.
---------
On a tangent, but somewhat related note for those software people...
The methodology is kinda similar to error analysis with Floating Point arithmetic btw. You think about where error happens, and whenever possible, try to "squash" the error instead of making it grow bigger.
All double-precision Floating Point math has an error of +/- 1 bit 53-bits over. The question is what do you do with that error, and how can you prevent it from moving up. If you do things like sort your numbers from smallest to largest (in magnitude) before adding them up, and prevent subtraction (or addition of a negative number) at all costs, you can actually make your errors smaller.
If you're not careful about the order of operations... errors grow exponentially (and even faster than that with subtraction!). On the other hand... if you are careful about things... errors shrink exponentially!
The thing that makes digital attractive was actually pointed out in the 50s by John von Neumann: every digit you add to the representation buys you another factor of 10 (or 2, in the case of binary) of precision. I can't find a reference but it's in a famous von Neumann paper, and is celebrated these days by Neal Gershenfeld as one of the major things that makes digital tech work.
Lately I've become really interested in analog computing and want to explore the possibilities of analog/digital hybrid computers. If anybody has done / is doing anything fun in this regard, I would love to hear about it.
Also, there's a subreddit for Analog Computing if anyone is into that sort of thing. http://analogcomputing.reddit.com
There were several hybrid computers sold in the 60's.