This shows you the differences between two versions of the page.
system_data [2015/02/10 15:02] schultz |
system_data [2022/02/14 10:35] (current) scott |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== System Plots ====== | ====== System Plots ====== | ||
- | This is basic block diagram of the system. | + | This is a basic block diagram of the system. |
{{ :filterstructure.jpg |}} | {{ :filterstructure.jpg |}} | ||
Line 15: | Line 15: | ||
{{ :block.jpg |}} | {{ :block.jpg |}} | ||
- | We are going to start by looking at a signal that is a square wave without any noise. This initial plot is at location (1) on the block diagram. This signal is a square wave with frequency of f=1111 Hz, amplitude of 0.2 V peak-to-peak, and has an offset voltage of 0.5 V. We have zoomed in on the first 25 ms of time so that it is easy to see the square wave oscillations | + | We are going to start by looking at a signal that is a square wave without any noise. This initial plot is at location (1) on the block diagram. This signal is a square wave with frequency of f=1111 Hz, amplitude of 0.2 V peak-to-peak, offset voltage of 0.5 V, and a sampling frequency of FS=100 kHz. We have zoomed in on the first 25 ms of time so that it is easy to see the square wave oscillations |
{{ :plot1.jpg |}} | {{ :plot1.jpg |}} | ||
- | [[low_pass|Low pass filtering]] | + | The first block is the FIR low pass filter. The purpose of the low pass filtering is discussed in a separate [[low_pass|low pass filtering page]]. After the low pass filtering the signal is down sampled to FS=10 kHz. In the actual system the FIR filtering and the down-sampling are accomplished at the same time. |
- | We are going to start by looking at a very short time scale in order to easily see what things look like a t | + | |
+ | This plot shows both the low pass filtering and the down sampled signal. This is labeled as point (2) in the block diagram. The filtering starts at 0 since the data is initialized at zero. It quickly follows the original signal. | ||
+ | |||
+ | {{ :plot2.jpg |}} | ||
+ | |||
+ | The data is then passed through the 10 IIR bandpass filters. Rather than plotting all 10 signals this figure shows the signal after filters 0, 5, and 9. This is labeled as point (3) in the block diagram. The original signal is a square wave with a frequency that aligns with the frequency of filter 0. Notice that the amplitude of the signal out of Filter0 is close to the original amplitude and the output of the other filters is much lower. | ||
+ | |||
+ | {{ :plot3.jpg |}} | ||
+ | |||
+ | By looking at the signal in the previous plot it is fairly easy for you to see which player shot. But you need to think about how your determined that it is the hit. Without actually realizing it you looked at the envelope of the signal. | ||
+ | |||
+ | Rather than simply grabbing the maximum it is better to do a power calculation. To calculate the power we square the signal and then compute a moving average. The following plot is of the power sum and is position (4) on the block diagram. Initially the signal is 0 and then starts to increase as more samples are summed. Since we are adding the square of the signal every new sample increases the sum. However, the increase is much greater for the signal that has the correct frequency. This plot shows that the signal to noise ratio (SNR) increases with the length of the summation. In this project the shot length is specified to be 200 ms, which corresponds to 2000 samples. Therefore, to get the best SNR the summation length should be 2000 samples. | ||
+ | |||
+ | {{ :plot4.jpg |}} |