Analog electronics [0] uses a continuously variable signal while digital electronics interprets the signal with thresholds that define states like 0 and 1.
Here is a simple example: using a few discrete parts, like two transistors (Darlington pair), a LED and resistor, you can create a simple circuit that shows varying brightness of the LED depending on how close you move your hand or an object to an antenna connected to one of the transistors (forming a sort of proximity sensor). No microcontroller, SBC or even a hint of a digital signal involved at all.
> Here is a simple example: using a few discrete parts, like two transistors (Darlington pair), a LED and resistor, you can create a simple circuit that shows varying brightness of the LED depending on how close you move your hand or an object to an antenna connected to one of the transistors (forming a sort of proximity sensor)
Do you have some book/video/etc. recommendations for this "type" of Electrical/Electronics circuit engineering? I only know how to program a MCU :-(
"Digital electronics" communicate using discrete values, 1s and 0s.
"Analog electronics" communicate using voltage/current/temperature/etc levels.
One of the simplest examples is a voltage divider: if you put two resistors across a DC voltage source, like this:
V+-[R1]-¢-[R2]-GND
The voltage at the ¢ point will be:
V+ * (R2 / (R1 + R2))
There are infinite possible values for that voltage, depending on the voltage source and the two resistors. It cannot necessarily be expressed exactly in a digital circuit, and it will fluctuate over time as the environment changes in temperature, humidity, EM noise, and so on.
I usually recommend The Art of Electronics as a well-written, beginner-friendly textbook which covers the basic concepts.
Classifications are messy, but in addition to the other items mentioned already, I would say that some people would break out "power electronics"[1] as its own field.
Probably the wrong way to look at it. Digital electronics doesn't really exist outside of theoretical spaces. It's all analogue underneath and any experienced digital designer will know that and what the consequences for things like signal integrity, noise immunity and latency.
It's better to describe analog and digital electronics as a subset of electronics. For the most part, they look at different domains. Even though they are based upon the same underlying principles, the simplifying assumptions are different. A more dramatic example is with RF electronics. While it may look like you are dealing with the same sort of things as the more common low frequency analog electronics, you are going to have a difficult time coaxing an analog circuit to work in the RF domain.
Contrast that to web developers. They are dealing with very different principles from web browser developers, who are mostly working with different principles than operating system developers, who are working with entirely different principles from those who design hardware. It's not that they are working with a different subset of the same thing because one layer of abstraction is directly on top of the one below it and (ideally) the layers below completely hide how they work from the layers above.
I mean... Analog electronics doesn't exist either, or for that matter, electronics in general.
All of electronics assumes Kirchhoff's Current Law and Kirchoff's Voltage law, which does not truly exist in reality. Electrons often escape a circuit (see antennas, which throw the voltage / current into a wave that is emitted out of your designs). All wires are antennas, so even the most basic circuit doesn't have all the current return in a loop.
The assumptions of KVL and KCL are just over-simplifications of true physics, Maxwell's equations. Because working with Maxwell's equations directly is too much effort in practice.
--------------
Electronics itself is a huge abstraction upon physics. You could, in theory, calculate all the voltages and currents using Maxwell's equations, except this isn't useful at all.
Similarly: most of "Analog Electronics" uses simplifications as well: OpAmps are often assumed to be ideal (aka: infinite gain), which is good enough in most cases.
Digital systems, using relays, predate analog electronics.
There were relays used for railroad signaling in the 19th century. Union Switch and Signal was formed in 1881. The first active electronic device, the deForest Audion, was developed in 1906.