Touching Transistors

This entry is part 2 of 5 in the series Ribbonfarm Lab

After a longish break, thanks in part to my stuff being packed away in boxes I was too lazy to unpack because we’re theoretically house-hunting (that’s going slow), I’m finally back tinkering in my lab. A couple of days ago, I fulfilled a teenage dream from the 1980s: Getting an LED to flash using a 555 timer chip.

This is a weirdly anachronistic circuit to build in this brave new age of Arduinos, RPis, and what I’ve come to think of as microcontroller supremacism. But there’s something very fun about doing something with primitive, simple parts and no code (though wiring up a logic circuit is a kind of coding). Making an LED blink without an Arduino is the engineering equivalent of touching grass. Call it touching transistors.

As my younger and more knowledgeable friends tell me, doing electronics this way isn’t a particularly useful skill in today’s technological environment. It’s like using hand tools for wood-working. Borderline quixotic. The “right” way to make an LED blink in 2023 is to write a “blink” program for a microcontroller. Software ate this older style of electronics sometime in the mid 2000s. “Blink” on an Arduino is now the “Hello world” of electronics (I got past that milestone in my learning curve a couple of years ago). Apparently only a few experimental musicians making weird music synth gadgets do things in this 1980s way anymore.

Still, I was unreasonably pleased with myself at making a 555-blinker, and checking off a 35-year-old to-do item. The experience really took me back, and got me thinking about how electronics has evolved since the 80s.

***

When I was a teenager in small-town India in the 80s, I wanted to get into electronics but it was ended up being too hard. I also wanted to get into model airplane building, amateur astronomy, and DOS-PC-era programming, and was much more successful in those endeavors.

Back then, to get into electronics, you not only had to convince your parents to spend the money, you then had to find the rare shops that stocked a tolerable selection of parts for hobbyists (which for me meant waiting for the rare trip to Calcutta, the nearest big city). Scavenging parts from random broken or old gadgets wasn’t really an option because there weren’t many of those around (the few electronic gadgets people had were simple, rarely broke down, and were repaired and put back into service when they did).

Even the richer kids with a lot of support didn’t get too far. If you had a breadboard, a bit of perf board, a soldering iron, a multimeter, and a modest assortment of resistors, capacitors, and LEDs, you were the absolute envy of the other kids. I knew of only 1 kid who had that kind of comprehensive setup. The peak of achievement I ever heard of was, you guessed it, using a 555 timer chip to build a blinking-LED circuit. This era was so primitive, we didn’t even have blue LEDs (those were invented in 1989 and didn’t become common till later, and this is the reason you don’t see blue blinking lights in Star Trek: TNG). This non-blue era of electronics was like the sepia-tinted era in film photography.

If you did manage to get your hands on a few parts, you then had to figure out where to get the information needed to do anything, and this was usually a bigger, often insuperable obstacle.

There was no easy way to look up the part details, pin-out diagrams, and specs. Identifying random scavenged parts with cryptic part numbers on them was basically impossible. Local store owners could do simple repairs for devices like portable radios (which were called “transistors” back then in India, as distinct from the older tube radios most people still had till the early 80s) or tape recorders, but otherwise knew very little. Our main sources of information were: the few books in the school library (which only covered basic theory), the monthly electronics column in the one science magazine in India, and perhaps most importantly, the few older kids and adults who both knew more than you (usually not by much) and were willing to teach you. Catalogs were scarce: You could browse old copies at stores sometimes.

Not surprisingly, I learned very little of practical utility, and accomplished even less. I had a soldering iron which I think I used once, and only half-finished the only project I actually tried to do: Building a variable voltage power supply (a “battery eliminator”). The kind with a simple transformer, full-wave rectifier, capacitor, and a knob to select a voltage across a voltage divider.

What finally killed my interest was reading one of the monthly columns which featured a circuit using a “Zener diode” and “Darlington pairs.” I couldn’t find the terms in the one beginner book I owned, and nobody around could tell me what they were. At that point I gave up. Electronics is an information intensive field, closer to stamp-collecting than physics. You can’t just figure stuff out intuitively the way you often can with mechanical gadgets. You need specs and datasheets and a bit of a physics explanation for every single step. (If you’re curious, a Zener diode is one that can conduct some current in reverse under a sufficiently high reverse bias, and a Darlington pair is just a pair of regular transistors chained to boost a signal more than a single transistor can).

It wasn’t till I got to engineering college that I got to do a few basic things in a lab course (control a stepper motor, write a bit of machine code for an 8085, that sort of thing). That was an advanced, but narrow experience. You followed instructions from the lab manual, filed your lab report, and you were done. You picked up just enough to do the assignment. You didn’t gain anything like literacy in the parts you touched. I don’t feel like I even picked up much of a vocabulary, let alone literacy, or god forbid, actual fluency.

When I landed in the US in 1997 with little to no lab-grade electronics skills, I was suddenly dumped into a research-university-grade hardware lab featuring an embarrassment of riches which which I almost entirely lacked the literacy to use. There were shelves of parts and manuals, oscilloscopes and data acquisition rigs, a fancy soldering station, heat-shrink tubing (which I didn’t know was a thing). Rigs featuring advanced motors with optical encoders. Digikey and McMaster-Carr paper catalogs with parts you could just order on the phone on the lab budget!

I spent a few months in that lab helping out on a couple of projects and learning some basic skills, but then decided experimental work was too hard, and my illiteracy too deep, and quit. I got dumped off the deep end anyway though. I got assigned to TA a basic general lab course for 3 semesters. Now I’m glad that happened. I learned the basics of using oscilloscopes, data acquisition computers, wind tunnels, and an assortment of other random lab skills. I didn’t learn much electronics, since it was an aerospace engineering lab, but enough that I was no longer embarrassingly illiterate.

So I can’t say I ever got truly literate in electronics skills. I had better theoretical knowledge than typical mech/aero engineers (having self-studied basic texts on circuit analysis and digital logic, which are usually only covered in rudimentary ways in non-EECS engineering curricula) but couldn’t really read or speak the language of circuits, schematics, parts, and pin-outs. Around 2020, when I started getting into Maker stuff seriously, I’d say my electronics literacy was at about the same level as my Spanish. A few words here and there.

***

Now, in 2023, I’m into my fourth run at learning electronics, and this time, I have an insane amount of support and resources compared to my first run in the 1980s. And unsurprisingly, I’m finding much more success. I’m getting past theory to the beginnings of a rudimentary practical literacy. My literacy has jumped from the level of my Spanish to the level of my Tamil (in which I can understand about 30-50% of stuff I hear, and manage some broken pidgin sentences, enough to get around). I’m not going to be composing electronics poetry anytime soon, but I’m not totally lost.

Not only do I have a well-equipped personal lab, I have knowledgeable online peers I hang with, all the pecs and data sheets I could ever need at my fingertips online, and perhaps most importantly, ChatGPT. I’ve mentioned in passing in my last couple of newsletters how I’m using ChatGPT as a basic Jarvis-style tutor and lab-assistant. It truly is a game-changer. I’m considering building myself a proper gptJarvis using GPT. Compared to 2020, when I worked through a bunch of Arduino-centric experiments using an Elegoo kit that came with a manual of experiments, I feel I’m learning much more with my current self-improvised approach, mostly using random parts I’ve bought off Amazon or Adafruit. It’s much harder to work free form than with a curated kit, but whatever you learn, you learn in a deeper way. And having an AI assistant helps a lot.

Right now, I’ve set aside my more ambitious experiments with rovers for a while, to do a bit of touching transistors. Besides my 555-timer blinker, I’ve been building a variety of simple logic circuits (I actually started with analog circuits, but those are harder and require doing some math, so I switched tracks to digital; I’ll get back to analog in a bit).

You’ve probably heard something along the lines of “all computers can be reduced to NAND gates.” Well, here’s what the second simplest electronic NAND gate looks like. There are billions of these things in a modern processor, but this is a very simple chip with just 4 NAND gates, of which I’m using one. It’s the second simplest because I’m using an IC. You can do this with individual transistors too. It would just be more messy wiring.

And here’s a 3-8 demux (it takes an octal number from 000 to 111 and makes one of 8 normally high output pins low; in this picture the one attached to the second LED). This is a slightly less anachronistic thing to be playing with since I see contemporary schematics using such parts in concert with microcontroller-centric designs.

I have a list of other simple circuits I want to mess around with at this level of abstraction: flip-flops, latches, shift registers and so on. Even though digital electronics is a field where the map is very close to the territory (you don’t learn a whole lot more building a simple digital logic circuit on a breadboard than just reading about how it works in a book), there are still enough subtleties to make it interesting. The “grammar” of the physical parts has just enough atoms-related messiness that it makes the literacy more robust. You also learn some explicit things that are generally elided in theoretical treatments, like the need for pull-up/pull-down resistors, leakage currents, ground loops, capacitive coupling between adjacent pins of a chip, and so on.

I’m playing with individual transistors a bit, but playing with logic gates is somewhat more manageable on a breadboard (the complexity of breadboarding rises quadratically with the number of connections you can make, and make wrong). If touching transistors is like touching grass, touching logic gates is like touching asphalt in a parking lot.

I do intend to eventually tackle the two mythical beasts that derailed me as a teenager: Zener diodes and Darlington pairs. After that, I plan to do a little tour of duty through op-amp land, and cross “use an inductor” off my electronics bingo card. Inductors are an oddly specialized bit of vocabulary in basic electronics that don’t seem to enter the picture until you get into RF circuits and signal processing. You deal a bit with unwanted induction effects from parts like motors and solenoids, mostly by throwing in a diode somewhere to stop them, but they’re like a mysterious part of speech off to one side.

And speaking of signal processing, one of the big surprises for me in rigging out my lab was discovering that you can now buy cheap pocket oscilloscopes. This one was around $100 a couple of years ago. It’s a software-eaten oscilloscope and not quite as good as the big bench models I used decades ago (which can cost hundreds to thousands of dollars), but it’s more than enough for the primitive messing around I’m doing.

After that, my main serious learning objective is power electronics, since my next rover-related project is to power it with a solar panel. Power electronics is an interesting mix of mechanical and electrical engineering, and requires some rudimentary fluency in both analog and digital circuitry. Somewhere along the way, I hope to make a PCB of my own, probably using this fancy AI-powered CAD tool called flux.ai that I’ve started playing around with. Once I get there, I’ll have caught up to 2020s tech.

This chapter in my lab experiments is part 80s nostalgia for simpler times before Arduinos, and part remedial education. I’m also waiting on my more knowledgeable friends from my rover group to figure out what the hell is wrong with the Beaglebone Blue single-board computer I’m using to run my rover, so while they do that, I’m indulging a primitivist instinct here.

But there’s also I think a more rational thing going on here. In technology, ontogeny recapitulates phylogeny, and I’m finding that my literacy around contemporary technology is improving thanks to this dabbling in nearly obsolete technologies. For example, I learned why making an LED blink with an Arduino is generally a better strategy than using a 555 chip along with a pair of resistors and a capacitor. Controlling timing with a microcontroller is trivial, and the logic is similar whether you’re doing milliseconds or hours. With hybrid analog and digital hardware though, doing very long-range timing involves all sorts of interesting failures. So microcontrollers are probably the right level of abstraction to work with timing problems. Lower level abstractions leak too much.

This sort of thing is very useful to know, and helps develop technical taste. When I do return to the 2020s after my time-travel vacation to the 1980s, I have a feeling I’ll approach my design and experimentation projects in a more literate and tasteful way.

Maybe I’ll even get to enough fluency in a year or two to design some sort of Evil Product to sell.

Series Navigation<< The Ribbonfarm LabCan Robots Whittle? >>

Get Ribbonfarm in your inbox

Get new post updates by email

New post updates are sent out once a week

About Venkatesh Rao

Venkat is the founder and editor-in-chief of ribbonfarm. Follow him on Twitter

Comments

  1. Ingenuity and persistence! Lighting the stage on every front I see. If you could build a de-vice that can switch the color of traffic lights at will then that ought to make you lots of coin on the black market.

  2. This is still progressive haha. I remember soldering the back circuit boards during college as late as 2010. There’s different satisfaction in getting your hands dirty and building stuff.

  3. I like this time travel arc. Reminding me to go play with some of the more rudimentary digital music tools I have laying around which have been neglected due to work being caught up in social media. Thanks for writing this up.

  4. Wow. I did this at age 13 in the 70’s. Never would have thought it would have any charm in this day and age. But very happy to read this account.

    The 555 is extremely versatile. Using one as a bistable flip-flop in a super simple stage mixer right now. After considering an Arduino or a transistor or cmos circuit. The 555 is just the easiest solution.

    So I made this silly three 555 oscillator circuit, chained via pin 5 for frequency modulation, hooked up to a radio speaker and in a small plastic box..brought it on a pep band trip and it was a huge hit..everyone had a go at making weird noises, annoying the bus driver to no end. It was 1975.

  5. Biologically, you too can be “flashed” like an LED with a 555 timer circuit!

    (the traditional act of reading 1 book should be banned, because the process, as a result of which you always read only 1 book, and not more in parallel, teaches you to think linearly and to interpret 1 point of view)

    digitalization 2024: if you want to sail, the trend is to not get into a small boat! Obviously this sounds strange, but let’s ask a simple question:

    In 2024, how do you make a light blink?
    Are we using a 555 timer IC or a vulnerable Arduino?

    Obviously, the question arises: if you want to learn to sail, should you board a small boat or a large boat?

    Let’s examine how this “low tech is forbidden” (so it is forbidden to sit in a small boat) trend is “forced” on us, with different distributed cultural processes, and we will already see how important the role of “attention management protection” is in terms of real security and sovereignty. to our so-called lack of ability.

    I also have a list of simple circuits that “hand building” increases the security level of general interpretation processes: flip-flops, latches, shift registers, logic gates, etc.

    There are two types of knowledge: tacit and explicit, and the difference between the two is regularly neglected. So if we want to flash, and for this we do not use an Arduino nuclear power plant, but a 555 timer IC, we automatically learn some explicit things that are automatically ignored during theoretical learning, such as the need for pull-up and pull-down resistors, leakage currents, ground loops, capacitive coupling between adjacent IC pins, and so on. (in this case we are talking about a 100% failure to interpret, everyone has practically a 0% chance to learn from a textbook: the parallel correlations of the flashing of 1 lamp)

    learning from a textbook: it is a linear information management process

    So, during the reading of a book, the act of reading and information management, which determines the interpretation process, can take place linearly, i.e. letter by letter and word by word.

    conclusion: people on planet earth are unable (to a large extent) to interpret parallel and complex processes, because by reading only 1 book at a time, their interpretation skills for linear information processing are automatically set. (so they will always only view the processes from 1 point of view and not from more than 10)

    Now I realized: what happens if you read 10-15 books at the same time, and not just one. (parallel information interpretation skills increase, with the cessation of traditionally linear learning processes)

    Now I realized: what happens if you read 20-30 browser windows at the same time, and not just one. (parallel information interpretation skills increase, with the cessation of traditionally linear learning processes)

    Google and Apple know exactly who the people on planet earth are who have 20-30 browser windows open at once on their computer and are scrolling in parallel, so a precise skill profile can be created for each online user based on the degree of parallel information management ability. The parallel interpretation processes can be automatically influenced, of course, with online advertisements, automatically controlled errors, and the manipulation of the display of news content: thus, users’ parallel information interpretation ability can be reduced and increased “relatively imperceptibly”. (it is no coincidence that the Student Self-Government of the National Public Service University has not required for years that they write their doctorates with the following topic: a comparative study on mobile applications created for the purpose of protecting children’s attention management)

    the future is predictable: human education platforms based on A.I. will be effective in the future, which are able to measure changes in the learner’s stimulus threshold in real time. Obviously, an A.I. led the class that the communication process starts in the fields of sociology and geography, then biology-chemistry-physics are connected, and we arrive at mathematics and computer science, but in the meantime we also make historical and artistic detours, so we also build musical instruments from plants.

    It is obvious: in 2024, we should really do the project in which we build logic gates, calculators, and copies of classical circuits exclusively from (living) plants produced biologically. Let’s start by copying the blinking of the 555 timer IC light source with a biological toolkit <<