3.2. Analog To Digital¶

We can turn an analog signal into a simple digital one with two possible states by interpreting it against a threshold. Any time we measure the value of the signal, if the value is below the threshold we call it “off”; if it is above the threshold we call it “on”. In the image below, we could say at T1, the signal is off and at T2, it is on.

If we ignore all the changes in the signal except for where it crosses the threshold, we get a digital pattern:

Even if the electrical circuit that is trying to represent this pattern has a lot of noise, we should be able to distinguish the intended values. In the image below, the red line indicates the signal we are trying to represent, and the grey line indicates the electrical signal that is measured.

Even though there is a lot of noise - the signal is bouncing above and below the voltage we are trying to use, it is very much clear what the value should be at T1 and T2. We can ignore the noise and confidently say the signal at T1 is “off” and at T2 is “on”.