ImperfectSeven
Junior Member level 1
I am working on making a 2nd order RC low pass filter to turn my PWM signal into a DC signal. I have set the system clock at 24 MHz and I have 10 bit resolution on my PWM so it has a frequency of about 23.4375 kHz. From what I have read it is recommended that the 3dB point should be about 1/5 of the PWM frequency. That puts my 3dB point around 4.5 kHz From what I understand I need to select my R and C values such that my f_n = 1/(2*pi*sqrt(R1R2C1C2)) is less than or equal to that 4.5 kHz, but I need my damping ratio to stay round 1. The problem I am having is that I don't know how to solve for the RC values without guessing and checking.
Here is what I have done:
3dB point = fn = 1/(2*pi*sqrt(R1R2C1C2))
damping ratio = d = (R1C1 + R1C2 + R2C2)/(2*sqrt(R1R2C1C2))
I pick some arbitrary value for f_n that is less than or equal to 4.5k
f_n = 1k = 1/(2*pi*sqrt(R1R2C1C2))
1/(2*sqrt(R1R2C1C2)) = 3.14k
(2*sqrt(R1R2C1C2)) = 318u *
(R1R2C1C2) = 25.33n (1)
equate my damping ratio to 1
(R1C1 + R1C2 + R2C2)/(2*sqrt(R1R2C1C2)) = 1
(R1C1 + R1C2 + R2C2) = (2*sqrt(R1R2C1C2)) *
(R1C1 + R1C2 + R2C2)= 318u (2)
At this point I get a little stuck and I wing it by pick an R1 and C1 value
R1 = 2k
C1 = 0.1u
After plugging those in to (1) and (2)
R2C2 = 126.65u
200u + 2kC2 + R2C2 = 318u
2kC2 = -8.65u
C2 = -4.325n
As you can see I get a negative capacitance value which obviously isn't possible.
I have tried adjusting what I set R1 and C1 to but once again I am in the guess and check realm.
Is there something I am missing about this filter?
Here is what I have done:
3dB point = fn = 1/(2*pi*sqrt(R1R2C1C2))
damping ratio = d = (R1C1 + R1C2 + R2C2)/(2*sqrt(R1R2C1C2))
I pick some arbitrary value for f_n that is less than or equal to 4.5k
f_n = 1k = 1/(2*pi*sqrt(R1R2C1C2))
1/(2*sqrt(R1R2C1C2)) = 3.14k
(2*sqrt(R1R2C1C2)) = 318u *
(R1R2C1C2) = 25.33n (1)
equate my damping ratio to 1
(R1C1 + R1C2 + R2C2)/(2*sqrt(R1R2C1C2)) = 1
(R1C1 + R1C2 + R2C2) = (2*sqrt(R1R2C1C2)) *
(R1C1 + R1C2 + R2C2)= 318u (2)
At this point I get a little stuck and I wing it by pick an R1 and C1 value
R1 = 2k
C1 = 0.1u
After plugging those in to (1) and (2)
R2C2 = 126.65u
200u + 2kC2 + R2C2 = 318u
2kC2 = -8.65u
C2 = -4.325n
As you can see I get a negative capacitance value which obviously isn't possible.
I have tried adjusting what I set R1 and C1 to but once again I am in the guess and check realm.
Is there something I am missing about this filter?