1
\$\begingroup\$

I am trying to create a low pass filter with a cut-off frequency of 100Hz to retrieve a sine wave from a Fourier Square Wave. I am only able to achieve a sine wave with transients. How can I edit my filter design to achieve my desired output?

enter image description here

enter image description here

\$\endgroup\$
1
  • 4
    \$\begingroup\$ what is a Fourier Square Wave? \$\endgroup\$
    – jsotola
    Jun 16, 2020 at 3:02

1 Answer 1

2
\$\begingroup\$

Where is your filter math? RC for -3db at 100HZ is 10K/160nF. Or you can swap the RC values to be 16K/100nF. I would keep R >= 10K to avoid loading the summing op-amp, as the inverting input is treated as a virtual ground. From what I see you could increase the value of all resistors by a factor of 10.

The triangle output may be from using R values that are too low for the op-amp to drive. If 1.59K becomes 15.9K, then your 1uF capacitor needs to be just 100nF, avoiding the need for aluminum or tantalum capacitors. R6 becomes 15.9K which avoids loading the output of the op-amp. For LM324 normal minimum load is about 2.2K ohm.

Your program maybe interpreting values the way a real LM324 op-amp would see them.

\$\endgroup\$
1
  • \$\begingroup\$ Thank you! Yes, my load was too small. Changing R values to 15.9K and C to 100nF creates the desired sine wave. \$\endgroup\$
    – Simba N
    Jun 16, 2020 at 3:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.