Capacitor

The capacitor as a component

Math

Impedance of the capacitor in respect to frequency

Test

I used a 4p7 capacitor in series to a square wave generator.

Scope

yellow = CH1 = INPUT

purple = CH2 = OUTPUT

fScopeComment
1KHz                                      
The capacitor is just passing the high frequency of this low frequency signal, that's why we see the edges. In the "DC-part" of the signal the output signal falls slightly over time.

Xc = 33MOhm 
15.6KHz                                                              
The signal looks better. We see the mean voltage is around 0V but we have a positive and a negative part of the signal. 

This effect is used in charge pumps to generate negative voltages (MAX232 for example) 

Xc = 2MOhm
62.5KHz
The signal is now passed nearly without any significant changes. 

Xc = 500kOhm
1MHz
So 1MHz signal is just passing without any problem. Even the distortions are not filtered. 

Basically just the DC offset of the signal is eliminated. 

Xc = 31K2Ohm
4MHz
Just to have the full range maxed out. 



Inductor

The inductor as a component.

Math

Impedance of the inductor in respect to frequency.

Test

I have a 67uH and a 220uH inductor. So I simply put this inductor in series to a square wave signal.

Scope

yellow = CH1 = INPUT

purple = CH2 = OUTPUT

67uH inductance

I use a PP510 probe with 10-22pF input capacitance (we need this later)

fScopeComment
488Hz                                                         
The signal seems normal but you can see there are spikes on the edges of the signal showing up. 

488Hz
Zooming in shows the "ringing" of the signal on the edges. 

Also the 5V signal now went up to 7.2V. 
Remember inductance inducts voltage :-) 
488Hz
Inductance reacts on the change of current, so we see the same effect when the signal changes on the falling edge.

Note: The ringing also includes a capacitor, which I do not have in the circuit, but my scope probe and my pcb traces have capacitance, so this is not a perfect measurement of a perfect inductor, but that was not the goal. We see the effect.
31.25KHz
Increasing the frequency shows the spikes better. We also get a Vpp of 9V! 
250KHz
I like this picture. 

Just enjoy it, we are getting closer to the target frequency. 
XL@250kHz = 105Ohm
1MHz
Ok here we see that the signal is getting filtered heavily.

This signal reminds me of measurements of high speed signal on pcb tracks. When your clock looks like this you know what's going on here. The higher frequencies of the signal are filtered, so no sharp edges anymore!

2MHz
Ok, we converted the square to a sine wave now. I changed the voltage/div, we have 15.4Vpp here!

The sine has basically the 2MHz, so this is a good spot all "higher" frequencies are removed and we see the basic frequency of the signal. 
XL@2MHz = 842Ohm

RC Filter

The basic RC low pass filter. 

Math

The frequency of the filter can be calculated with the formula: 

Test

I used a 3k3 resistor with a 47pF C, this results in

The input signal is a square wave with 4.5Vpp. Also a square wave includes "all frequencies" so I thought this is a good and simple input signal to see the different effects of filters and components. 

Scope

yellow = CH1 = INPUT

purple = CH2 = OUTPUT

fScopeComment
15.62kHz                                                                               
The frequency is far lower then the 1MHz, so the signal is not much affected at all. 

15.62kHz
Zooming in the edges:

The falling edge of the signal is flatten because of the RC filter.

So round about 65 time higher RC filter let the signal nearly untouched and just makes the edges a little bit softer. 
15.62kHz
Rising edge, same, the rising time is about 600ns.
125KHz
No we are seeing an effect, the rise and fall time are getting worse. 

8 times below the target frequency.
250Khz
4 times below the target frequency 

We still get to the 4.5Vpp, but the square wave is now getting cut off. 
500Khz
2 times below the target frequency

We still get to the 4.5Vpp
1MHz
1 MHz target frequency of the filter. 

We see that the signal is not reaching 4.5Vpp anymore, also it is not getting down to 0V again. 

We lost about 20% amplitude. 

Vpp input signal 4.5Vpp
Vpp output signal ~3.6Vpp

2MHz
2 times above target frequency

Also interesting that we get a DC bias because the signal is now getting integrated. 

We lost about 50% amplitude. 

Vpp input signal 4.5Vpp
Vpp output signal ~2.2 Vpp
  4MHz
4 times above target frequency

We lost about 65% Vpp. 

Vpp input signal 4.5Vpp
Vpp output signal ~1.6 Vpp

Also good to see, the signal is a square wave with a 50% duty cycle. 4MHz is the maximum of my generator, but when I increase the frequency further the output voltage should be converted in a DC voltage at 50% amplitude, so 2.2V. 
This is why a RC filter can be used together with PWM to generate a DC voltage (DAC). Important is to use a much higher PWM frequency to get rid of the ripple. 
4MHz
I changed the 47pF C to 4n7. (f3db = 10kHz)

Now we really have a DC value of the signal. I activated the mean measurements and peak to peak. 
Because of the 50% duty cycle the DC value is now the mean value of the input signal.