# Instrumentation & Measurement Magazine 23-2 - 98

```of a Matrix.) We drew random matrices B and then calculated
the condition numbers of all relevant combinations of four
columns of C = BA. We chose a matrix B where none of the condition numbers was too large.
Even after looking for and finding a "good" B matrix, all
was not sweetness and light. We had an unexpected problem.
Certain frequencies showed a very moderate tendency to get
confused with one another. Eventually, we traced the problem
to an interesting effect related to the condition number. Suppose that there are two 2-sparse vectors you know you may


want to measure, x1and x2, and each vector is associated with
a different frequency. Let D be the matrix whose four columns
are the four columns of C associated with the two frequencies,
and suppose that D's condition number is relatively large.
Now
the difference of the two vectors of inter  consider

est, d = x1 − x2. Suppose that this vector is associated with the
smallest eigenvalue of D, λsmallest. Then, the values you will


need
will be Dx1 , Dx2, and their difference will be
 to measure



Dd = λsmallest d -which is very small. Despite x1 and x2 being
rather different, if D has a relatively large condition number,
even a small amount of noise could confuse us when measur

ing Dx1 and Dx2-because these vectors are very similar.

"Our" Matrices
After careful searches and some trial and error, we found that
making use of five samples of sines and cosines at the frequencies 0, 400, 666, and 975 Hz worked well. (In the case of the 0 Hz
signal, we only stored the samples of the cosine-of the nonzero constant signal.) The B matrix we used was:

1

0
B=
0

0

0
1
1
0

0
0
1
0

0
1
0
0

0

0

0

1 



(Thus, the first element of b was the first element of y; the
second element was the sum of the second and fourth elements

of y, the third element was the sum of the second and third



elements of y, and the last element of b was the fifth element

of y.) We checked that any four columns of C = BA were linearly independent and that the square matrices they defined
condition numbers. From the four elements of
 reasonable




b = By = BAx, we were able to calculate x, and from x we could


proceed to y = Ax-the vector of measured values.

From Math to E.E.
If we were interested in a "pencil and paper design," we might
have been able to say that we were finished. At this stage, we
know how to compress five measurements into four values-
and we could sample these four values below the Nyquist rate
and still retain all of the information about the original measurements. We, however, wanted to see sub-Nyquist sampling
in all its glory. To that end, we built the system described schematically in Fig. 1. This system is composed of a sample and
hold subsystem, summing circuits that implement B, a second,
simpler sample-and-hold subsystem, an ADuC841 microcontroller [10], and a PC. A signal enters the system (Fig. 1) from
the "left" and is sampled at a rate of 2 kSamp/sec by the analog
shift register. At any given time, five "sampled and held" samples are available. In the "adder" block, the five samples are
combined into four linear combinations- by analog circuits
that implement the operations "specified" by B. The output
of the analog circuit is "sampled and held" every fifth clock
for five clock periods-for 2.5 ms. The microcontroller samples the held values every (2.5/4) ms-at a rate of 1.6 kSamp/
sec. Thus, the microcontroller's sampling rate is sub-Nyquist
for any signal whose frequency is above 800 Hz, and the microcontroller can make use of an A/D designed to work at this
lower sampling frequency.
The sample and hold units were implemented using the design shown in Fig. 2-although the inverted clock is actually
provided to the circuit by the ADuC841 that controls the system.
Because of the simple nature of our B matrix, the only summing circuits we needed to implement in order to "implement"
the matrix were two simple adders. The design we used is
given in Fig. 3. Next, the output of the summers is sampled every fifth sampling period and stored for five sampling periods.

Fig. 1. The System we designed.
98

IEEE Instrumentation & Measurement Magazine

April 2020

```

# Instrumentation & Measurement Magazine 23-2

## Table of Contents for the Digital Edition of Instrumentation & Measurement Magazine 23-2

No label
Instrumentation & Measurement Magazine 23-2 - No label
Instrumentation & Measurement Magazine 23-2 - Cover2
Instrumentation & Measurement Magazine 23-2 - 1
Instrumentation & Measurement Magazine 23-2 - 2
Instrumentation & Measurement Magazine 23-2 - 3
Instrumentation & Measurement Magazine 23-2 - 4
Instrumentation & Measurement Magazine 23-2 - 5
Instrumentation & Measurement Magazine 23-2 - 6
Instrumentation & Measurement Magazine 23-2 - 7
Instrumentation & Measurement Magazine 23-2 - 8
Instrumentation & Measurement Magazine 23-2 - 9
Instrumentation & Measurement Magazine 23-2 - 10
Instrumentation & Measurement Magazine 23-2 - 11
Instrumentation & Measurement Magazine 23-2 - 12
Instrumentation & Measurement Magazine 23-2 - 13
Instrumentation & Measurement Magazine 23-2 - 14
Instrumentation & Measurement Magazine 23-2 - 15
Instrumentation & Measurement Magazine 23-2 - 16
Instrumentation & Measurement Magazine 23-2 - 17
Instrumentation & Measurement Magazine 23-2 - 18
Instrumentation & Measurement Magazine 23-2 - 19
Instrumentation & Measurement Magazine 23-2 - 20
Instrumentation & Measurement Magazine 23-2 - 21
Instrumentation & Measurement Magazine 23-2 - 22
Instrumentation & Measurement Magazine 23-2 - 23
Instrumentation & Measurement Magazine 23-2 - 24
Instrumentation & Measurement Magazine 23-2 - 25
Instrumentation & Measurement Magazine 23-2 - 26
Instrumentation & Measurement Magazine 23-2 - 27
Instrumentation & Measurement Magazine 23-2 - 28
Instrumentation & Measurement Magazine 23-2 - 29
Instrumentation & Measurement Magazine 23-2 - 30
Instrumentation & Measurement Magazine 23-2 - 31
Instrumentation & Measurement Magazine 23-2 - 32
Instrumentation & Measurement Magazine 23-2 - 33
Instrumentation & Measurement Magazine 23-2 - 34
Instrumentation & Measurement Magazine 23-2 - 35
Instrumentation & Measurement Magazine 23-2 - 36
Instrumentation & Measurement Magazine 23-2 - 37
Instrumentation & Measurement Magazine 23-2 - 38
Instrumentation & Measurement Magazine 23-2 - 39
Instrumentation & Measurement Magazine 23-2 - 40
Instrumentation & Measurement Magazine 23-2 - 41
Instrumentation & Measurement Magazine 23-2 - 42
Instrumentation & Measurement Magazine 23-2 - 43
Instrumentation & Measurement Magazine 23-2 - 44
Instrumentation & Measurement Magazine 23-2 - 45
Instrumentation & Measurement Magazine 23-2 - 46
Instrumentation & Measurement Magazine 23-2 - 47
Instrumentation & Measurement Magazine 23-2 - 48
Instrumentation & Measurement Magazine 23-2 - 49
Instrumentation & Measurement Magazine 23-2 - 50
Instrumentation & Measurement Magazine 23-2 - 51
Instrumentation & Measurement Magazine 23-2 - 52
Instrumentation & Measurement Magazine 23-2 - 53
Instrumentation & Measurement Magazine 23-2 - 54
Instrumentation & Measurement Magazine 23-2 - 55
Instrumentation & Measurement Magazine 23-2 - 56
Instrumentation & Measurement Magazine 23-2 - 57
Instrumentation & Measurement Magazine 23-2 - 58
Instrumentation & Measurement Magazine 23-2 - 59
Instrumentation & Measurement Magazine 23-2 - 60
Instrumentation & Measurement Magazine 23-2 - 61
Instrumentation & Measurement Magazine 23-2 - 62
Instrumentation & Measurement Magazine 23-2 - 63
Instrumentation & Measurement Magazine 23-2 - 64
Instrumentation & Measurement Magazine 23-2 - 65
Instrumentation & Measurement Magazine 23-2 - 66
Instrumentation & Measurement Magazine 23-2 - 67
Instrumentation & Measurement Magazine 23-2 - 68
Instrumentation & Measurement Magazine 23-2 - 69
Instrumentation & Measurement Magazine 23-2 - 70
Instrumentation & Measurement Magazine 23-2 - 71
Instrumentation & Measurement Magazine 23-2 - 72
Instrumentation & Measurement Magazine 23-2 - 73
Instrumentation & Measurement Magazine 23-2 - 74
Instrumentation & Measurement Magazine 23-2 - 75
Instrumentation & Measurement Magazine 23-2 - 76
Instrumentation & Measurement Magazine 23-2 - 77
Instrumentation & Measurement Magazine 23-2 - 78
Instrumentation & Measurement Magazine 23-2 - 79
Instrumentation & Measurement Magazine 23-2 - 80
Instrumentation & Measurement Magazine 23-2 - 81
Instrumentation & Measurement Magazine 23-2 - 82
Instrumentation & Measurement Magazine 23-2 - 83
Instrumentation & Measurement Magazine 23-2 - 84
Instrumentation & Measurement Magazine 23-2 - 85
Instrumentation & Measurement Magazine 23-2 - 86
Instrumentation & Measurement Magazine 23-2 - 87
Instrumentation & Measurement Magazine 23-2 - 88
Instrumentation & Measurement Magazine 23-2 - 89
Instrumentation & Measurement Magazine 23-2 - 90
Instrumentation & Measurement Magazine 23-2 - 91
Instrumentation & Measurement Magazine 23-2 - 92
Instrumentation & Measurement Magazine 23-2 - 93
Instrumentation & Measurement Magazine 23-2 - 94
Instrumentation & Measurement Magazine 23-2 - 95
Instrumentation & Measurement Magazine 23-2 - 96
Instrumentation & Measurement Magazine 23-2 - 97
Instrumentation & Measurement Magazine 23-2 - 98
Instrumentation & Measurement Magazine 23-2 - 99
Instrumentation & Measurement Magazine 23-2 - 100
Instrumentation & Measurement Magazine 23-2 - 101
Instrumentation & Measurement Magazine 23-2 - 102
Instrumentation & Measurement Magazine 23-2 - 103
Instrumentation & Measurement Magazine 23-2 - 104
Instrumentation & Measurement Magazine 23-2 - 105
Instrumentation & Measurement Magazine 23-2 - 106
Instrumentation & Measurement Magazine 23-2 - 107
Instrumentation & Measurement Magazine 23-2 - 108
Instrumentation & Measurement Magazine 23-2 - 109
Instrumentation & Measurement Magazine 23-2 - 110
Instrumentation & Measurement Magazine 23-2 - 111
Instrumentation & Measurement Magazine 23-2 - 112
Instrumentation & Measurement Magazine 23-2 - 113
Instrumentation & Measurement Magazine 23-2 - 114
Instrumentation & Measurement Magazine 23-2 - 115
Instrumentation & Measurement Magazine 23-2 - 116
Instrumentation & Measurement Magazine 23-2 - 117
Instrumentation & Measurement Magazine 23-2 - 118
Instrumentation & Measurement Magazine 23-2 - 119
Instrumentation & Measurement Magazine 23-2 - 120
Instrumentation & Measurement Magazine 23-2 - Cover3
Instrumentation & Measurement Magazine 23-2 - Cover4
https://www.nxtbook.com/allen/iamm/24-6
https://www.nxtbook.com/allen/iamm/24-5
https://www.nxtbook.com/allen/iamm/24-4
https://www.nxtbook.com/allen/iamm/24-3
https://www.nxtbook.com/allen/iamm/24-2
https://www.nxtbook.com/allen/iamm/24-1
https://www.nxtbook.com/allen/iamm/23-9
https://www.nxtbook.com/allen/iamm/23-8
https://www.nxtbook.com/allen/iamm/23-6
https://www.nxtbook.com/allen/iamm/23-5
https://www.nxtbook.com/allen/iamm/23-2
https://www.nxtbook.com/allen/iamm/23-3
https://www.nxtbook.com/allen/iamm/23-4
https://www.nxtbookmedia.com