What a signal is
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
A signal is a quantity that changes and carries information. Follow one: a tuning fork rings at 440 Hz, a microphone turns the sound into a voltage x(t), and a converter samples it 8000 times a second into a list of numbers x[n], then rounds them into a digital signal a computer stores. You will meet continuous time, discrete time and digital, and build the same signal in Python with numpy. It helps to know the Circuits lesson on sinusoids and the Maths lesson on complex numbers first, but this lesson needs only the idea of a graph.
Something that changes
A tuning fork rings. Its prongs swing 440 times a second and push the air, so the air pressure near it rises and falls. A quantity that changes and carries information is a signal.
fork rings at f0 = 440 Hz (the note A4)
air pressure goes up, down, up ...
signal = a quantity that changes
(over time, or over space)
and carries information
here: the pitch 440 Hz says "this is an A"
motion in the figure: slowed down a lotاقرأ الدرس خطوة بخطوة
Something that changes
A tuning fork rings. Its prongs swing 440 times a second and push the air, so the air pressure near it rises and falls. A quantity that changes and carries information is a signal.
fork rings at f0 = 440 Hz (the note A4) air pressure goes up, down, up ... signal = a quantity that changes (over time, or over space) and carries information here: the pitch 440 Hz says "this is an A" motion in the figure: slowed down a lotA microphone makes a voltage
A microphone turns air pressure into a voltage on a wire. More pressure, more voltage. The shape stays the same; only the kind of quantity changes. We call this voltage x(t) and draw it as it arrives.
pressure -> microphone -> voltage x(t) same shape, new quantity (a sensor or transducer does this) plot: x(t) in millivolts (mV) against time t in milliseconds (ms) 1 ms = 0.001 sA signal is a function of time
Give the signal a time and it gives back one value. At t = 0.5 ms the voltage is x(0.5 ms) = 9.82 mV. Time is the input (the independent variable); the voltage is the output.
x(t) = A·sin(2π·f0·t) A = 10 mV, f0 = 440 Hz t = 0.5 ms = 0.0005 s x = 10·sin(2π × 440 × 0.0005) = 10·sin(1.382 rad) = 9.82 mV one input t -> one output x(t)Amplitude, period, frequency
This wave peaks at 10 mV: its amplitude. It repeats every T = 1/440 s = 2.27 ms: its period. Repeats per second are the frequency, f = 1/T = 440 Hz. We hear frequency as pitch.
amplitude A = 10 mV (the peak) period T = 1 / f0 = 1 / 440 s = 2.27 ms frequency f0 = 1 / T = 440 Hz (hertz = repeats per second) in 5 ms: 5 / 2.27 = 2.2 periods sinusoids in depth: see Circuits, "Sinusoids"Continuous time: a value at every instant
Between any two instants there is another, and x(t) has a value at each one. A signal defined for every real time t is a continuous-time signal. The voltage on the wire is one.
continuous time: t can be any real number t = 1 ms, 1.5 ms, 1.25 ms, 1.2501 ms ... x(t) is defined at every one of them written with round brackets: x(t) its value can be any number in a range: an analog signalSampling: a value every 125 µs
A converter (ADC) measures the voltage 8000 times a second: once every Ts = 1/8000 s = 125 µs. Each reading is a sample: x[n] = x(n·Ts). So x[4] = x(0.5 ms) = 9.82 mV.
fs = 8000 samples per second (telephone rate) Ts = 1 / fs = 125 µs = 0.125 ms x[n] = x(n·Ts) x[0] = x(0) = 0.00 mV x[1] = x(0.125 ms) = 3.39 mV x[2] = x(0.250 ms) = 6.37 mV x[3] = x(0.375 ms) = 8.61 mV x[4] = x(0.500 ms) = 9.82 mVDiscrete time: a list of numbers
In 5 ms the converter takes 40 samples. Now the signal is a list: x[0], x[1], x[2] ... The index n is a whole number, so x[2.5] does not exist. This is a discrete-time signal.
discrete time: n = 0, 1, 2, 3 ... whole numbers only x[2.5] is not defined written with square brackets: x[n] 5 ms × 8000 per second = 40 samples between samples, x[n] says nothingDigital: the values are rounded too
A computer stores whole numbers. This 8-bit converter counts in steps of 0.1 mV and has 2⁸ = 256 levels, so 3.39 mV is stored as 34. Discrete in time and in value: a digital signal.
8 bits -> 2⁸ = 256 levels step = 0.1 mV, range −12.8 .. +12.7 mV q[n] = round(x[n] / 0.1 mV) x[1] = 3.39 mV -> 34 x[2] = 6.37 mV -> 64 x[3] = 8.61 mV -> 86 x[4] = 9.82 mV -> 98 largest rounding error here: 0.048 mVA signal in Python is an array
In Python with numpy, a sampled signal is an array. np.arange(40) gives n = 0 to 39; one line computes all 40 samples at once. np.sin takes radians. The first five match the memory.
import numpy as np fs = 8000 n = np.arange(40) x = 10*np.sin(2*np.pi*440*n/fs) >>> x.round(2)[:5] array([0. , 3.39, 6.37, 8.61, 9.82]) >>> len(x) 40 (Python 3 with numpy)Signals are everywhere
A heartbeat on an ECG, a day's temperature, a photo (brightness over two directions, x and y): all are signals. Each is a function of one or more variables. Next, systems that change signals.
signal independent variable(s) sound x(t) time ECG time temperature time photo x and y (2-D) video x, y and time continuous time x(t), t any real number discrete time x[n], n a whole number digital discrete time + rounded values
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01Which description of a signal is the best one?
Voltages, sounds and lists of numbers can all be signals, but none of them is the definition. A signal is a function of one or more independent variables (time, position ...) that carries information.
02A wave repeats every 2.5 ms. What is its frequency?
f = 1/T = 1 / 0.0025 s = 400 Hz. Convert milliseconds to seconds before dividing.
03The converter samples at 8000 samples per second. Which time does the sample x[8] come from?
x[n] = x(n·Ts) with Ts = 1/8000 s = 0.125 ms, so x[8] is the value at 8 × 0.125 ms = 1 ms.
04Which of these is a discrete-time signal?
Hourly readings exist only at whole-numbered instants n = 0, 1, 2 ..., so they form x[n]. The other three have a value at every instant: they are continuous-time signals.
05The 8-bit converter counts in steps of 0.1 mV. Which whole number does it store for a sample of 8.61 mV?
8.61 mV / 0.1 mV = 86.07, rounded to the nearest whole number: 86. Rounding the values as well as sampling the time is what makes the signal digital.
المسرد
- Signal
- A function that tells how a quantity (pressure, voltage, temperature, brightness ...) varies with one or more independent variables, and so carries information.
- Independent variable
- The input of a signal, usually time t. A photo has two: the positions x and y.
- Amplitude
- The peak value of a wave, measured from zero; here 10 mV.
- Period (T) and frequency (f)
- The period is the time one repeat takes; the frequency is repeats per second, f = 1/T, in hertz (Hz).
- Continuous-time signal x(t)
- A signal with a value at every real time t; written with round brackets.
- Discrete-time signal x[n]
- A signal defined only at whole-number indexes n, often samples x[n] = x(n·Ts) of a continuous one; written with square brackets.
- Sample, sampling rate
- A sample is one reading of a signal. The sampling rate fs is samples per second; Ts = 1/fs is the time between them.
- Digital signal
- A discrete-time signal whose values are also rounded to a finite set of levels, so a computer can store them as whole numbers.
الملاحظات والمصادر
- The amplitude 10 mV is a chosen example of a small microphone voltage; 440 Hz is the standard pitch A4 (ISO 16); 8000 samples a second is the telephone rate of ITU-T G.711. Every number in the figure is computed from this model.
- The motion is slowed down a great deal: the real fork swings 440 times a second, and the sound crests in the air are drawn much closer together than in real air.
- The converter is an example: 8 bits over −12.8 to +12.7 mV in steps of 0.1 mV. (Telephone audio under G.711 also stores 8 bits per sample, but with uneven, companded steps.) Sampling and rounding (quantization) each get their own lesson in the next module.
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (ch. 1: continuous-time and discrete-time signals)
- B. P. Lathi, R. A. Green, Linear Systems and Signals, 3rd ed., Oxford University Press, 2018, ch. 1 (Internet Archive record)
- A. V. Oppenheim, R. W. Schafer, J. R. Buck, Discrete-Time Signal Processing (course text listed on MIT OCW 6.341 readings)
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011)
- MIT OpenCourseWare RES.6-007 Signals and Systems (A. V. Oppenheim)
- MIT OpenCourseWare 6.341 Discrete-Time Signal Processing (A. V. Oppenheim)
- Signal (Wikipedia): a function that conveys information; analog and digital; continuous and discrete time
- A440 (pitch standard) (Wikipedia): A4 = 440 Hz, standardized as ISO 16
- G.711 (Wikipedia): telephone audio sampled 8000 times a second, 8 bits per sample
- NumPy documentation: numpy.arange
- NumPy documentation: numpy.sin (angles in radians)
اختبار يتاح بعد الخطوة الأخيرة.