×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

low pass filtering of square wave to get sine wave

low pass filtering of square wave to get sine wave

low pass filtering of square wave to get sine wave

(OP)
I'm filtering a 1020Hz 3.3V squarewave from a microprosessor using a 2 pole low pass butterworth filter. Thanks to TI for their filter pro! I would like the output frequency of filter to be a 1020Hz sine wave. I realize that if I select the cutoff frequency at 1020Hz that my sine wave will be attenuated by -3dB. However, I would like this sine wave to be attenuated as little as possible.

By taking a look at the forier transform of a square wave I see the following beginning few terms...
4*k/(pi)*(sinx+0.33sin(3x)+0.2sin(5x)...)

So my understanding of the forier trasform is that I can set a cutoff frequency for the filter at 3*1020Hz (frequency of second term) and my output of the filter will be an unattenuated 1020Hz sine wave.

I would like to bounce this thought process off of you guys to see if this is a correct way to be thinking about getting an unattenuated sine wave. I'm new to filters...

I appreciate your guidance!

Thanks,
Windell

RE: low pass filtering of square wave to get sine wave

Hmm.. New thread - same issue. Almost.

It is a wonderful idea. But, to do this, you need a so-called brick-wall filter. That is a filter with G=1 in the passband and G=0 in the stopband. Such filters do not exist IRL. But approximations exist.

Your original idea (resonant circuit) is better if you want to do this. But bulky and usually somewhat problematic because of component drift - especially the L.  

Gunnar Englund
www.gke.org
--------------------------------------
100 % recycled posting: Electrons, ideas, finger-tips have been used over and over again...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources