There are different ways to classify electrical circuits. One very important way is to classify a circuit or system as either analog or digital but what does that mean? What’s analog vs digital?
If you’ve been an electronics enthusiast for a while, have taken courses in electronics or read books on the subject you probably have at least an intuitive sense of the difference between analog and digital.
If you’re new, then you may not fully understand what analog vs digital really means.
In this post, I’ll go over what each means and describe the differences.
If you’re new, hopefully you’ll understand the difference between digital and analog after reading this. If you’re somewhat familiar with the meanings, then hopefully this will serve as a good review.
Analog vs Digital: Continuous and Discrete Time
Let’s start by defining a couple often-misunderstood terms.
A continuous time signal is one that is specified for every infinitesimal value of time within a certain time period.
A discrete time signal, on the other hand, is specified only at discrete time values or steps along a time line.
Often, we confuse analog with continuous time and digital with discrete time, but they’re not necessarily the same.
An analog signal is one whose amplitude can take on any value in a continuous range.
A digital signal’s amplitude can only take on a finite number of values.
What’s all that mean?
The image below (from the Third edition of Modern Digital and Analog Communication Systems) can help.
Figure (a) in the picture above shows an analog signal that is also continuous time. Figure (c) also depicts an analog signal, only know it’s in discrete time. The signal itself varies continuously over the time period, but we’re only sampling it at discrete points in time. If you connect the dots, you get a continuous analog signal.
A practical example of this would be logging the temperature every 10 minutes.
The temperature itself varies continuously over time. In other words, the temperature doesn’t jump from 75 to 76 in zero time nor is there a time when there is no temperature (don’t confuse this with zero degrees!).
Rather it takes on some value in between at every infinitesimally small time period. In this case our only interest is looking at it every 10 minutes, so if we were to plot the temperature (an analog value) it might look like part (c).
In part (b) we see a continuous time digital signal and part (d) shows a discrete time digital signal. If you connect the dots in part (d) using only lines that are parallel or perpendicular to the t axis, something like (b) would appear.
Part (b) resembles something you may see on an oscilloscope when probing a digital circuit.
What about part (d)?
If we log the value of a certain stock at the close of business every day we may have a graph that looks like part (d).
Analog vs Digital: Analog
For our intent, we’ll say that in an analog system either the voltage or current will vary continuously over some time period (even though it technically doesn’t have to, most things you measure do).
An “analog” of something is a copy of that something. Put another way, it’s analogous. That’s where term analog comes from.
Take the old fashioned microphone for example.
Sound waves are waves of air pressure. The microphone turns those pressure waves into a fluctuating voltage or an electrical “analog” of the pressure waves. The signal is then amplified and fed to a speaker where the electrical signal is converted back to a pressure wave or sound.
Unless you’re part of The Matrix, you live in an analog world. Most things in nature that one can measure quantitatively appear in analog form.
Other analog quantities (besides pressure) are distance, time, and temperature. When you listen to AM/FM radio you are listening to information broadcast in an analog form.
Speaking of radio, one of the problems with analog systems is the introduction of noise. We’ve all tuned in a station before and heard noise or static. FM radio is more immune to noise than AM, but it still happens.
If you’re old enough, you may remember copying VHS tapes and noticing that the quality of the copy was not as good as the original. This is due to noise.
Many of you probably know what noise looks like. If you’re new or need a reminder, the picture below illustrates it. Often, noise can be much worse than what you see below.
The AC power in your home is both continuous and analog; though spikes, sags, and transients on the line can be much worse than pictured below.
There are even analog computers, but these are more special purpose and not something most hobbyists work with. The computers you’re likely familiar with are all digital, which brings us to our next topic.
Analog vs Digital: The Digital Advantage
For most of us, the digital signals we’ll be working with will resemble part (b) of the figure above.
When we think of digital, one of the first things that comes to mind is binary numbers. Some are aware of this, but many would take it as a surprise to find out that a digital signal can technically take on more than two discrete values.
In fact, it can take on any finite number of values. These types of digital signals are referred to as M-ary signals with M representing any integer. Binary is the most common and special case where M = 2.
For our purposes, we’re going to assume that you’ll be working with binary signals.
One of the earliest digital electronic systems went live in 1844. Invented by Samuel Morse, the first telegraph was sent that year. This instrument used short and long pulses of current called dots and dashes.
At any instant the key of the transmitting telegraph is one of two states: either on or off. The information that a telegraph message carries depends only on the on/off state of the transmitter as time passes. Two different levels identify the signal at any time. This is what makes it digital.
Of course no one uses a telegraph in this day and age but most of us use computers, smartphones, and a myriad of other digital or partly digital devices every day.
In a binary digital system, there are only two possibilities: on or off, a.k.a. high or low.
A high is a logic 1 and a low is a logic 0. That’s why binary numbers consist of ones and zeroes.
In TTL (Transistor-Transistor Logic) systems, we consider a high to be 5 V and a low to be 0 V. Nothing’s perfect, so there is a margin for error.
For a TTL device receiving a signal, the minimum voltage level that will be read as a high is 2 V. The maximum that will be read as a low is 0.8 V.
Anything in between is invalid and ignored.
The tolerances for a TTL device sending a signal are slightly different but you get the idea.
So why is digital such a big deal?
Consider a CD player. Most of us would agree that CD quality sound is better than vinyl records or magnetic cassette tapes, but why?
This high sound quality is possible because the music is not stored as a physical copy of the sound waves (like a record) but as a coded series of numbers that represent amplitude steps in sound waves.
In a record or cassette, distortion (noise) is introduced both by the analog recording process and the playback process.
Our CD player doesn’t store copies of waveforms, rather a code that tells the player how reproduce the sound every time it is played to a very high degree of accuracy.
To make a digital copy of an analog signal (like sound) the sound waves are sampled at precise intervals. The voltage of the wave is measured at certain intervals and each measurement in converted to a number.
This makes a digital system, like a CD player, more immune to noise. When we make an analog copy of a sound or video, noise is inherently introduced into the recording.
I can copy an mp3 file a thousand times (by copying the copies) without losing any of the original quality. But if I try to copy a cassette tape that way, the sound quality will degrade well before I reach 1000.
This brings us to another important advantage of digital over analog: digital information can be easily stored, transferred, and copied without distortion inherent in analog processes. Copies can be made from other copies without deterioration between copy generations.
Try that with your VHS tapes! Analog vs digital — digital wins here.
Volumes exist on number representation in computers and digital systems, binary arithmetic and logic, and sampling theory. These things are beyond the scope of this post, but may appear in future posts.
The Difference Between Digital and Analog
The main differences between analog vs digital should be apparent by now.
Here’s a few real-world examples to drive the point home.
One way to compare the differences between digital and analog is to compare a single pole light switch in your home to a dimmer switch.
With the dimmer, I can vary the brightness of the light anywhere within a defined range of values. The dimmer switch is an analog device because of this. The light can be fully on, fully off, or take on some level of brightness in between.
With the single pole switch, the light is either fully on or fully off. There is nothing in between. Just the states of on or off. The single pole switch is a digital device because of this.
Here’s another example.
Suppose you and a friend are standing in front of a building near the entrance. The entrance has steps and a ramp next to the steps for the physically disabled.
For some weird reason, you and your friend start pitching quarters at the ramp and steps.
On the ramp, a quarter can land anywhere along its length.
However, with the steps the laws of gravity prevent the change from landing on the very edge (it will fall to the next lowest step) or on the part of the step that runs perpendicular to the ground.
The steps represent digital, a discrete group of values and the ramp analog, a continuous group of values.
The Difference Between Analog and Digital: Wrapping Up
Hopefully you now have a good understanding of the difference between analog and digital circuits.
I did want to get into some basics on binary number representation and digital pulse characteristics, but as usual this post has grown to be a bit long.
A future post(s) will definitely delve a bit deeper into those topics.
Meanwhile, comment and let me know: are you mainly an analog person, digital person, or maybe a bit of both?
FREE Guide: 10 Mistakes ALL Electronic Enthusiasts Make
Learn the mistakes made by newbies and veterans alike...
... and HOW to avoid them