Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Look at my thread and see if it is of any help to you. I needed some filtering done aswell. I imported a sound clip and used a butterworth filter to get rid some high freq noise. I had the code right, just used the wrong .wav file https://www.edaboard.com/threads/258701/
Haha! Possibly you are right! I've been torturing myself all weekend trying to get this to work! I'm gonna talk to my professor in about 7hrs when I get to school in the morning, and see whats up because he might have uploaded the wrong file on there! I'll keep you updated! Thanks for all your...
Thanks enjunear,
I do see it clearly now, the first code I posted was when I first dabbled in it and It wasn't too clear to me then. Even with the 3 lines of code that actually do do the filtering I don't get what I'm looking for. The static still seems to be there and that's the main problem...
So, I did this after taking your advice:
sound (data,fs)
f=fs/2*linspace(0,1,1024/2+1);
[B,A]=butter(2,(5000/11025));
filtdata=filtfilt(B,A,data);
sound(filtdata,fs)
I didn't do the fft for anything since I already know what frequencies I need to remove.
But even after using...
I will try that and let you know how it goes! Thanks a lot.
Sorry about the upload, but I managed to upload the file again - this time so you'd be able to download it if you'd like.
This is the unfiltered signal
**broken link removed**
Once I apply the first filter and remove that peak, I am...
Hi thylacine! Thanks for the response, been waiting a long time for someone to respond haha!
Attached the wav file here:
**broken link removed**
when I do the fft:
f=fs/2*linspace(0,1,1024/2+1);
y=fft(data,1024);
plot(f,2*abs(y(1:1024/2+1)))
I get this:
I'm trying to get rid of that peak...
Re: 2nd Order RC Circuit
Would this work?
Also, does it affect my calculations on matlab I posted above? That is to find the transfer function and the bode plot?
Re: 2nd Order RC Circuit
Thanks a lot guys!
I think I kinda got it:
Here is my code: (I went with the 1st choice).
clc;
clear;
R1=330;
R2=3300;
C1=0.1*10^-6;
C2=0.01*10^-6;
fc=1/(2*pi*sqrt(R1*C1*R2*C2))
num= 1/(R1*R2*C1*C2);
den= [1 ((1/(R1*C1))+(1/(R2*C1))+(1/(R2*C2))) (1/(R1*R2*C1*C2))]...
Hi,
I have a sound file, with noise, and I'm trying to remove the noise.
The way I've been trying to do this, is to do an FFT, and plot to find frequency, and do a low pass filter to remove the higher frequency. Here are the steps I've been using:
%Frequency f
f=fs/2*linspace(0,1,1024/2+1)...
Re: 2nd Order RC Circuit
Thanks but not quite :(
I can't randomly pick the RC values I have a set cutoff frequency and roll-off rate that I need to get out of my circuit :(
Hi guys,
I need to design a low pass filter with a cuttoff frequency of approx 5kHz. Problem is that it must have a -40dB/decade roll-off rate. So it has to be second order.
I can do f_c= 1/2*pi*RC
R=330 Ohms
C=0.1 uF
to get the first order filter with approximately 4800Hz cuttoff freq.
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.