# Analog and digital signal

Instrumentation is a field of study and work centering on measurement and control of physical processes. These physical processes include pressure, temperature, flow rate, and chemical consistency. An instrument is a device that measures and/or acts to control any kind of physical process. Due to the fact that electrical quantities of voltage and current are easy to measure, manipulate, and transmit over long distances, they are widely used to represent such physical variables and transmit the information to remote locations.
A signal is any kind of physical quantity that conveys information. Audible speech is certainly a kind of signal, as it conveys the thoughts (information) of one person to another through the physical medium of sound. Hand gestures are signals, too, conveying information by means of light. This text is another kind of signal, interpreted by your English-trained mind as information about electric circuits. In this chapter, the word signal will be used primarily in reference to an electrical quantity of voltage or current that is used to represent or signify some other physical quantity.
An analog signal is a kind of signal that is continuously variable, as opposed to having a limited number of steps along its range (called digital). A well-known example of analog vs. digital is that of clocks: analog being the type with pointers that slowly rotate around a circular scale, and digital being the type with decimal number displays or a “second-hand” that jerks rather than smoothly rotates. The analog clock has no physical limit to how finely it can display the time, as its “hands” move in a smooth, pauseless fashion. The digital clock, on the other hand, cannot convey any unit of time smaller than what its display will allow for. The type of clock with a “second-hand” that jerks in 1-second intervals is a digital device with a minimum resolution of one second.
Both analog and digital signals find application in modern electronics, and the ditinctions between these two basic forms of information is something to be covered in much greater detail later in this book. For now, I will limit the scope of this discussion to analog signals, since the systems using them tend to be of simpler design.
With many physical quantities, especially electrical, analog variability is easy to come by. If such a physical quantity is used as a signal medium, it will be able to represent variations of information with almost unlimited resolution.
In the early days of industrial instrumentation, compressed air was used as a signaling medium to convey information from measuring instruments to indicating and controlling devices located remotely. The amount of air pressure corresponded to the magnitude of whatever variable was being measured. Clean, dry air at approximately 20 pounds per square inch (PSI) was supplied from an air compressor through tubing to the measuring instrument and was then regulated by that instrument according to the quantity being measured to produce a corresponding output signal. For example, a pneumatic (air signal) level “transmitter” device set up to measure height of water (the “process variable”) in a storage tank would output a low air pressure when the tank was empty, a medium pressure when the tank was partially full, and a high pressure when the tank was completely full.

The “water level indicator” (LI) is nothing more than a pressure gauge measuring the air pressure in the pneumatic signal line. This air pressure, being a signal, is in turn a representation of the water level in the tank. Any variation of level in the tank can be represented by an appropriate variation in the pressure of the pneumatic signal. Aside from certain practical limits imposed by the mechanics of air pressure devices, this pneumatic signal is infinitely variable, able to represent any degree of change in the water’s level, and is therefore analog in the truest sense of the word.
Crude as it may appear, this kind of pneumatic signaling system formed the backbone of many industrial measurement and control systems around the world, and still sees use today due to its simplicity, safety, and reliability. Air pressure signals are easily transmitted through inexpensive tubes, easily measured (with mechanical pressure gauges), and are easily manipulated by mechanical devices using bellows, diaphragms, valves, and other pneumatic devices. Air pressure signals are not only useful for measuring physical processes, but for controlling them as well. With a large enough piston or diaphragm, a small air pressure signal can be used to generate a large mechanical force, which can be used to move a valve or other controlling device. Complete automatic control systems have been made using air pressure as the signal medium. They are simple, reliable, and relatively easy to understand. However, the practical limits for air pressure signal accuracy can be too limiting in some cases, especially when the compressed air is not clean and dry, and when the possibility for tubing leaks exist.
With the advent of solid-state electronic amplifiers and other technological advances, electrical quantities of voltage and current became practical for use as analog instrument signaling media. Instead of using pneumatic pressure signals to relay information about the fullness of a water storage tank, electrical signals could relay that same information over thin wires (instead of tubing) and not require the support of such expensive equipment as air compressors to operate:

Analog electronic signals are still the primary kinds of signals used in the instrumentation world today (January of 2001), but it is giving way to digital modes of communication in many applications (more on that subject later). Despite changes in technology, it is always good to have a thorough understanding of fundamental principles, so the following information willnever really become obsolete.
One important concept applied in many analog instrumentation signal systems is that of “live zero,” a standard way of scaling a signal so that an indication of 0 percent can be discriminated from the status of a “dead” system. Take the pneumatic signal system as an example: if the signal pressure range for transmitter and indicator was designed to be 0 to 12 PSI, with 0 PSI representing 0 percent of process measurement and 12 PSI representing 100 percent, a received signal of 0 percent could be a legitimate reading of 0 percent measurement or it could mean that the system was malfunctioning (air compressor stopped, tubing broken, transmitter malfunctioning, etc.). With the 0 percent point represented by 0 PSI, there would be no easy way to distinguish one from the other.
If, however, we were to scale the instruments (transmitter and indicator) to use a scale of 3 to 15 PSI, with 3 PSI representing 0 percent and 15 PSI representing 100 percent, any kind of a malfunction resulting in zero air pressure at the indicator would generate a reading of -25 percent (0 PSI), which is clearly a faulty value. The person looking at the indicator would then be able to immediately tell that something was wrong.
Not all signal standards have been set up with live zero baselines, but the more robust signals standards (3-15 PSI, 4-20 mA) have, and for good reason.

• REVIEW:
• A signal is any kind of detectable quantity used to communicate information.
• An analog signal is a signal that can be continuously, or infinitely, varied to represent any small amount of change.
• Pneumatic, or air pressure, signals used to be used predominately in industrial instrumentation signal systems. This has been largely superseded by analog electrical signals such as voltage and current.
• A live zero refers to an analog signal scale using a non-zero quantity to represent 0 percent of real-world measurement, so that any system malfunction resulting in a natural “rest” state of zero signal pressure, voltage, or current can be immediately recognized.

## Voltage signal systems

The use of variable voltage for instrumentation signals seems a rather obvious option to explore. Let’s see how a voltage signal instrument might be used to measure and relay information about water tank level:

The “transmitter” in this diagram contains its own precision regulated source of voltage, and the potentiometer setting is varied by the motion of a float inside the water tank following the water level. The “indicator” is nothing more than a voltmeter with a scale calibrated to read in some unit height of water (inches, feet, meters) instead of volts.
As the water tank level changes, the float will move. As the float moves, the potentiometer wiper will correspondingly be moved, dividing a different proportion of the battery voltage to go across the two-conductor cable and on to the level indicator. As a result, the voltage received by the indicator will be representative of the level of water in the storage tank.
This elementary transmitter/indicator system is reliable and easy to understand, but it has its limitations. Perhaps greatest is the fact that the system accuracy can be influenced by excessive cable resistance. Remember that real voltmeters draw small amounts of current, even though it is ideal for a voltmeter not to draw any current at all. This being the case, especially for the kind of heavy, rugged analog meter movement likely used for an industrial-quality system, there will be a small amount of current through the 2-conductor cable wires. The cable, having a small amount of resistance along its length, will consequently drop a small amount of voltage, leaving less voltage across the indicator’s leads than what is across the leads of the transmitter. This loss of voltage, however small, constitutes a error in measurement:

Resistor symbols have been added to the wires of the cable to show what is happening in a real system. Bear in mind that these resistances can be minimized with heavy-gauge wire (at additional expense) and/or their effects mitigated through the use of a high-resistance (null-balance?) voltmeter for an indicator (at additional complexity).
Despite this inherent disadvantage, voltage signals are still used in many applications because of their extreme design simplicity. One common signal standard is 0-10 volts, meaning that a signal of 0 volts represents 0 percent of measurement, 10 volts represents 100 percent of measurement, 5 volts represents 50 percent of measurement, and so on. Instruments designed to output and/or accept this standard signal range are available for purchase from major manufacturers. A more common voltage range is 1-5 volts, which makes use of the “live zero” concept for circuit fault indication.

• REVIEW:
• DC voltage can be used as an analog signal to relay information from one location to another.
• A major disadvantage of voltage signaling is the possibility that the voltage at the indicator (voltmeter) will be less than the voltage at the signal source, due to line resistance and indicator current draw. This drop in voltage along the conductor length constitutes a measurement error from transmitter to indicator.

## Current signal systems

It is possible through the use of electronic amplifiers to design a circuit outputting a constant amount of current rather than a constant amount of voltage. This collection of components is collectively known as a current source, and its symbol looks like this:

A current source generates as much or as little voltage as needed across its leads to produce a constant amount of current through it. This is just the opposite of a voltage source (an ideal battery), which will output as much or as little current as demanded by the external circuit in maintaining its output voltage constant. Following the “conventional flow” symbology typical of electronic devices, the arrow points against the direction of electron motion. Apologies for this confusing notation: another legacy of Benjamin Franklin’s false assumption of electron flow!

Current sources can be built as variable devices, just like voltage sources, and they can be designed to produce very precise amounts of current. If a transmitter device were to be constructed with a variable current source instead of a variable voltage source, we could design an instrumentation signal system based on current instead of voltage:

The internal workings of the transmitter’s current source need not be a concern at this point, only the fact that its output varies in response to changes in the float position, just like the potentiometer setup in the voltage signal system varied voltage output according to float position.
Notice now how the indicator is an ammeter rather than a voltmeter (the scale calibrated in inches, feet, or meters of water in the tank, as always). Because the circuit is a series configuration (accounting for the cable resistances), current will be precisely equal through all components. With or without cable resistance, the current at the indicator is exactly the same as the current at the transmitter, and therefore there is no error incurred as there might be with a voltage signal system. This assurance of zero signal degradation is a decided advantage of current signal systems over voltage signal systems.
The most common current signal standard in modern use is the 4 to 20 milliamp (4-20 mA) loop, with 4 milliamps representing 0 percent of measurement, 20 milliamps representing 100 percent, 12 milliamps representing 50 percent, and so on. A convenient featur of the 4-20 mA standard is its ease of signal conversion to 1-5 volt indicating instruments. A simple 250 ohm precision resistor connected in series with the circuit will produce 1 volt of drop at 4 milliamps, 5 volts of drop at 20 milliamps, etc:

—————————————-
| Percent of | 4-20 mA | 1-5 V |
| measurement | signal | signal |
—————————————-
| 0 | 4.0 mA | 1.0 V |
—————————————-
| 10 | 5.6 mA | 1.4 V |
—————————————-
| 20 | 7.2 mA | 1.8 V |
—————————————-
| 25 | 8.0 mA | 2.0 V |
—————————————-
| 30 | 8.8 mA | 2.2 V |
—————————————-
| 40 | 10.4 mA | 2.6 V |
—————————————-
| 50 | 12.0 mA | 3.0 V |
—————————————-
| 60 | 13.6 mA | 3.4 V |
—————————————-
| 70 | 15.2 mA | 3.8 V |
—————————————-
| 75 | 16.0 mA | 4.0 V |
—————————————
| 80 | 16.8 mA | 4.2 V |
—————————————-
| 90 | 18.4 mA | 4.6 V |
—————————————-
| 100 | 20.0 mA | 5.0 V |
—————————————-
The current loop scale of 4-20 milliamps has not always been the standard for current instruments: for a while there was also a 10-50 milliamp standard, but that standard has since been obsoleted. One reason for the eventual supremacy of the 4-20 milliamp loop was safety: with lower circuit voltages and lower current levels than in 10-50 mA system designs, there was less chance for personal shock injury and/or the generation of sparks capable of igniting flammable atmospheres in certain industrial environments.

• REVIEW:
• A current source is a device (usually constructed of several electronic components) that outputs a constant amount of current through a circuit, much like a voltage source (ideal battery) outputting a constant amount of voltage to a circuit.
• A current “loop” instrumentation circuit relies on the series circuit principle of current being equal through all components to insure no signal error due to wiring resistance.
• The most common analog current signal standard in modern use is the “4 to 20 milliamp current loop.”

1. Guru

Digital is certainly the way ALL video recording will be done in the future (and likely the very near future). However, it does still have some drawbacks to consider. Many systems have low frame speed ability per camera when recording multiple cameras at once. Analog recording is still generally considered a little more reliable due to the fact that a videotape (mechanical) drive system is not likely to “crash” like a computer hard drive or operating system might, risking some or all data to irretrievable loss. Most PROFESSIONAL security people will employ BOTH nowadays- generally a digital recorder connected to a (high bandwidth/ high resolution) VCR as a redundant ‘backup’ system.
DVRs must really be separated into 2 main categories: PC-based and Linux-based operating systems (OS). Think about it… how many times has your PC ‘crashed’ due to a glitch or flaw in Windows systems or programs?! Don’t you want potentially life-saving evidence to be recorded into a stable and re-accessible format? We waited, watched and learned while a lot of our competition jumped right into advertising their own PC based systems. Most quickly found that they. *Even though we are highly impressed with the new Linux systems, there are great strides being currently made to bypass an operating system altogether by compressing the video through on-board hardware logic rather than any kind of software. Stay tuned but please don’t let this hold you back from upgrading right now to a stable Linux-based embedded OS system.
One KEY advantage to DIGITAL is its higher resolution ability. Depending on features of individual unit, you may be able to achieve 480+ horizontal lines of color recording with digital vs. 300 lines color (350 black & white) with the highest quality analog units (such as our high band/ high density models). *Little known fact- most analog VCR video recorders permit only about 280 lines BW and 240 lines of color recording- no kidding! Even for expensive consumer and security ‘4-head’ systems. Why are there separate resolution abilities for color and black & white? Because color requires more bandwidth as it is encoding and decoding more data at one time. Audio (especially mono) requires very little bandwidth at all in comparison to video, even BW/ monochrome.

2. Guru

Digital is certainly the way ALL video recording will be done in the future (and likely the very near future). However, it does still have some drawbacks to consider. Many systems have low frame speed ability per camera when recording multiple cameras at once. Analog recording is still generally considered a little more reliable due to the fact that a videotape (mechanical) drive system is not likely to “crash” like a computer hard drive or operating system might, risking some or all data to irretrievable loss. Most PROFESSIONAL security people will employ BOTH nowadays- generally a digital recorder connected to a (high bandwidth/ high resolution) VCR as a redundant ‘backup’ system.
DVRs must really be separated into 2 main categories: PC-based and Linux-based operating systems (OS). Think about it… how many times has your PC ‘crashed’ due to a glitch or flaw in Windows systems or programs?! Don’t you want potentially life-saving evidence to be recorded into a stable and re-accessible format? We waited, watched and learned while a lot of our competition jumped right into advertising their own PC based systems. Most quickly found that they. *Even though we are highly impressed with the new Linux systems, there are great strides being currently made to bypass an operating system altogether by compressing the video through on-board hardware logic rather than any kind of software. Stay tuned but please don’t let this hold you back from upgrading right now to a stable Linux-based embedded OS system.
One KEY advantage to DIGITAL is its higher resolution ability. Depending on features of individual unit, you may be able to achieve 480+ horizontal lines of color recording with digital vs. 300 lines color (350 black & white) with the highest quality analog units (such as our high band/ high density models). *Little known fact- most analog VCR video recorders permit only about 280 lines BW and 240 lines of color recording- no kidding! Even for expensive consumer and security ‘4-head’ systems. Why are there separate resolution abilities for color and black & white? Because color requires more bandwidth as it is encoding and decoding more data at one time. Audio (especially mono) requires very little bandwidth at all in comparison to video, even BW/ monochrome.

3. Guru

Comparison between analog and digital communication
Analog communication systems, amplitude modulation (AM) radio being a typifying example, can inexpensively communicate a bandlimited analog signal from one location to another (point-to-point communication) or from one point to many (broadcast). Although it is not shown here, the coherent receiver provides the largest possible signal-to-noise ratio for the demodulated message. An analysis of this receiver thus indicates that some residual error will always be present in an analog system’s output.
Although analog systems are less expensive in many cases than digital ones for the same application, digital systems offer much more efficiency, better performance, and much greater flexibility.
Efficiency: The Source Coding Theorem allows quantification of just how complex a given message source is and allows us to exploit that complexity by source coding (compression). In analog communication, the only parameters of interest are message bandwidth and amplitude. We cannot exploit signal structure to achieve a more efficient communication system.
Performance: Because of the Noisy Channel Coding Theorem, we have a specific criterion by which to formulate error-correcting codes that can bring us as close to error-free transmission as we might want. Even though we may send information by way of a noisy channel, digital schemes are capable of error-free transmission while analog ones cannot overcome channel disturbances; see this problem for a comparison.
Flexibility: Digital communication systems can transmit real-valued discrete-time signals, which could be analog ones obtained by analog-to-digital conversion, and symbolic-valued ones (computer data, for example). Any signal that can be transmitted by analog means can be sent by digital means, with the only issue being the number of bits used in A/D conversion (how accurately do we need to represent signal amplitude). Images can be sent by analog means (commercial television), but better communication performance occurs when we use digital systems (HDTV). In addition to digital communication’s ability to transmit a wider variety of signals than analog systems, point-to-point digital systems can be organized into global (and beyond as well) systems that provide efficient and flexible information transmission. Computer networks, explored in the next section, are what we call such systems today. Even analog-based networks, such as the telephone system, employ modern computer networking ideas rather than the purely analog systems of the past.
Consequently, with the increased speed of digital computers, the development of increasingly efficient algorithms, and the ability to interconnect computers to form a communications infrastructure, digital communication is now the best choice for many situations.

4. Guru

Comparison between analog and digital communication

Analog communication systems, amplitude modulation (AM) radio being a typifying example, can inexpensively communicate a bandlimited analog signal from one location to another (point-to-point communication) or from one point to many (broadcast). Although it is not shown here, the coherent receiver provides the largest possible signal-to-noise ratio for the demodulated message. An analysis of this receiver thus indicates that some residual error will always be present in an analog system’s output.

Although analog systems are less expensive in many cases than digital ones for the same application, digital systems offer much more efficiency, better performance, and much greater flexibility.

Efficiency: The Source Coding Theorem allows quantification of just how complex a given message source is and allows us to exploit that complexity by source coding (compression). In analog communication, the only parameters of interest are message bandwidth and amplitude. We cannot exploit signal structure to achieve a more efficient communication system.
Performance: Because of the Noisy Channel Coding Theorem, we have a specific criterion by which to formulate error-correcting codes that can bring us as close to error-free transmission as we might want. Even though we may send information by way of a noisy channel, digital schemes are capable of error-free transmission while analog ones cannot overcome channel disturbances; see this problem for a comparison.
Flexibility: Digital communication systems can transmit real-valued discrete-time signals, which could be analog ones obtained by analog-to-digital conversion, and symbolic-valued ones (computer data, for example). Any signal that can be transmitted by analog means can be sent by digital means, with the only issue being the number of bits used in A/D conversion (how accurately do we need to represent signal amplitude). Images can be sent by analog means (commercial television), but better communication performance occurs when we use digital systems (HDTV). In addition to digital communication’s ability to transmit a wider variety of signals than analog systems, point-to-point digital systems can be organized into global (and beyond as well) systems that provide efficient and flexible information transmission. Computer networks, explored in the next section, are what we call such systems today. Even analog-based networks, such as the telephone system, employ modern computer networking ideas rather than the purely analog systems of the past.
Consequently, with the increased speed of digital computers, the development of increasingly efficient algorithms, and the ability to interconnect computers to form a communications infrastructure, digital communication is now the best choice for many situations.