nass-micro-station-measurem.../slip-ring-noise-turning/index.html

819 lines
28 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2020-11-12 jeu. 10:29 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Measurements On the Slip-Ring</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="https://research.tdehaeze.xyz/css/style.css"/>
<script type="text/javascript" src="https://research.tdehaeze.xyz/js/script.js"></script>
<script>MathJax = {
tex: {
tags: 'ams',
macros: {bm: ["\\boldsymbol{#1}",1],}
}
};
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="../index.html"> UP </a>
|
<a accesskey="H" href="../index.html"> HOME </a>
</div><div id="content">
<h1 class="title">Measurements On the Slip-Ring</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#orga0c7470">1. Effect of the rotation of the Slip-Ring - Noise</a>
<ul>
<li><a href="#org5394d04">1.1. Measurement Description</a></li>
<li><a href="#org015bd45">1.2. Load data</a></li>
<li><a href="#org880c3cd">1.3. Analysis</a></li>
<li><a href="#orgd0a405c">1.4. Conclusion</a></li>
</ul>
</li>
<li><a href="#orge484f16">2. Measure of the noise induced by the Slip-Ring using voltage amplifiers - Noise</a>
<ul>
<li><a href="#orgcffd362">2.1. Measurement Description</a></li>
<li><a href="#orgb04e3fc">2.2. Load data</a></li>
<li><a href="#orgeb6990e">2.3. Time Domain</a></li>
<li><a href="#org9809223">2.4. Frequency Domain</a></li>
<li><a href="#org6edde18">2.5. Conclusion</a></li>
</ul>
</li>
<li><a href="#org34a88cd">3. Measure of the noise induced by the Slip-Ring rotation - LPF added</a>
<ul>
<li><a href="#org9842ef1">3.1. Measurement description</a></li>
<li><a href="#org301dd52">3.2. Load data</a></li>
<li><a href="#orgd6c3972">3.3. Time Domain</a></li>
<li><a href="#org6579314">3.4. Frequency Domain - Direct Signal</a></li>
<li><a href="#orgf591b45">3.5. Frequency Domain - Slip-Ring Signal</a></li>
<li><a href="#org599231a">3.6. Conclusion</a></li>
</ul>
</li>
</ul>
</div>
</div>
<p>
We determine if the slip-ring add some noise to the signal when it is turning:
</p>
<ul class="org-ul">
<li>Section <a href="#org05554d3">1</a>:
<ul class="org-ul">
<li>Noise is generated by the Speedgoat DAC and goes trough the slip-ring two times</li>
<li>We measure the signal when it is OFF, ON but not turning and ON and turning</li>
<li>However, the measurement is limited by the ADC noise</li>
</ul></li>
<li>Section <a href="#org28c6f1d">2</a>:
<ul class="org-ul">
<li>Voltage amplifiers are added, and the same measurements are done</li>
<li>However, the voltage amplifiers are saturating because of high frequency noise</li>
</ul></li>
<li>Section <a href="#org6fb7c81">3</a>:
<ul class="org-ul">
<li>Low pass filter are added at the input of the voltage amplifier and the same measurement is done</li>
</ul></li>
</ul>
<div id="outline-container-orga0c7470" class="outline-2">
<h2 id="orga0c7470"><span class="section-number-2">1</span> Effect of the rotation of the Slip-Ring - Noise</h2>
<div class="outline-text-2" id="text-1">
<p>
<a id="org05554d3"></a>
</p>
<div class="note" id="org3e3398d">
<p>
All the files (data and Matlab scripts) are accessible <a href="data/meas_effect_sr.zip">here</a>.
</p>
</div>
</div>
<div id="outline-container-org5394d04" class="outline-3">
<h3 id="org5394d04"><span class="section-number-3">1.1</span> Measurement Description</h3>
<div class="outline-text-3" id="text-1-1">
<p>
<b>Setup</b>:
Random Signal is generated by one SpeedGoat DAC.
</p>
<p>
The signal going out of the DAC is split into two:
</p>
<ul class="org-ul">
<li>one BNC cable is directly connected to one ADC of the SpeedGoat</li>
<li>one BNC cable goes two times in the Slip-Ring (from bottom to top and then from top to bottom) and then is connected to one ADC of the SpeedGoat</li>
</ul>
<p>
All the stages are turned OFF except the Slip-Ring.
</p>
<p>
<b>Goal</b>:
The goal is to determine if the signal is altered when the spindle is rotating.
</p>
<p>
<b>Measurements</b>:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Data File</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>mat/data_001.mat</code></td>
<td class="org-left">Slip-ring not turning but ON</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_002.mat</code></td>
<td class="org-left">Slip-ring turning at 1rpm</td>
</tr>
</tbody>
</table>
<p>
For each measurement, the measured signals are:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Variable</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>t</code></td>
<td class="org-left">Time vector</td>
</tr>
<tr>
<td class="org-left"><code>x1</code></td>
<td class="org-left">Direct signal</td>
</tr>
<tr>
<td class="org-left"><code>x2</code></td>
<td class="org-left">Signal going through the Slip-Ring</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-org015bd45" class="outline-3">
<h3 id="org015bd45"><span class="section-number-3">1.2</span> Load data</h3>
<div class="outline-text-3" id="text-1-2">
<p>
We load the data of the z axis of two geophones.
</p>
<div class="org-src-container">
<pre class="src src-matlab">sr_off = load(<span class="org-string">'mat/data_001.mat'</span>, <span class="org-string">'t'</span>, <span class="org-string">'x1'</span>, <span class="org-string">'x2'</span>);
sr_on = load(<span class="org-string">'mat/data_002.mat'</span>, <span class="org-string">'t'</span>, <span class="org-string">'x1'</span>, <span class="org-string">'x2'</span>);
</pre>
</div>
</div>
</div>
<div id="outline-container-org880c3cd" class="outline-3">
<h3 id="org880c3cd"><span class="section-number-3">1.3</span> Analysis</h3>
<div class="outline-text-3" id="text-1-3">
<p>
Let&rsquo;s first look at the signal produced by the DAC (figure <a href="#orgc840333">1</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">figure</span>;
hold on;
plot(sr_on.t, sr_on.x1);
hold off;
xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-string">'Voltage [V]'</span>);
xlim([0 10]);
</pre>
</div>
<div id="orgc840333" class="figure">
<p><img src="figs/random_signal.png" alt="random_signal.png" />
</p>
<p><span class="figure-number">Figure 1: </span>Random signal produced by the DAC</p>
</div>
<p>
We now look at the difference between the signal directly measured by the ADC and the signal that goes through the slip-ring (figure <a href="#org600f7bf">2</a>).
</p>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">figure</span>;
hold on;
plot(sr_on.t, sr_on.x1 <span class="org-type">-</span> sr_on.x2, <span class="org-string">'DisplayName'</span>, <span class="org-string">'Slip-Ring - $\omega = 1rpm$'</span>);
plot(sr_off.t, sr_off.x1 <span class="org-type">-</span> sr_off.x2,<span class="org-string">'DisplayName'</span>, <span class="org-string">'Slip-Ring off'</span>);
hold off;
xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-string">'Voltage [V]'</span>);
xlim([0 10]);
legend(<span class="org-string">'Location'</span>, <span class="org-string">'northeast'</span>);
</pre>
</div>
<div id="org600f7bf" class="figure">
<p><img src="figs/slipring_comp_signals.png" alt="slipring_comp_signals.png" />
</p>
<p><span class="figure-number">Figure 2: </span>Alteration of the signal when the slip-ring is turning</p>
</div>
<div class="org-src-container">
<pre class="src src-matlab">dt = sr_on.t(2) <span class="org-type">-</span> sr_on.t(1);
Fs = 1<span class="org-type">/</span>dt; <span class="org-comment">% [Hz]</span>
win = hanning(ceil(1<span class="org-type">*</span>Fs));
</pre>
</div>
<div class="org-src-container">
<pre class="src src-matlab">[pxx_on, f] = pwelch(sr_on.x1 <span class="org-type">-</span> sr_on.x2, win, [], [], Fs);
[pxx_off, <span class="org-type">~</span>] = pwelch(sr_off.x1 <span class="org-type">-</span> sr_off.x2, win, [], [], Fs);
</pre>
</div>
<div id="org1b06395" class="figure">
<p><img src="figs/psd_noise.png" alt="psd_noise.png" />
</p>
<p><span class="figure-number">Figure 3: </span>ASD of the measured noise</p>
</div>
</div>
</div>
<div id="outline-container-orgd0a405c" class="outline-3">
<h3 id="orgd0a405c"><span class="section-number-3">1.4</span> Conclusion</h3>
<div class="outline-text-3" id="text-1-4">
<div class="note" id="org71fbb94">
<ul class="org-ul">
<li>The measurement is mostly limited by the resolution of the Speedgoat DAC (16bits over \(\pm 10 V\))</li>
<li>In section <a href="#org28c6f1d">2</a>, the same measurement is done but voltage amplifiers are added to amplify the noise</li>
</ul>
</div>
</div>
</div>
</div>
<div id="outline-container-orge484f16" class="outline-2">
<h2 id="orge484f16"><span class="section-number-2">2</span> Measure of the noise induced by the Slip-Ring using voltage amplifiers - Noise</h2>
<div class="outline-text-2" id="text-2">
<p>
<a id="org28c6f1d"></a>
</p>
<div class="note" id="orgb572c7d">
<p>
All the files (data and Matlab scripts) are accessible <a href="data/meas_slip_ring.zip">here</a>.
</p>
</div>
</div>
<div id="outline-container-orgcffd362" class="outline-3">
<h3 id="orgcffd362"><span class="section-number-3">2.1</span> Measurement Description</h3>
<div class="outline-text-3" id="text-2-1">
<p>
<b>Goal</b>:
</p>
<ul class="org-ul">
<li>Determine the noise induced by the slip-ring when turned ON and when rotating</li>
</ul>
<p>
<b>Setup</b>:
</p>
<ul class="org-ul">
<li>0V is generated by one Speedgoat DAC</li>
<li>Using a T, one part goes directly to one Speedgoat ADC</li>
<li>The other part goes to the slip-ring 2 times and then to one voltage amplifier before going to the ADC</li>
<li>The parameters of the Voltage Amplifier are:
<ul class="org-ul">
<li>gain of 80dB</li>
<li>AC/DC option to AC (it adds an high pass filter at 1.5Hz at the input of the voltage amplifier)</li>
<li>Output Low pass filter set at 1kHz</li>
</ul></li>
<li>Every stage of the station is OFF</li>
</ul>
<p>
First column: Direct measure
Second column: Slip-ring measure
</p>
<p>
<b>Measurements</b>:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Data File</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>mat/data_008.mat</code></td>
<td class="org-left">Slip-Ring OFF</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_009.mat</code></td>
<td class="org-left">Slip-Ring ON</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_010.mat</code></td>
<td class="org-left">Slip-Ring ON and omega=6rpm</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_011.mat</code></td>
<td class="org-left">Slip-Ring ON and omega=60rpm</td>
</tr>
</tbody>
</table>
<p>
Each of the measurement <code>mat</code> file contains one <code>data</code> array with 3 columns:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-right" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-right">Column number</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-right">1</td>
<td class="org-left">Signal going directly to the ADC</td>
</tr>
<tr>
<td class="org-right">2</td>
<td class="org-left">Signal going through the Slip-Ring</td>
</tr>
<tr>
<td class="org-right">3</td>
<td class="org-left">Time</td>
</tr>
</tbody>
</table>
<div id="org0f30e7e" class="figure">
<p><img src="./img/VID_20190503_160831.gif" alt="VID_20190503_160831.gif" />
</p>
<p><span class="figure-number">Figure 4: </span>Slip-Ring rotating at 6rpm</p>
</div>
<div id="orgc30f130" class="figure">
<p><img src="./img/VID_20190503_161401.gif" alt="VID_20190503_161401.gif" />
</p>
<p><span class="figure-number">Figure 5: </span>Slip-Ring rotating at 60rpm</p>
</div>
</div>
</div>
<div id="outline-container-orgb04e3fc" class="outline-3">
<h3 id="orgb04e3fc"><span class="section-number-3">2.2</span> Load data</h3>
<div class="outline-text-3" id="text-2-2">
<p>
We load the data of the z axis of two geophones.
</p>
<div class="org-src-container">
<pre class="src src-matlab">sr_off = load(<span class="org-string">'mat/data_008.mat'</span>, <span class="org-string">'data'</span>); sr_off = sr_off.data;
sr_on = load(<span class="org-string">'mat/data_009.mat'</span>, <span class="org-string">'data'</span>); sr_on = sr_on.data;
sr_6r = load(<span class="org-string">'mat/data_010.mat'</span>, <span class="org-string">'data'</span>); sr_6r = sr_6r.data;
sr_60r = load(<span class="org-string">'mat/data_011.mat'</span>, <span class="org-string">'data'</span>); sr_60r = sr_60r.data;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgeb6990e" class="outline-3">
<h3 id="orgeb6990e"><span class="section-number-3">2.3</span> Time Domain</h3>
<div class="outline-text-3" id="text-2-3">
<p>
We plot the time domain data for the direct measurement (figure <a href="#orgab51d08">6</a>) and for the signal going through the slip-ring (figure <a href="#org660c7b1">7</a>);
</p>
<div id="orgab51d08" class="figure">
<p><img src="figs/sr_direct_time.png" alt="sr_direct_time.png" />
</p>
<p><span class="figure-number">Figure 6: </span>Direct measurement</p>
</div>
<div id="org660c7b1" class="figure">
<p><img src="figs/sr_slipring_time.png" alt="sr_slipring_time.png" />
</p>
<p><span class="figure-number">Figure 7: </span>Measurement of the signal going through the Slip-Ring</p>
</div>
</div>
</div>
<div id="outline-container-org9809223" class="outline-3">
<h3 id="org9809223"><span class="section-number-3">2.4</span> Frequency Domain</h3>
<div class="outline-text-3" id="text-2-4">
<p>
We first compute some parameters that will be used for the PSD computation.
</p>
<div class="org-src-container">
<pre class="src src-matlab">dt = sr_off(2, 3)<span class="org-type">-</span>sr_off(1, 3);
Fs = 1<span class="org-type">/</span>dt; <span class="org-comment">% [Hz]</span>
win = hanning(ceil(10<span class="org-type">*</span>Fs));
</pre>
</div>
<p>
Then we compute the Power Spectral Density using <code>pwelch</code> function.
</p>
<div class="org-src-container">
<pre class="src src-matlab">[pxdir, f] = pwelch(sr_off(<span class="org-type">:</span>, 1), win, [], [], Fs);
[pxoff, <span class="org-type">~</span>] = pwelch(sr_off(<span class="org-type">:</span>, 2), win, [], [], Fs);
[pxon, <span class="org-type">~</span>] = pwelch(sr_on(<span class="org-type">:</span>, 2), win, [], [], Fs);
[px6r, <span class="org-type">~</span>] = pwelch(sr_6r(<span class="org-type">:</span>, 2), win, [], [], Fs);
[px60r, <span class="org-type">~</span>] = pwelch(sr_60r(<span class="org-type">:</span>, 2), win, [], [], Fs);
</pre>
</div>
<p>
And we plot the ASD of the measured signals (figure <a href="#org3bc5568">8</a>);
</p>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">figure</span>;
hold on;
plot(f, sqrt(pxoff), <span class="org-string">'DisplayName'</span>, <span class="org-string">'OFF'</span>);
plot(f, sqrt(pxon), <span class="org-string">'DisplayName'</span>, <span class="org-string">'ON'</span>);
plot(f, sqrt(px6r), <span class="org-string">'DisplayName'</span>, <span class="org-string">'6rpm'</span>);
plot(f, sqrt(px60r), <span class="org-string">'DisplayName'</span>, <span class="org-string">'60rpm'</span>);
plot(f, sqrt(pxdir), <span class="org-string">'k-'</span>, <span class="org-string">'DisplayName'</span>, <span class="org-string">'Direct'</span>);
hold off;
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'xscale'</span>, <span class="org-string">'log'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'yscale'</span>, <span class="org-string">'log'</span>);
xlabel(<span class="org-string">'Frequency [Hz]'</span>); ylabel(<span class="org-string">'ASD of the measured Voltage $\left[\frac{V}{\sqrt{Hz}}\right]$'</span>)
legend(<span class="org-string">'Location'</span>, <span class="org-string">'northeast'</span>);
xlim([0.1, 500]);
</pre>
</div>
<div id="org3bc5568" class="figure">
<p><img src="figs/sr_psd_compare.png" alt="sr_psd_compare.png" />
</p>
<p><span class="figure-number">Figure 8: </span>Comparison of the ASD of the measured signals when the slip-ring is ON, OFF and turning</p>
</div>
<div class="note" id="org4b4a5f5">
<p>
<b>Questions:</b>
</p>
<ul class="org-ul">
<li>Why is there some sharp peaks? Can this be due to aliasing?</li>
<li>It is possible that the amplifiers were saturating during the measurements. This saturation could be due to high frequency noise.</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-org6edde18" class="outline-3">
<h3 id="org6edde18"><span class="section-number-3">2.5</span> Conclusion</h3>
<div class="outline-text-3" id="text-2-5">
<div class="important" id="org401fc3c">
<ul class="org-ul">
<li>The measurements are re-done using an additional low pass filter at the input of the voltage amplifier</li>
</ul>
</div>
</div>
</div>
</div>
<div id="outline-container-org34a88cd" class="outline-2">
<h2 id="org34a88cd"><span class="section-number-2">3</span> Measure of the noise induced by the Slip-Ring rotation - LPF added</h2>
<div class="outline-text-2" id="text-3">
<p>
<a id="org6fb7c81"></a>
</p>
<div class="note" id="orgffe6059">
<p>
All the files (data and Matlab scripts) are accessible <a href="data/meas_slip_ring_lpf.zip">here</a>.
</p>
</div>
</div>
<div id="outline-container-org9842ef1" class="outline-3">
<h3 id="org9842ef1"><span class="section-number-3">3.1</span> Measurement description</h3>
<div class="outline-text-3" id="text-3-1">
<p>
<b>Setup</b>:
Voltage amplifier:
</p>
<ul class="org-ul">
<li>60db</li>
<li>AC</li>
<li>1kHz</li>
</ul>
<p>
Additionnal LPF at 1kHz
</p>
<p>
<b>Goal</b>:
</p>
<p>
<b>Measurements</b>:
</p>
<p>
Three measurements are done:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-left" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Measurement File</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left"><code>mat/data_030.mat</code></td>
<td class="org-left">All off</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_031.mat</code></td>
<td class="org-left">Slip-Ring on</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_032.mat</code></td>
<td class="org-left">Slip-Ring 6rpm</td>
</tr>
<tr>
<td class="org-left"><code>mat/data_033.mat</code></td>
<td class="org-left">Slip-Ring 60rpm</td>
</tr>
</tbody>
</table>
<p>
Each of the measurement <code>mat</code> file contains one <code>data</code> array with 3 columns:
</p>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup>
<col class="org-right" />
<col class="org-left" />
</colgroup>
<thead>
<tr>
<th scope="col" class="org-right">Column number</th>
<th scope="col" class="org-left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-right">1</td>
<td class="org-left">Direct Measure</td>
</tr>
<tr>
<td class="org-right">2</td>
<td class="org-left">Slip-Ring</td>
</tr>
<tr>
<td class="org-right">3</td>
<td class="org-left">Time</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="outline-container-org301dd52" class="outline-3">
<h3 id="org301dd52"><span class="section-number-3">3.2</span> Load data</h3>
<div class="outline-text-3" id="text-3-2">
<p>
We load the data of the z axis of two geophones.
</p>
<div class="org-src-container">
<pre class="src src-matlab">sr_of = load(<span class="org-string">'mat/data_030.mat'</span>, <span class="org-string">'data'</span>); sr_of = sr_of.data;
sr_on = load(<span class="org-string">'mat/data_031.mat'</span>, <span class="org-string">'data'</span>); sr_on = sr_on.data;
sr_6r = load(<span class="org-string">'mat/data_032.mat'</span>, <span class="org-string">'data'</span>); sr_6r = sr_6r.data;
sr_60 = load(<span class="org-string">'mat/data_033.mat'</span>, <span class="org-string">'data'</span>); sr_60 = sr_60.data;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd6c3972" class="outline-3">
<h3 id="orgd6c3972"><span class="section-number-3">3.3</span> Time Domain</h3>
<div class="outline-text-3" id="text-3-3">
<p>
We plot the time domain data for the direct measurement (figure <a href="#org994e2d6">9</a>) and for the signal going through the slip-ring (figure <a href="#org87edab9">11</a>);
</p>
<div id="org994e2d6" class="figure">
<p><img src="figs/sr_direct_1khz_time.png" alt="sr_direct_1khz_time.png" />
</p>
<p><span class="figure-number">Figure 9: </span>Direct measurement</p>
</div>
<div class="org-src-container">
<pre class="src src-matlab">xlim([0, 0.2]); ylim([<span class="org-type">-</span>2e<span class="org-type">-</span>3, 2e<span class="org-type">-</span>3]);
</pre>
</div>
<div id="orgaf6700b" class="figure">
<p><img src="figs/sr_direct_1khz_time_zoom.png" alt="sr_direct_1khz_time_zoom.png" />
</p>
<p><span class="figure-number">Figure 10: </span>Direct measurement - Zoom</p>
</div>
<div id="org87edab9" class="figure">
<p><img src="figs/sr_slipring_1khz_time.png" alt="sr_slipring_1khz_time.png" />
</p>
<p><span class="figure-number">Figure 11: </span>Measurement of the signal going through the Slip-Ring</p>
</div>
</div>
</div>
<div id="outline-container-org6579314" class="outline-3">
<h3 id="org6579314"><span class="section-number-3">3.4</span> Frequency Domain - Direct Signal</h3>
<div class="outline-text-3" id="text-3-4">
<p>
We first compute some parameters that will be used for the PSD computation.
</p>
<div class="org-src-container">
<pre class="src src-matlab">dt = sr_of(2, 3)<span class="org-type">-</span>sr_of(1, 3);
Fs = 1<span class="org-type">/</span>dt; <span class="org-comment">% [Hz]</span>
win = hanning(ceil(10<span class="org-type">*</span>Fs));
</pre>
</div>
<p>
Then we compute the Power Spectral Density using <code>pwelch</code> function.
</p>
<div class="org-src-container">
<pre class="src src-matlab">[px_d_of, f] = pwelch(sr_of(<span class="org-type">:</span>, 1), win, [], [], Fs);
[px_d_on, <span class="org-type">~</span>] = pwelch(sr_on(<span class="org-type">:</span>, 1), win, [], [], Fs);
[px_d_6r, <span class="org-type">~</span>] = pwelch(sr_6r(<span class="org-type">:</span>, 1), win, [], [], Fs);
[px_d_60, <span class="org-type">~</span>] = pwelch(sr_60(<span class="org-type">:</span>, 1), win, [], [], Fs);
</pre>
</div>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">figure</span>;
hold on;
plot(f, sqrt(px_d_of), <span class="org-string">'DisplayName'</span>, <span class="org-string">'OFF'</span>);
plot(f, sqrt(px_d_on), <span class="org-string">'DisplayName'</span>, <span class="org-string">'ON'</span>);
plot(f, sqrt(px_d_6r), <span class="org-string">'DisplayName'</span>, <span class="org-string">'6rpm'</span>);
plot(f, sqrt(px_d_60), <span class="org-string">'DisplayName'</span>, <span class="org-string">'60rpm'</span>);
hold off;
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'xscale'</span>, <span class="org-string">'log'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'yscale'</span>, <span class="org-string">'log'</span>);
xlabel(<span class="org-string">'Frequency [Hz]'</span>); ylabel(<span class="org-string">'ASD of the measured Voltage $\left[\frac{V}{\sqrt{Hz}}\right]$'</span>)
legend(<span class="org-string">'Location'</span>, <span class="org-string">'northeast'</span>);
xlim([0.1, 5000]);
</pre>
</div>
<div id="org5a81a77" class="figure">
<p><img src="figs/sr_psd_1khz_direct.png" alt="sr_psd_1khz_direct.png" />
</p>
<p><span class="figure-number">Figure 12: </span>Amplitude Spectral Density of the signal going directly to the ADC</p>
</div>
</div>
</div>
<div id="outline-container-orgf591b45" class="outline-3">
<h3 id="orgf591b45"><span class="section-number-3">3.5</span> Frequency Domain - Slip-Ring Signal</h3>
<div class="outline-text-3" id="text-3-5">
<div class="org-src-container">
<pre class="src src-matlab">[px_sr_of, f] = pwelch(sr_of(<span class="org-type">:</span>, 2), win, [], [], Fs);
[px_sr_on, <span class="org-type">~</span>] = pwelch(sr_on(<span class="org-type">:</span>, 2), win, [], [], Fs);
[px_sr_6r, <span class="org-type">~</span>] = pwelch(sr_6r(<span class="org-type">:</span>, 2), win, [], [], Fs);
[px_sr_60, <span class="org-type">~</span>] = pwelch(sr_60(<span class="org-type">:</span>, 2), win, [], [], Fs);
</pre>
</div>
<div class="org-src-container">
<pre class="src src-matlab"><span class="org-type">figure</span>;
hold on;
plot(f, sqrt(px_sr_of), <span class="org-string">'DisplayName'</span>, <span class="org-string">'OFF'</span>);
plot(f, sqrt(px_sr_on), <span class="org-string">'DisplayName'</span>, <span class="org-string">'ON'</span>);
plot(f, sqrt(px_sr_6r), <span class="org-string">'DisplayName'</span>, <span class="org-string">'6rpm'</span>);
plot(f, sqrt(px_sr_60), <span class="org-string">'DisplayName'</span>, <span class="org-string">'60rpm'</span>);
plot(f, sqrt(px_d_of), <span class="org-string">'-k'</span>, <span class="org-string">'DisplayName'</span>, <span class="org-string">'Direct'</span>);
hold off;
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'xscale'</span>, <span class="org-string">'log'</span>);
<span class="org-type">set</span>(<span class="org-variable-name">gca</span>, <span class="org-string">'yscale'</span>, <span class="org-string">'log'</span>);
xlabel(<span class="org-string">'Frequency [Hz]'</span>); ylabel(<span class="org-string">'ASD of the measured Voltage $\left[\frac{V}{\sqrt{Hz}}\right]$'</span>)
legend(<span class="org-string">'Location'</span>, <span class="org-string">'northeast'</span>);
xlim([0.1, 5000]);
</pre>
</div>
<div id="orgab20b33" class="figure">
<p><img src="figs/sr_psd_1khz_slipring.png" alt="sr_psd_1khz_slipring.png" />
</p>
<p><span class="figure-number">Figure 13: </span>Amplitude Spectral Density of the signal going through the slip-ring</p>
</div>
</div>
</div>
<div id="outline-container-org599231a" class="outline-3">
<h3 id="org599231a"><span class="section-number-3">3.6</span> Conclusion</h3>
<div class="outline-text-3" id="text-3-6">
<div class="important" id="org965e629">
<ul class="org-ul">
<li>We observe peaks at 12Hz and its harmonics for the signal going through the slip-ring when it is turning at 60rpm.</li>
<li>Apart from that, the noise of the signal is the same when the slip-ring is off/on and turning</li>
<li>The noise of the signal going through the slip-ring is much higher that the direct signal from the DAC to the ADC</li>
<li>A peak is obverse at 11.5Hz on the direct signal as soon as the slip-ring is turned ON. Can this be due to high frequency noise and Aliasing? As there is no LPF to filter the noise on the direct signal, this effect could be more visible on the direct signal.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2020-11-12 jeu. 10:29</p>
</div>
</body>
</html>