9 ms·
Differential measurements cancelling out unwanted terms is a common "trick" in electronics, and explains why Ethernet cables come wired as 4 twisted pairs. Alo
by compumike 6y ago
Differential measurements cancelling out unwanted terms is a common "trick" in electronics, and explains why Ethernet cables come wired as 4 twisted pairs.
Along similar lines, the "Translinear Principle" [1] may be another fun mathematical-relationship-turned-practical-electronics-tool to explore: it takes advantage of the logarithmic relationship between voltage and current in a PN junction -- specifically a bipolar junction transistor (BJT).
Since log(X) + log(Y) = log(X*Y), you can make very simple analog circuits which compute, for example, a square [2] or a square root [3] using just 4 transistors. These can actually be quite high-performance, low-power-consumption circuits. (JavaScript simulations attached; just click the link and then "Run DC Sweep".)
[1] https://en.wikipedia.org/wiki/Translinear_circuit https://en.wikipedia.org/wiki/Translinear_circuit
[2] https://www.circuitlab.com/editor/33yksg85qf3s/?mode=simulate https://www.circuitlab.com/editor/33yksg85qf3s/?mode=simulat...
[3] https://www.circuitlab.com/editor/rfc7h79pvgtb/?mode=simulate https://www.circuitlab.com/editor/rfc7h79pvgtb/?mode=simulat...
- cosmojg 6y agoWhy haven't analog circuits taken off yet in mobile computing and other spaces? They seem great for things like machine learning and possibly superior to traditional digital circuits. What are the trade-offs?
- stefan_ 6y agoHuge power consumption, extraordinary costs for precision components.
- dreamcompiler 6y agoPower is a big deal with analog. Power wasted in heating a device is (I^2)R where I is the current through and R is the effective resistance of the device. Power wasted is obviously 0 if R=0. Because I=V/R, power wasted is also 0 if R is very high (because in that case I approaches 0). Power wasted is highest if R is between 0 and "very high." This third case is where analog electronics like to live. The first two cases are where digital electronics lives. And that's why switching power supplies and Class D amplifiers are so efficient: Their effective R values spend most of the time near zero or "high" but not much time in between. This is also why even in digital circuits higher clock speed means more power: More transistor transitions between "fully on" and "fully off" mean more time spent in between in the high power dissipation regime.
- KMag 6y agoBack in the late 90s, a mechanical engineer on the MIT solar car team was explaining the latest high-efficiency motor controllers for brushless DC motors, and my degree is also in Mechanical Engineering, so this could be way off. However, as explained to me, the highest efficiency brushless DC motor controllers in the late 1990s used a phase-locked loop to get some of the off periods in the square wave in the power conversion stage to be in sync with the switches between coils in the motor. Transistors don't switch instantly, and a good deal of your power loss is during the transition between fully off and fully on. By synchronizing the two parts of the motor controller, you get the coil changes to happen when that part of the controller is seeing dips in its power input, so you get less loss.
- ipsum2 6y ago> extraordinary costs for precision components As demonstrated by SGD, Hogwild, and quantization, ML works fine without precise numbers.
- compumike 6y agoIt isn't so much that analog is expensive, but digital gates are really really really cheap, robust to noise and interference (except for designed-in noise like floating point quantization error), and often field-configurable/programmable/etc. This isn't entirely fair, but: ANALOG: a TL082 op-amp has ~30 analog transistors and costs $0.10 = $0.003 per transistor. DIGITAL: a GeForce 2080 Ti has ~18.6 billion digital transistors and MSRP $799 = $0.00000004 per transistor. The kind of analog computation I'm demonstrating requires that the 4 BJT transistors be well matched to each other, which can be expensive in terms of silicon die area. Digital computation doesn't require well-matched transistors. It requires that each of the individual transistors is just barely good enough relative to some absolute threshold. (And if it doesn't, we'll just clock the chip slower!) Of course, there are tons of critical analog circuits in your smartphone. The RF interfaces for cell/wifi/BT, the capacitive touchscreen, the cameras, the battery management system, audio, display... But given the cost difference and other advantages, it makes sense to do only what must be done in the analog domain, then convert to digital and do the rest.
- hpcjoe 6y agoheh ... way ... way before digital computers were invented, analog computers, mechanical, and electromechanical, were implemented. A great example is the comparison circuit that keeps your house at nearly constant temperatures. It started out as a bimetallic stripe and a mercury switch to turn a furnace on or off. Electronic circuits, doing similar but more complex things came later. If you think about it, the fastest sorting algorithm is O(n) via a mechanical device. Parallel versions of these sorting mechanisms are used to bin fruits and vegetables for packing and shipping. They are all analog computers.
- analog31 6y agoPropagation of noise is a big deal. "Noise immunity" is one of the defining features of digital systems. The copy is identical to the original, even over many generations of copying. While ML can tolerate some noise, the sheer amount that can pile up from one end to the other of a signal chain might still give pause. This is why some of the pioneers of information theory and digital systems worked for the phone company. ;-)
- 8note 6y agoIt's really.jard.to.cjamge.which resistor is soldered to the circuit
- bacon_waffle 6y ago> Differential measurements ... explains why Ethernet cables come wired as 4 twisted pairs. The pairs in Ethernet also allow use of transformers, so there's no need for a common ground between the devices the cable connects. Balanced audio connections might be a better example of a differential signal, in that instance to reject noise.