<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>shanshan</title>
<link>https://tsukiyokai.github.io/</link>
<atom:link href="https://tsukiyokai.github.io/index.xml" rel="self" type="application/rss+xml"/>
<description>shanshan 的博客</description>
<generator>quarto-1.11.9</generator>
<lastBuildDate>Fri, 06 Nov 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>RC 低通滤波器的频率响应</title>
  <dc:creator>shanshan </dc:creator>
  <link>https://tsukiyokai.github.io/posts/rc-lowpass/</link>
  <description><![CDATA[ 





<p>一阶 RC 低通滤波器的传递函数为</p>
<p><span id="eq-rc"><img src="https://latex.codecogs.com/png.latex?%0AH(j%5Comega)%20=%20%5Cfrac%7B1%7D%7B1%20+%20j%5Comega%20RC%7D%0A%5Ctag%7B1%7D"></span></p>
<p>由 式&nbsp;1，<img src="https://latex.codecogs.com/png.latex?%7CH%7C"> 在截止角频率 <img src="https://latex.codecogs.com/png.latex?%5Comega_c%20=%201/RC"> 处降到 <img src="https://latex.codecogs.com/png.latex?1/%5Csqrt%7B2%7D">，即 <img src="https://latex.codecogs.com/png.latex?-3%5C%20%5Cmathrm%7BdB%7D">；<img src="https://latex.codecogs.com/png.latex?%5Comega%20%5Cgg%20%5Comega_c"> 时，幅值以 <img src="https://latex.codecogs.com/png.latex?-20%5C%20%5Cmathrm%7BdB/dec%7D"> 下降，相位趋于 <img src="https://latex.codecogs.com/png.latex?-90%5E%5Ccirc"> <span class="citation" data-cites="oppenheim1997">[1]</span>。图&nbsp;1 取 <img src="https://latex.codecogs.com/png.latex?R%20=%201%5C%20%5Cmathrm%7Bk%5COmega%7D">、<img src="https://latex.codecogs.com/png.latex?C%20=%20159%5C%20%5Cmathrm%7BnF%7D">，对应 <img src="https://latex.codecogs.com/png.latex?f_c%20=%201/(2%5Cpi%20RC)%20%5Capprox%201%5C%20%5Cmathrm%7BkHz%7D">。</p>
<div id="cell-fig-bode" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>代码</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> matplotlib.pyplot <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> plt</span>
<span id="cb1-2"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> numpy <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> np</span>
<span id="cb1-3"></span>
<span id="cb1-4">R, C <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1e3</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">159e-9</span></span>
<span id="cb1-5">f <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> np.logspace(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">500</span>)</span>
<span id="cb1-6">H <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">/</span> (<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">2j</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> np.pi <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> f <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> R <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> C)</span>
<span id="cb1-7"></span>
<span id="cb1-8">fig, (mag, phase) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> plt.subplots(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, sharex<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">True</span>)</span>
<span id="cb1-9">mag.semilogx(f, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> np.log10(<span class="bu" style="color: null;
background-color: null;
font-style: inherit;">abs</span>(H)))</span>
<span id="cb1-10">mag.set_ylabel(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"|H| (dB)"</span>)</span>
<span id="cb1-11">phase.semilogx(f, np.degrees(np.angle(H)))</span>
<span id="cb1-12">phase.set_ylabel(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"phase (deg)"</span>)</span>
<span id="cb1-13">phase.set_xlabel(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"f (Hz)"</span>)</span>
<span id="cb1-14">plt.show()</span></code></pre></div></div>
</details>
<div class="cell-output cell-output-display">
<div id="fig-bode" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-bode-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://tsukiyokai.github.io/posts/rc-lowpass/index_files/figure-html/fig-bode-output-1.svg" class="img-fluid figure-img">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-bode-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
图&nbsp;1: RC 低通滤波器的 Bode 图
</figcaption>
</figure>
</div>
</div>
</div>




<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">参考文献</h2><div id="refs" class="references csl-bib-body" data-entry-spacing="0">
<div id="ref-oppenheim1997" class="csl-entry">
<div class="csl-left-margin">[1] </div><div class="csl-right-inline">A. V. Oppenheim, A. S. Willsky, and S. H. Nawab, <em>Signals and Systems</em>, 2nd ed. Upper Saddle River, NJ: Prentice Hall, 1997.</div>
</div>
</div></section></div> ]]></description>
  <category>电路</category>
  <guid>https://tsukiyokai.github.io/posts/rc-lowpass/</guid>
  <pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate>
</item>
</channel>
</rss>
