India's Largest Online Store. Best Prices . Discount Free Shipping · Easy Returns · Cash On Delivery

Thursday 22 January 2015

Digital Signal Processing (DSP) Butterworth HighPass Filter Using MATLAB



This mini project introduces a new class of IIR digital filters.That unifies the classical digital Butterworth High Pass filter. New closed form expressions are provided, and a straight forward design technique is described. The new IIR digital filters have non linear phase & more zeros than poles (away from the origin) and their (monotonic) square magnitude frequency responses are maximally flat w= 0 and at w =pi. This technique also permits continuous variation of the cut-off frequency. 
We can also use Digital signal processor DSP Microcontroller like DSPPic from Microchip technology,TMS320C5000 series DSP controller from TI Texas Instruments etc.
The Butterworth High Pass Filter attenuates all frequencies below cut-off frequency and passes all frequencies above cut-off frequency.


Butterworth_High_Pass_Filter_DSP_MATLAB www.beprojectidea.blogspot.com
Butterworth_High_Pass_Filter_DSP_MATLAB www.beprojectidea.blogspot.com

Aim: 

Design Butterworth Highpass filter using MATLAB.

Theory: 

This introduction makes the link with analog filters and associated frequency transformation. The digital filters are simply computed from the analog transfer functions using the bi linear transform.

A key element in processing digital signals is the filter. Filters perform direct Manipulations on the spectra of signals. To completely describe digital filters, three basic elements (or building blocks) are needed: an adder, a multiplier, and a delay element. The adder has two inputs and one output, and it simply adds the two inputs together. The multiplier is a gain element, and it multiplies the input signal by a constant. The delay element delays the incoming signal by one sample. Digital filters can be implemented using either a block diagram or a signal flow graph. Figure 1 shows the three basic elements in block diagram form, and Figure 2 shows them in signal flow graph form.
 
 
Block Diagram of Filter Element(Digital Signal Processing (DSP) Butterworth HighPass Filter ) www.beprojectidea.blogspot.com
Block Diagram of Butterworth High pass filter using MATLAB Element 
Signal Flow Graph of Filter Elements (Digital Signal Processing (DSP) Butterworth HighPass Filter ) www.beprojectidea.blogspot.com
Signal Flow Graph of Filter Elements (Digital Signal Processing (DSP) Butterworth HighPass Filter )

With the basic building blocks at hand, the two different filter structures can easily be implemented. These two structures are Infinite Impulse Response (IIR) and Finite Impulse Response (FIR), depending on the form of the system’s response to a unit pulse input. IIR filters are commonly implemented using a feedback (recursive) structure; while FIR filters usually require no feedback (non-recursive).




In the design of IIR filters, a commonly used approach is called the bilinear transformation. This design begins with the transfer function of an analog filter, and then performs a mapping from the s-domain to the z-domain. Using differential equations, it can be shown (Proakis 677) that the mapping from the s-plane to the z-plane is

mapping from the s-plane to the z-plane  (Digital Signal Processing (DSP) Butterworth HighPass Filter ) www.beprojectidea.blogspot.com
mapping from the s-plane to the z-plane

This mapping results in a general form for an IIR filter with an arbitrary number of poles and zeros. The system response and the difference equation for this filter are as follows:

system response and the difference equation for an IIR filter (Digital Signal Processing (DSP) Butterworth HighPass Filter ) www.beprojectidea.blogspot.com
system response and the difference equation
for an IIR filter

This system response can be easily realized using a signal flow graph.


Signal Flow Graph of IIR Filter  (Digital Signal Processing (DSP) Butterworth HighPass Filter ) www.beprojectidea.blogspot.com
Signal Flow Graph of IIR Filter


The choices for the digital filter follow the two main categories of digital linear time-invariant systems.  The first category is called Finite Impulse Response (FIR) and the output of this system only depends on current and past input samples.
The z variable representation of this system is
However, FIR filters require an order N of the system that is often very high.
The second category of digital LTI systems is called Infinite Impulse Response (IIR).  In this case, the output of the system depends on current and past input samples, but also on past output samples.  This leads to recursive type of algorithms. 
The z variable representation of this system is
The transfer function in the variable z of a digital filter can be computed from the transfer function in the variable s of an analog filter by using what is called the bilinear transform given below.

For instance, consider the first order analog low pass filter H(s).  The equivalent first order digital low pass filter H(z)is given by replacing s in the analog transfer function by the bilinear transform expression.  

 
The transfer function can be implemented in many ways.  For example one can find the recurrence formula describing the system.

And
In the time domain this gives
The recurrence formula of the digital filter is then given by

You could implement this code yourself or use the MATLAB function called filter. 
a0 = 1 + 2/(w0*Ts);
a1 = 1 - 2/(w0*Ts);
b0 = 1;
b1 = 1;
A = [a0 a1];
B = [b0 b1];
yt = filter(B, A, xt);
Where xt has the samples of the input signal using sampling rate Fs used in the bilinear transform and yt will have the samples of the output signal.

MATLAB PROGRAMME CODE: 



clc;
close all;clear all;
format long
rp=input('enter the passband ripple');
rs=input('enter the stopband ripple');
wp=input('enter the passband freq.');
ws=input('enter the stopband freq.');
fs=input('enter the sampling freq.');
w1=2*wp/fs;
w2=2*ws/fs;
[n,wn]=buttord(w1,w2,rp,rs);
[b,a]=butter(n,wn,'high');
w=0:.01:pi;
[h,om]=freqz(b,a,w);
m=20*log10(abs(h));
an=angle(h);
subplot(211);plot(om/pi,m);
ylabel('gain in db');xlabel('freq.');
subplot(212);plot(om/pi,an);
ylabel('phase');xlabel('freq.');

Output:

INPUT  FILTER  PARAMETERS  :


The passband ripple           : 0.5 db
The stopband ripple           : 50 db
The passband frequency   : 1200 Hz
The stopband frequency   : 2400 Hz 
The sampling frequency     : 10000 Hz

CONCLUSION :


                From the Mat Lab simulation program for Butterworth High Pass Filter we conclude that It attenuates all frequencies below specified cut-off frequency and passes all frequencies above specified cut-off frequency.

54 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Interesting ideas ! Coincidentally , if someone needs to fill out a PH RF-1 , my company found a template document here https://goo.gl/xEfvDn.

    ReplyDelete
  3. thanks, can you add some details about the matlab
    Seminar topic

    ReplyDelete
  4. Fine way of telling, and pleasant article to obtain facts about my presentation focus, which i am going to present in institution of higher education.

    Great and affordable Medical website design for all medical students.

    ReplyDelete
  5. we have done this in our college lab .but the processor we used are sc 3400 dsp processor and the results are bit different though.in our IEEE project for presentation we made some changes in the code and we get an approximate result for butterworth filter

    ReplyDelete
  6. This blog explains the details about changing the ways of doing that business. That is understand well and doing some different process. Provides he best output of others.


    Best Informatica Training Institute in Chennai

    ReplyDelete
  7. Hi Great Blog I Have Read Your Post It Is Very Informative And Useful Thanks For Posting And Sharing With Us And Your Writting Style Is Very Nice And Please Give Me More Information For Mca Intership Traning.
    Project Centres In Bangalore

    ReplyDelete
  8. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks a lot.

    Digital Marketing Company in Chennai

    ReplyDelete
  9. Your blog is well and good, i am looking forward more things from your blog, it is really very well good.

    Web Design Company in Chennai

    ReplyDelete
  10. I went through your blog, it is really well done so please update some more latest engineering notes too.

    Digital Marketing Company in Chennai

    ReplyDelete
  11. This was so useful and informative. The article helped me to learn something new. iOS App Development Company in Chennai

    ReplyDelete
  12. Thanks for sharing informative article. Students looking for specific projects pertaining to departments of EEE could also get turnkey solutions at ASK2Projects.com to turn out successful project outcomes and models with low cost. Final Year EEE Projects in Chennai, Final Year Electrical and Electronics Engineering Projects in Chennai, Final Year Engineering Project for EEE in Chennai

    ReplyDelete
  13. Inventions you'll never believe that existed now you can buy them on amazon. One Invention each day like Airbar – Make Computer Touch Screen by your own. ;)

    ReplyDelete
  14. What an excellent academic site! Ii have downloaded the sample project and it has helped me to learn the step procedure of writing a quality research paper. Additionally, I have learned new programming skills from the posted article and I will only look for professional Analyzing Help which will help me complete writing my research paper.

    ReplyDelete
  15. This course of electronics engineering assist students to be an expert in implementing principles, applications as well as algorithms that are developed in other associated fields.

    _________________
    Engineering Institute | MBA Btech Admission 2017

    ReplyDelete
  16. Current Nitro's Projects - If you are looking for work in It and computer sector then contact Nitro. It is a leading IT company for computer course and work provider in the world.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. Hello, Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.

    Disposal of electronic waste in hyderabad, India
    Electronic waste disposal hyderabad, India

    ReplyDelete
  19. Nice post. Thanks for sharing this post and providing relevant information.
    Electronic Products Online

    ReplyDelete
  20. Informative post. Thanks.

    The Value of One Bitcoin is about $4500...! How to Earn more than 3 Bitcoins every 51 days?

    Students and teachers also can earn with few minutes work:

    Earn 3.24 Bitcoins FREE, Surfing Daily for 30 Minutes

    ReplyDelete
  21. Great site for these post and i am seeing the most of contents have useful for students Carrier.
    Thanks for sharing.

    Final Year Project centre in Chennai | IEEE Projects in Chennai

    ReplyDelete
  22. very nice content.heartly thanks .it is very helpful for me .here you can also check HTET Answer Key

    ReplyDelete
  23. Digital signal processing is nice topic which is discussed amazingly here. PCB Prototype Service

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. Coool , Very Interesting Post. Keep Sharing. You can explore the Engineers Garage website where you can find good stuff of electronics and electrical projects. Final year engineering students will get a idea about project.

    ReplyDelete
  26. I must thank you for the efforts you have put in penning this site. I am hoping to check out the same high-grade content by you later on as well. In truth, your creative writing abilities has inspired me to get my own, personal blog now..
    Fleet Management Software
    Human Resources Management Software
    Logistics Software
    Manufacturing ERP

    ReplyDelete
  27. Really your content is so informative. So please share some more content ..
    Microcontroller training in Gurgaon

    ReplyDelete
  28. Nice article, it's very informative and definitely it will be useful for many people.
    Thanks for sharing.

    Vehicle tracking system
    Fleet management software

    ReplyDelete
  29. "I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.
    Read more here:
    kim kardashian sex tape
    porn sex video hd
    mia khalifa sex video
    sunny leone sexy movie"

    ReplyDelete
  30. This comment has been removed by the author.

    ReplyDelete
  31. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    online Python training
    python training in chennai

    ReplyDelete
  32. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    Online DevOps Certification Course - Gangboard
    Best Devops Training institute in Chennai

    ReplyDelete
  33. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Best Devops online Training
    Online DevOps Certification Course - Gangboard
    Best Devops Training institute in Chennai

    ReplyDelete
  34. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    rpa training in bangalore
    best rpa training in bangalore
    rpa training in pune | rpa course in bangalore
    rpa training in chennai

    ReplyDelete
  35. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you.
    Keep update more information..


    Selenium training in bangalore
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training
    Selenium interview questions and answers

    ReplyDelete
  36. Nice Post! Thank you for sharing very good post, it was so Nice to read and useful to improve my knowledge as updated one, keep blogging.
    Angular js Training in Electronic City

    ReplyDelete
  37. I will recommend anyone looking for Business loan to Le_Meridian they helped me with Four Million USD loan to startup my Quilting business and it's was fast When obtaining a loan from them it was surprising at how easy they were to work with. They can finance up to the amount of $500,000,000.000 (Five Hundred Million Dollars) in any region of the world as long as there 1.9% ROI can be guaranteed on the projects.The process was fast and secure. It was definitely a positive experience.Avoid scammers on here and contact Le_Meridian Funding Service On. lfdsloans@lemeridianfds.com / lfdsloans@outlook.com. WhatsApp...+ 19893943740. if you looking for business loan.

    ReplyDelete
  38. Hello everyone, I'm Patricia Sherman in Oklahoma USA right now. I would like to share with you my experience of borrowing USD $185,000.00 to clear my bank draft and start a new business. It all started when I lost my house and I took my stuff because of the bank policy and I met some bills and some personal needs. So I became very desperate and started looking for funds in every way. Fortunately for me, a friend of mine, Linda told me about a credit company firm, I was intrigued by the fraud, but I was intrigued by my situation and had no choice but to get advice from my friend about this company. contacting them really doubted me because of my past experience with online lenders, did you know that little? '' Elegantloanfirm@hotmail.com This company has been very helpful to me and my colleague and today, thanks to this credit company, the proud owner of well-organized work and responsibilities, they smiled back at me. So if you really need to grow or start your own business, or if you really need to borrow money in any financial hardship, we recommend you find a financial development opportunity in your business today. {E-mail:} Elegantloanfirm@hotmail.com ... online for credit not a victim of scam. Thank you.

    ReplyDelete
  39. This comment has been removed by the author.

    ReplyDelete
  40. Hi Great Blog! I Have Read Your Post It Is Very Informative And Useful.
    Thanks For Posting And Sharing With Us. Keep sharing more information further.
    Top Engineering College in Jaipur

    ReplyDelete
  41. A Butterworth High-Pass Filter is a fundamental component in Digital Signal Processing (DSP). It allows high-frequency signals to pass through while attenuating lower frequencies. O Kutxinga Pitha This technique finds applications in fields like audio processing, telecommunications, and image processing.

    ReplyDelete