Page 1 of 1

Is a laplace transform on simple low pass filter in python useful to solve my problem?

Posted: 13 Nov 2017, 07:48
by Asaki
Looking at this picture

It shows a simple graph of an with and without bypass filter circuit voltage difference, I wanted to recreate this picture.

I have coded the noise and created the graph of the noisy signal:

Code: Select all

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

v_in = np.random.uniform(-0.005,0.005,150)+5
v_out = 1/(1+1*0.1E-6*s)*v_in #this line is wrong, no such thing as '*s'

plt.axis([0, 150, 4.95, 5.05])
plt.title('Bypass capacitor')
plt.xticks(v_in, " ")


Now the difficult part is that I want to solve this by having the parallel capacitor be represented as an RC low pass circuit with R = 1, and the corosponding transfer function of

I am confused with what to do with the 's', I think a laplace transform of the input? please help, i can work with impedances and AC-frequency, but a complex signal is new. a bit of theory behind the laplace 's' variable followed by the simple demo partialy set up would be very much appriciated!