Wasn't sure where to put this - Lowpass Filter in Excel

  • Thread starter Thread starter BiGyElLoWhAt
  • Start date Start date
  • Tags Tags
    Excel Filter
Click For Summary
To implement a lowpass filter for a sawtooth wave in Excel, start by creating a column for "n" values ranging from 1 to 100. Use a formula like =sin(2*$A1*pi()*A$1)/(2*$A1*pi()) to calculate the wave, ensuring proper references for "n" and "x". For the lowpass filter, a first-order transfer function can be applied, such as 1/(Ts+1), where T is the corner frequency. A finite-difference equation will help process the triangular wave through the filter, allowing for output visualization. Properly specifying T and the frequency of the input wave is crucial for accurate results.
BiGyElLoWhAt
Gold Member
Messages
1,637
Reaction score
138
Wasn't sure where to put this -- Lowpass Filter in Excel

Ok I need some excel help, I need to model a sawtooth wave mathematically (done) and then I need to put it through a lowpass filter, but I need to do it in excel. My prof expects an excel spreadsheet, and I have no clue how to put it in there. On wolfram I use plot Ʃ[sin(2*n*pi)/(n*pi)] and that works when I take it out 100 or so terms, but excel doesn't like those kinds of functions.

How can I put it in there?
 
Physics news on Phys.org
You are summing over n right? In excel I would just make one column "n" and number it from 1 to 100 or so. Then the column next too it would be sin(2*n*pi)/(n*p)+"previous cell". Here "n" would be a reference to the cell in the adjacent column and "previous cell" would be the cell above which has the rest of the terms of the sum. Does that seem right?
 
That seems somewhat right, but I need an x in there. It's actually sum sin(2npix)/npi
 
When I was learning Fourier Series, what I would occasionally do to verify my answers was to plot the first N series and see if it looked like what I started with.

To accomplish this what I did is along the first Collum I had 1->N
Then along the first row I put -k->k (the period of the function)
Then just filled in the function information

for you it'd look something like =sin(2*$A1*pi()*A$1)/(2*$A1*pi()))

The $A1 being your N term and the A$1 being your x term, set so as you pull the formula they stay in the right column/row.

Then in row N+1 you sum the collum and plot that

Hope that makes sense :D
 
You haven't specified your lowpass transfer function.

So let's assume it's a 1st order lowpass: 1/(Ts+1) where 1/T = corner radian frequency.

I would write an equivalent finite-difference equation for this function, then pass your triangular wave thru it and get the output. The output can then be plotted by excel's plotting facility.

You need to specify T and you also need to specify the frequency of your triangular input.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
12K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K