Hacker News new | past | comments | ask | show | jobs | submit login
The Inner Beauty of Basic Electronics (ieee.org)
315 points by sohkamyung on Jan 14, 2023 | hide | past | favorite | 70 comments



> As the authors write, everything about these components is deliberately designed to meet specific technical needs, but that design leads to “accidental beauty: the emergent aesthetics of things you were never expected to see.”

Many people find beauty in art. I find beauty in engineering perfectly suited to its task. Like the stunning beauty of a gas turbine engine.


When I was a preschooler, Lego was a precision European version building brick which was a whole level up from alternatives but it was still just red and white bricks for kids to build their own little brick homes and buildings like that.

With point-to-point electronics at the time, the relatively large components were soldered into interesting 3-dimensional patterns protected by a metal chassis which normally had plain terminal strips and the underside of vacuum tube sockets to use as connection points.

With the proliferation of circuit boards, the components were lined up a lot more like Lego on a substrate but still more colorful.

Imagine every circuit board more colorful than a pile of random small Lego bricks today.

And it was even more obvious there had to be a pattern there that would be worth recognizing.

I liked building with Lego, but I liked building with this stuff a lot more.


I wirewrapped electronics boards to pay my way through college. I would also lay out the chips on the board. I discovered that if I laid out the chips in certain patterns, the wires would also form certain patterns.

That way, I could easily tell if the wiring was off (the posts are .1" apart, and it is easy to get off by one).

With these patterns, I rarely had the board go to smoke testing with a wirewrap error in it. This made me popular with people who needed a board done.

I did this also with boards to be soldered. All the resistors were lined up the same way, the diodes all pointed the same way, the chips had the #1 pin in the same place, etc. It all made for patterns that made checking easy.

I once was talking to a tech at a high end audio store. He said you could tell the high end boards because the resistors all pointed the same way. Same thing. A constructor contractor told me a proxy for quality work is the screw slots were all at the same angle.

I use the same technique with software. I try to lay out the code so it forms a visual pattern, this makes it easy to check for errors. It's also why I don't use source code formatters, as they disrupt the patterns.


Interesting comment. Note the resistor-same-way thing is mostly no longer applicable (due to the plethora of SMD components and their placement by machine). It remains useful for through-hole components such as large capacitors, however.


In source-code formatting vertical alignment is well-known pattern. Is there something else you're thinking of?


In my experience, when an auto-formatter re-wraps a line that gets a char or two too wide for your coding standard, it generally does an aesthetically poor job of it.


I just like when gofmt aligns items before and after the equal sign, and comments in a struct. It may sound frivolous, but it sparks joy and that's not to overlook !



That is beautifully done.

I don't have to know the language to see that your code is built in a very orderly fashion and the components are intended to interact in a carefully-defined way.

Not unlike a well-engineered circuit board.


Yeah, every single component, it's shape, material, color, has been deliberately chosen to do it's required job as best as possible. What judges that? The market. Or physics...


Think about airplanes. Beautiful airplanes tend to fly well. Ugly ones, not so well. It's hard to believe there isn't a connection.


> And now, having spoken of the men born of the pilot's craft, I shall say something about the tool with which they work - the airplane. Have you looked at a modern airplane? Have you followed from year to year the evolution of its lines? Have you ever thought, not only about the airplane but about whatever man builds, that all of man's industrial efforts, all his computations and calculations, all the nights spent over working draughts and blueprints, invariably culminate in the production of a thing whose sole and guiding principle is the ultimate principle of simplicity?

> It is as if there were a natural law which ordained that to achieve this end, to refine the curve of a piece of furniture, or a ship's keel, or the fuselage of an airplane, until gradually it partakes of the elementary purity of the curve of a human breast or shoulder, there must be the experimentation of several generations of craftsmen. In anything at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away, when a body has been stripped down to its nakedness.

> It results from this that perfection of invention touches hands with absence of invention, as if that line which the human eye will follow with effortless delight were a line that had not been invented but simply discovered, had in the beginning been hidden by nature and in the end been found by the engineer. There is an ancient myth about the image asleep in the block of marble until it is carefully disengaged by the sculptor. The sculptor must himself feel that he is not so much inventing or shaping the curve of breast or shoulder as delivering the image from its prison.

> In this spirit do engineers, physicists concerned with thermodynamics, and the swarm of preoccupied draughtsmen tackle their work. In appearance, but only in appearance, they seem to be polishing surfaces and refining away angles, easing this joint or stabilizing that wing, rendering these parts invisible, so that in the end there is no longer a wing hooked to a framework but a form flawless in its perfection, completely disengaged from its matrix, a sort of spontaneous whole, its parts mysteriously fused together and resembling in their unity a poem.

-- Antoine de Saint-Exupéry, _Wind, Sand, and Stars_


Engineering sure was different.

Now things are holonomically controlled, every behavior is arbitrary and computer generated, nothing arises from necessity if we can avoid it.

With a spoon, anything you add will probably make it worse, you can sit and think and not find anything to change other than the material. If I give it adjustable length, the mechanism may be unsanitary.

There's no long list of features to pick from, once you've decided you're not making a spork, there's no real question of what to include, so the feature set(Be spoon) feels perfect, since I have no alternate design to compare it to.

Once you add a microcontroller you have so much possibility. Why can't my flashlight report battery level via Bluetooth and alert me when it's fully charged? A minor convenience, but it could be cheap enough I'd pay for it.

The tradeoff is a bit more code and a cheap chip. And I'm sure there's a dozen other features that I'd like to have if they were cheap.

Not only does the thought of a perfect harmony of only the necessary parts not always arise in a modern mindset.... but I wouldn't know how to recognize it if I saw it anyway. Is there a real engineering reason to leave out a feature? Did they not think of it? Or are they just appealing to love of simplicity for it's own sake? I don't know, I wasn't at the meeting, so I'll probably be annoyed and leave a comment saying they shouldn't have left this or that out.

Now, simplicity feels more like another feature to include or exclude, it doesn't just arise from the desire for low cost and reliability, since we sometimes but not always can make insane complexity cheaply that lasts decades.

The difference is that simplicity isn't compatible with a lot of other features, because it's almost like intentionally choosing to give up arbitrariness and holonomic control.


With a spoon, anything you add will probably make it worse, you can sit and think and not find anything to change other than the material. If I give it adjustable length, the mechanism may be unsanitary. There's no long list of features to pick from, once you've decided you're not making a spork, there's no real question of what to include, so the feature set(Be spoon) feels perfect, since I have no alternate design to compare it to.

Respectfully, this is completely untrue. If you really study spoons you will notice they exist in various scales, shapes, depths and materials for good reason. Furthermore, some are single use while others are optimized for longevity, various surface properties, weight, reduced physical envelope, ergonomics, aesthetics, strength, rigidity or flexibility, handling of liquids-vs-solids, pouring, surface piercing, tasting, use by machine, specific length, safety, environmental impact, regulatory requirements, measurement, cost of manufacture, logistic concerns or some other set of requirements.

Some clearer examples to consider are a wooden spoon used for mixing in a traditional kitchen baking context, a foldable single-use polymer spoon atop a yoghurt container, a traditional English teaspoon with decorative enamel, a ground coffee spoon, measurement spoons and the entire category of ladle-like instruments.

(Source: Stepped out of pure software 7 years ago to work in food robotics.)


That is a good point, many specialty spoons exist, but it's not quite the same as software.

I'm sure we all have utensils we like and dislike, but the feature set is pretty much the same on all of them, especially within a category of specialty type, the difference is mostly decorative and ergonomic.

Wheras with tech, we often add things that are only tangentially related to the original purpose, and we add layers of indirection between user and the actual purpose, with millions of ways that mapping can happen.

Two variants of nominally the same idea can have totally different possible applications, like a phone with and without a GPS. These days all smartphones have GPS, but what about UWB? What about a stylus? Or wireless charging?

They're all smartphones, sold for basically the same general market rather than some specific application, but everyone has a different set of features they want, because it's not a single-function device.

Some people might like more or less ornamentation, and some people might prefer silver over stainless steel, but even most of the specialized types don't have extra features, and nobody picks them up and wishes they did, and rarely do people prefer spoons to be multi-purpose.


Our aesthetic sense is a finely tuned heuristic for assessing the efficiency and effectiveness of systems. It’s less that beautiful aeroplanes fly well and more that high performance designs are inherently beautiful.


Our esthetic sense evolves along behind designs. What is efficient comes to seem beautiful to the next generation. Once the Ford Edsel was the pinnacle of automotive beauty.

The P-51 or Spitfire would lose to a T-28 or F8F, but the former look better to us. We are attuned now to designs like the Su-57 and F-22, so are less sensitive to the merits of systems that work a different regime.


It's hard to describe how the beauty of a P-51 or a Spit affects me. It's a visceral thrill I feel in my whole body. It's hard to believe that they were designed to be deadly killing machines rather than ultimate beauties.

Or maybe not so surprising. I had an eagle fly by me once at about arm's length, and at shoulder height. I was stunned by its deadly beauty. Right then I knew why so many countries adopt the eagle as their mascot.


Correct, one does not compare a top-of-the-line Amish buggy to a Tesla even though both are wheeled personal passenger transports.


There is a picture of two vehicles side-by-side at Nasa's website on the history of the Space Shuttle. If you see it you decide which of the two was built by the faceless bureaucratic procurement-contractor process.


But even knowing nothing about buggies, looking at either one, you kinda know it’s good though.


"Once the Ford Edsel was the pinnacle of automotive beauty."

Uhm...


Art is sort of the same thing as you are describing. An aesthetic work is typically considered flawless if it feels whole and lacks excess. Every aspect playing into the meaning of the work is balanced, every element contributes to the experience of the art. When this doesn't happen we call it out as "tacky" "gimmicky" "amateurish" etc.


Open Circuits is a beautiful book that also explains how things work.

One picture I really enjoyed was the cutaway of a barrel jack power plug. The author explained how plugging in a power cable would physically change the power source from an internal battery to something external. For a CS person, this physical elegance blew my mind.


I marvel at the ball-spring design of this switch for some reason (outtake image): https://opencircuitsbook.com/assets/img/gallery/42-big.jpg


Increasing lifetime by greatly reducing frictional wear via allowing rotation, plus the spring eliminates any frictional gap that might arise. Pure genius!


The spring also provides the "snap" effect; the switch snaps to "off" (the shown position) as well as to "on" (with the ball pushed down between the contacts).


> For a CS person, this physical elegance blew my mind.

In many cases you can write your code in an analogous way. Sadly, most procedural code I see plods its way through transitions in a manner that allows errors, races etc (the old thermos joke comes to mind). Keep these positive hardware approaches in mind when designing your algorithms.


Not sure if I know that joke. How does it go?


A physicist is showing their friend the computer scientist a thermos flask.

"You can put a cold drink in it and no matter how hot it is outside the drink stays cold".

The friend is suitably impressed.

"But that's not all: you can put a hot drink in it and no matter how cold it is outside the drink stays hot!"

Now the friend is puzzled. "But how does it know?"

I long ago became depressed by the amount of code I've read that is written this way. Nowadays I just expect it.


hilarious! thanks for sharing.


You can thank me by not writing code like that :-)


Fiddling with analog and electromechanical appliances improved my engineering skills more than many software classes. The old world was full of brilliance, it just got normalized into oblivion.


I used to buy jewelry made from old computer parts from a seller on the local arts and crafts circuit. The pieces made fantastic gifts for the right person and neat conversation pieces. The artist's husband had been in military IT for decades and subsequently ran a small electronic parts business, and she would repurpose unused parts for her jewelry. They were an interesting couple. She had a terrific eye for what was beautiful in these old internals and he was deeply knowledgeable about the history of circuit boards and components. Got to talking with them once and they were lamenting the loss of beauty in the new boards and components. The obsolete parts from the 70s and 80s had lovely patterns and peculiarities they hadn't seen in years. Last I saw them she was in decline and I don't think she was making any new pieces. I don't know if the store is still functional but you can get a sense of the art from their remaining catalog.

You can see they sorts of thing they were making here:

https://web.archive.org/web/20220816124638/https://www.compu...

Not sure if the store is still functional (or if they're still alive). (Server probably underpowered for HN attention):

https://computerchipjewelry.com/about


> Current flowing around the core produces a magnetic field that acts as a sort of flywheel for current

The math for a flywheel and an inductor is the same. Springs are capacitors, and dampers are resistors. Math is the same.


I find flywheels : capacitors :: springs : inductors to be the better analogy. Then you have force : current :: velocity : voltage, which I find works better than the alternative because forces, like currents, sum to zero at nodes; whereas velocities, like voltages, are equal at nodes.

(Dampers are still resistors in this model, though you must consider resistance to be how "loose" the damper is, rather than how "tight" it is.)


That seems a bit backwards to me. You apply a force to a spring, and it moves until the spring's back-force balances it; you apply a voltage to a capacitor and current flows until the capacitor's back-voltage balances it. A flywheel speeds up as long as you apply a force to it; an inductor's current increases as long as you apply a voltage to it.

And, current and velocity are both motions, while force and voltage are both pressures.


> you apply a voltage to a capacitor

Applying voltage to a capacitor is an incorrect mental model -- the voltage across a capacitor is a function of its charge [1]; it can't be both that and the voltage you apply to it.

In reality, when you apply voltage "to" a capacitor, it's to the series circuit comprising the capacitor and a (hidden or explicit) series resistance, thus causing a current to flow determined by the resistance and the net voltage across it.

The correct mental model is that you inject current into a capacitor. So long as you inject current, the voltage across the capacitor rises. viz. a flywheel -- so long as you apply a force, the flywheel speeds up.

> A flywheel speeds up as long as you apply a force to it; an inductor's current increases as long as you apply a voltage to it.

Likewise, a spring gains tension so long as you keep elongating it.

Inductors and capacitors are dual to each other, so -- ignoring the mechanical linkages themselves -- there's no inherent advantage for one mechanical analog or its dual. We are thus free to choose either to make a sound analogy of the physics of linkages:

> And, current and velocity are both motions, while force and voltage are both pressures.

This grammatical correspondence is not relevant to the mathematics. Kirchoff's laws [2] only hold for mechanical linkages when current is held analogous to force, and voltage is held analogous to velocity.

A more grammatically satisfying analogy can be found in hydraulic systems, with current : flow :: voltage : pressure. Flow, unlike motion, sums at nodes; pressure, unlike force, is equal at nodes.

If one is insistent on treating springs like capacitors and flywheels like inductors, you can do so, but only if you also take the dual of the full circuit, as seen here [3]. This is then a mathematically correct analogy, but personally I find it much less straightforward than simply swapping springs and flywheels.

[1] https://en.wikipedia.org/wiki/Capacitor#Current%E2%80%93volt...

[2] https://en.wikipedia.org/wiki/Kirchhoff%27s_circuit_laws

[3] https://www.ams.org/publicoutreach/feature-column/fc-2019-05


That's the idea behind this educational toy: https://upperstory.com/spintronics/


I like how I can somewhat understand the MechEs at work when talking about vibration responses if I just imagine everything as a complex RC circuit.


Steve Mould did a pretty good spintronics video recently. https://www.youtube.com/watch?v=QrkiJZKJfpY


Don't try to save money by getting just the e-book (which is generously included with an order for the hardcopy). The hardcopy is really worth it!

The large photos printed in very high resolution blow away what you can see on your screen.


There was a brief moment a decade or so ago when I made jewelry from old iPhone and Nintendo motherboards as a hobby. I would use a dremel tool to expose the intricate patterns hidden under the layers.


Newer iphones have some incredible thickness in their circuit boards. They will place components in wells on a board and then glue it to another so you end up with a double thick board.


Great book, previously discussed here:

https://news.ycombinator.com/item?id=32630740 (43 comments)


Huh, by Eric Schlaepfer & Windell Oskay!

Eric previously designed the MOnSter 6502, built with Windell's help: a 6502 CPU with fully discrete components! https://monster6502.com/

Windell is one half of Evil Mad Scientist Labs: https://shop.evilmadscientist.com/


And Eric often appears with Curios Marc on YouTube if i remember it right. Great channel for all things Apollo and analog black magic. https://m.youtube.com/@CuriousMarc


Back in the 80s, when I was early in college and still thought I wanted to be an EE, we did this for a project. It sounds trivial, but it was one of the most educational things I ever did.


one of the things I like about the world of analog synthesizers is the celebration of schematics.

I have a giant chart of synth designs framed in my living room.


I'm really interested in the topic of basic electronics.

I've got a CS degree but from a university where CS came from the mathematical school, rather than the engineering school. Hence in four years, there was only one (optional) class where a computer was used, all other lectures where theorems and proofs with pen and paper.

But I would really love to be able to tinker with circuits, not necessarily with logic circuits, but being able to get some motors to do something useful or - more likely - fun has been something I've always wanted to learn. Mind you, it wasn't at the top of cool things I'm interested in, so I never really made too much of an effort. But that was also partly because I found it surprisingly difficult to find good resources to get started. Compared to say, programming, or other CS topics.

I'm sure this is partly because as a complete novice, it's already challenging to even assess what would constitute a good resource and what not. But I've just always failed to find a book or course that was at the right level of complexity (for me) and caught my interest sufficiently to actually stick to the topic. Either it's quickly over my head or it's something like 45 minutes of youtube videos just to get to Ohm's law, or so.

Eventually, I discovered some (older) books from the model train community that I bought for next to nothing from ebay. Those are quite okay, I like that they are quite practical in that they refer to actual electronic parts with the names/IDs that you can go out and buy. The downside, again, is that they're quite light on the theory - the kind of writing that tries very hard not to alienate the reader and thus doesn't dare to properly explain anything of more than trivial complexity.

Therefore, if anyone has any good recommendations for books, courses, videos, or other resources that you have found useful and that are tailored to beginners but dare to confront them with the full monty and not just some hand-wavy watered-down version of things AND (ideally) are hands-on so that when you're done, you'd be able to order some parts and be able to actually put something together, I'd very much appreciate some hints.

(Is that wish list simply too long?)


I have the hardcover version of this book. The photos and descriptions are just excuisite!


Having never seen the guts of one before I was surprised to see the difference in wire gauge between the high and low sides of the transformer. In my mind the only difference between the two sides was the number of turns. Huh.


The latest Electroboom video is relevant: https://www.youtube.com/watch?v=LMT1sn1bKRY


The low voltage side of a transformer needs to handle more current. You could use the same gauge on both sides and get the same voltage, but you'd experience more losses.


if you used the thin wire on both sides you'd get the same voltage but experience more losses

if you used the thick wire on both sides you'd get the same voltage but have a much heavier and more expensive transformer for an almost undetectable performance improvement


I highly recommend this book! It's very very cool to see the insides of these components and to think about how physical processes are used to create components that can meet engineering specifications and tolerances.


Many images, plus outtake images, on the book’s site: https://opencircuitsbook.com/


A gorgeous book.

They also share a bit about the equipment and process used for making the pictures.

Some of the slides should be a part of every electronics course in every school and University.


I absolutely love this - it reminds me of the Monster 6502 project that recreated the classic MOS 6502 microprocessor but at the transistor level.

https://monster6502.com/

It looks like something that wouldn't be out of place on the deck of the Discovery One in the movie Space Odyssey.


Sometimes I imagine an apocalyptic event wiping out humanity for a few million years, replaced by some new intelligent species after a while.

When they find deposits of these things, would they be able to figure out what they were used for?


If it's eons then what I've heard is all they will find is our toilets. :)


All these components makes me appreciate on how small we can create something. A CPU seems somehow trivial, because most of these components are composed of multiple and different materials, with moving parts often.


Check out MEMs like DLP chips...


The process of making these images is quite an accomplishment. Highly recommend the episode of the embedded.fm podcast with the author of the book, where they go jnto detail explaining what it took.


The picture of the potentiometer on a circuit board is of an Amiga 3000. These folks have good taste!


Oh it's the book that wasn't under the Christmas tree and is sold out now lol ;_;


oh that's sad... :(


This is going to be a nice coffee table book in my living room.


ieee.org and all subdomains DNS seems to fail to resolve globally right now


curl: (6) Could not resolve host: spectrum.ieee.org




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: