Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksBuild a CPUToolsOpen the lab →

Analog vs digital: continuous signals and discrete ones

An analog signal can take any value in a continuous range: a microphone's voltage follows the sound wave smoothly, and a thermometer's reading slides from one temperature to the next. A digital signal takes only a few discrete values, almost always two, read as 0 and 1, and changes between them in steps. Digital circuits still run on voltages, but they only care which side of a threshold a voltage is on, so a slightly noisy 1 is still a 1. Converters join the two worlds: an analog-to-digital converter (ADC) measures an analog signal at regular moments and turns each measurement into a number, and a digital-to-analog converter (DAC) turns numbers back into a voltage. Analog keeps every detail of a signal, including its noise; digital throws the detail away on purpose, which is what lets it copy, store and compute without error.

What each one is good at

Analog is how the physical world arrives: sound, light, temperature and radio are continuous, and sensors, amplifiers, filters and radio front ends work on them directly with no conversion step. Digital wins whenever information must be stored, copied, sent or computed on: because each wire only has to be clearly high or low, noise below the threshold is simply ignored, a copy of a copy is identical, and millions of identical switches can be combined into logic, memory and processors. That robustness is why computers are digital, from the first switch-based logic up.

Where digiwleea fits

digiwleea is a digital simulator, at the switch level: each transistor is an on or off switch and each wire is 0, 1, floating (Z) or in conflict (X), which is exactly the abstraction that makes logic design possible. You build gates from NMOS and PMOS switches, then adders, memory and an 8-bit CPU, in a 40+ level course with an AI tutor (Wleea). It does not simulate voltages, currents or analog parts. For analog circuits, use a SPICE or circuit simulator: Falstad in the browser, or LTspice, QSPICE and ngspice on the desktop.

Analog and digital side by side

AnalogDigital
ValuesAny value in a continuous rangeA few discrete levels, usually 0 and 1
NoiseAdds directly to the signalIgnored while it stays below the threshold
CopiesLose a little quality each timeExact
ExamplesMicrophone voltage, radio, thermometerLogic gates, memory, processors, files
Simulated withSPICE and circuit simulatorsLogic simulators such as digiwleea

No sign-up is needed to start: open the lab and place your first transistor, or read the free theory course. The account (and the AI tutor) are optional.

More comparisons: Digital logic concepts compared

See for yourself: build a logic gate from transistors in the simulator, then follow the path from sand to an 8-bit CPU.

Open the digiwleea lab →

Frequently asked

What is the difference between analog and digital signals?

An analog signal varies continuously and can take any value in a range. A digital signal takes only discrete values, usually two (0 and 1), and changes between them in steps.

Why do computers use digital signals?

Because a digital circuit only has to tell whether a voltage is above or below a threshold, small amounts of noise do not change the value. That makes it possible to store, copy and process information exactly, with very large numbers of identical switches.

Is a digital signal really just 0 and 1?

In logic, yes. Physically it is still a voltage that takes time to change; a digital circuit reads anything above one threshold as 1 and anything below another as 0. Wires can also float (high impedance) or be driven both ways at once, which simulators show as Z and X.

How is an analog signal converted to digital?

An analog-to-digital converter (ADC) samples the signal at regular intervals and turns each sample into a number with a fixed number of bits. A digital-to-analog converter (DAC) does the reverse.

Is the real world analog or digital?

Most physical quantities, such as sound, light and temperature, vary continuously and are treated as analog. Electronics converts them to digital to store and process them.