How do I calculate the values for an LC or PI filter?

I appreciate the help, but I don't understand a thing you just said

I didn't fully explain, however I did post the transfer function, do you know how to derive the transfer function I posted?

You can throw all the deep theory at it if you like, at the end of the day its nothing more than the potential divider equation

I don't know how to deal with imaginary numbers, and until today I'd never even heard of a quartic equation.

Imaginary numbers is just trigonometry and quartic equations are raised to the power of 4

Is a first order filter one with just a capacitor or just an inductor

Yes, one energy storage component, an LC filter is a second order systems as it contains two energy storage devices

Its first order differential equations and second order differential equations, the number of energy storage devices determines what order differential equations you end up with

have no idea what I should set the impedance to,

But you design a filter to pass certain frequencies and block others, you are filtering square waves, square waves contain infinite harmonics so its not just one frequency you have present
Designing resonant filters to filter these waveforms is not trivial, you have to make sure the resonant frequency is not excited which means doing a FFT to see what frequencies are present and designing around that not easy to do

330mH for the inductor, and 153.5nF

a 330mH inductor is a very big inductor, a 153nF cap is very small

I used matlab to do a bode plot of the system you propose, then I changed the components to 3mH and 10uF

I can show you how I worked out the transfer function, how we solve the equations and just how complicated this can be the advice Mike gave was actually really bad advice and the filter would not last very long

I I were you I would use an RC filter, very easy to design, very easy to work with, no resonance but it will still filter good enough for you, we can even do the same thing to get the equations for that and its a nice learning curve

eeee.jpg