Tuesday, 9 July 2019

capacitor - RC filter with an square wave input


I've this RC filter circuit (r is connect to earth on the bottom):


enter image description here


My Vin is a square wave:


enter image description here


With Laplace transform I derived that:


$$Vout(s)=\frac{r}{r+\frac{1}{cs}}\cdot Vin(s)$$


and this square wave has a laplace transform of $$Vin(s)=\frac{\text{A}\tanh\left(\frac{\text{T}s}{4}\right)}{s}$$


So, when we substitute that in,in the equation for Vout(s) and calculate the inverse laplace transform, and plot that function I got this:



enter image description here



Q: Why do I get (from the theory) this strange output voltage?




Answer



You should get a crude saw-tooth shaped output. Only the rising edge from -A to A should go through this hi-pass filter. A real-world setup and an oscilloscope would show a cleaner image, including the negative going return spike.

They would be visible on an oscilloscope, which can draw pulses or any wave shape with very fast rise and fall times, as the signal draws directly on the display without any software intervention.

I do not know why it is not on your plot, unless it did not have time for the drawing engine to do them, which is using software to calculate how to draw the image. The other reason for missing parts of the waveform would be a calculation with an irrational or out-of range t value. Where is your t value for Vout?


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...