SlideShare a Scribd company logo
1 of 27
Real Time
Implementation of
Active Noise Control
6th May 2016
Noise
Anti-noise
Resulting Noise
Presented by
Chittaranjan
Baliarsingh
112EI0104
Guided by
Prof. U. K. Sahoo
1ECE, NIT Rourkela
2ECE, NIT Rourkela
Introduction
What is Noise ???
• Unwanted or random disturbance present in a signal
• In the audio sense, “noise” refers to any other signals besides those we want to listen to.
• Affects Performance, Overall Efficiency, Failure
Noise Reduction
Passive Noise
Reduction
Active Noise
Reduction
Blocking the path of the noise
using absorbing materials e.g.
Motorcycle Silencer.
Destructive interference with
anti-noise.
Click on the icon
to hear noise
3ECE, NIT Rourkela
Active Noise Reduction
Noise Source
Anti Noise
Destructive
Interference
Resulting Noise
4ECE, NIT Rourkela
Noise Cancellation in Headphones
(1) Incoming Ambient Sound
e.g. Train, Bus Engine
(2) Sound is picked up by microphone
and sent to noise cancellation circuitry
(4) Original Ambient Sound and newly
added waveform cancel each other out
(3) Noise cancellation circuitry inverts
wave and sends it back to headphone
speaker
5ECE, NIT Rourkela
Structure of Active Noise Control System
An Active Noise Control system basically consists of four components.
(1) Reference microphone. It converts an acoustic signal to its equivalent
electronic form and forwards the sampled signal to the controller.
(2) Controller. This is heart of the ANC system that actually synthesizes the
anti-noise.
(3) Loudspeaker. Electronically generated anti-noise must be converted to its
equivalent acoustic form for noise cancellation.
(4) Error microphone. The residual noise field is sensed by this and feedback
to the controller for its improved performance.
6ECE, NIT Rourkela
Block Diagram of Active Noise Control
+ =
d(n)
Audio Signal
corrupted with noise
Reference Mic
(converts acoustic
to electrical form)
FIR Filter
Adaptive Algorithm
Signal Inverter
Noise Cancelling
Speaker generating
Anti-noise
Adaptive Output
Error Mic
Noise
Anti-Noise
Residual Noise
-y(n)
e(n)
y(n)
-y(n)
x(n)
7ECE, NIT Rourkela
Adaptive Algorithm Techniques in Active Noise Control
Steepest Descent Algorithm
For all algorithms to work there is a cost function which is to be optimized.
In this case, cost function (J) is the mean of the square of the error (e(n)).
J = E [ e2(n) ]
e(n) = d(n) – y(n) = d(n) – xT(n)*w(n)
This algorithm suggests that if a filter coefficient is adjusted by a small amount which is
proportional to the negative of the gradient of the cost function with respect to the filter
coefficient, then it approaches towards its global solution.
w(n+1) = w(n) - µ(n)
= - 2E[x(n)e(n)]
Computational complexity
increases so expectation
value is approximated as
instantaneous value.
𝛿𝐽
𝛿𝑤
𝛿𝐽
𝛿𝑤
8ECE, NIT Rourkela
Adaptive Filter Block Diagram
x(n) y(n)
d(n)
FIR Filter
Adaptive Algorithm
+
-
y(n)
Approximation of Steepest Descent Algorithm
Filter output: y(n) = wT(n)x(n)
Estimation error: e(n) = d(n) – y(n)
Weight adaptation: w(n + 1) = w(n) + 2µx(n)e(n)
µ: convergence factor
The Adaptive Filter is a Finite
Impulse Response Filter (FIR),
with N variable coefficients w.
0
e(n)
9ECE, NIT Rourkela
Least Mean Square (LMS) Algorithm
The Least Mean Squares Algorithm (LMS) updates each coefficient on a sample-
by-sample basis based on the error e(n).
This equation minimises the power in the error e(n).
• The value of µ (mu) is critical.
• If µ is too small, the filter reacts slowly.
• If µ is too large, the filter resolution is poor.
• The selected value of µ is a compromise.
10ECE, NIT Rourkela
Simulation Result
Simulation for ANC is done in MATLAB using LMS Algorithm
Cosine
function as
signal
Noise created
using Random
Function
Anti-noise
Output
11ECE, NIT Rourkela
Simulink Model
12ECE, NIT Rourkela
Setting the parameters of LMS Filter
• The rate of convergence of
the LMS Algorithm is
controlled by the “Step size
(mu)”.
• Changing the number of
weights (filter length).
• If the no. of weights is more,
algorithm will be slow to run.
• If the no. of weights is too
small, then the filter will not
remove the noise properly.
13ECE, NIT Rourkela
Trace of Input, LMS Filter Output and Error
Input = Signal + Noise
Error contains Noise
Step size µ=0.005
14ECE, NIT Rourkela
Filter Outputs for Step size µ=0.1
When the step size is increased, LMS algorithm converges more quickly but at the
expense of granularity, the LMS filter output is not as smooth as for lower step size.
15ECE, NIT Rourkela
Objective
• Hardware Implementation of Active Noise Cancellation on Texas
Instruments C6713 DSK using Code Composer Studio and
MATLAB Simulink environment.
16ECE, NIT Rourkela
DSK C6713 K Development Board From TI
Micin
Linein
Lineout
Headphone
Power
Jack
USBport
The DSK C6713 is a
development platform
designed to speed up
to low-cost
development and high-
performance
applications based in
TMS320C6000 DSP
family.
17ECE, NIT Rourkela
Code Composer Studio
Code Composer Studio™ (CCS) provides an integrated platform for implementation,
and verification of standard embedded systems and custom for C6000 DSP targets.
18ECE, NIT Rourkela
Real Time DSP Hardware Implementation
To implement Adaptive filter on DSP Starter Kit (DSK), two methods
can be adopted.
• The first method, is quite easy in which one needs to design a
Simulink model and it can be converted into a code composer
studio project with the help of Real Time Workshop (RTW)
facility available in the MATLAB.
• In second method, a C program can be written in code composer
studio to perform the desired task, but writing C code for DSK
environment is somewhat difficult.
19ECE, NIT Rourkela
Building the Simulink Model and further steps
• LMS Filter block and a predefined library package c6000lib for
DSK6713 are needed for building the Simulink Model.
• After joining the appropriate blocks, the model can be built from
Tools -> Real Time Workshop -> Build Model.
• This would build the necessary files to be later used by CCS to
program the DSK.
• Matlab generates the necessary C codes from the Simulink
model and then creates a project for CCS. Once Matlab created
the project, CCS compiles the project and downloads the
program onto the DSK board.
20ECE, NIT Rourkela
Flow Diagram connecting Simulink Real Time
Workshop with DSK C6713
Simulink and Real Time Workshop
Embedded Target for TI C6713 DSK
Link for Code Composer Studio
Code Composer Studio
TI C6713 DSK
Model/Code based
Algorithm Design
Debugging/
Verification
Embedded Target
21ECE, NIT Rourkela
Problems faced while building the Simulink Model
• Library package c6000lib is not available for recent versions of
Matlab.
• In DSP lab, the computers are installed with Matlab R2010a
which does not support package installer so the library package
can’t be downloaded.
• So, Simulink Model for Noise reduction system to run on TI
DSK6713 was not possible.
• Hence, manually the C code is written in Code Composer Studio
to run the program on DSP Processor.
22ECE, NIT Rourkela
Interfacing PC and DSK C6713
PC
Signal
Generator
generating
Noise
NI ELVIS
for Input
Signal
Oscilloscope for
desired output
DSK
C6713
USB to PC
O/PNoise
I/P
Power Supply
5V DC
23ECE, NIT Rourkela
Demonstration of Noise Cancellation
24ECE, NIT Rourkela
Output on Oscilloscope
• Input signal is given from Function generator using NI ELVIS
• Noise is given using Signal Generator.
• Error and desired output is obtained on the oscilloscope.
• Error is initially high and then it converges to zero giving the sinusoidal input
as the desired output.
25ECE, NIT Rourkela
Conclusion
• Simulation of ANC using LMS Algorithm is done using MATLAB and the
same is modelled in Simulink.
• Hardware implementation of the Active Noise Reduction Set up using
TI C6713 DSK processor is done and the noise is reduced to a great
extent.
26ECE, NIT Rourkela
References
[1] Sen M. Kuo, “Senior Member, IEEE, and Ajay B. Puvvala,” Effects of Frequency
Separation in Periodic Active Noise Control Systems”, IEEE transactions on
audio, speech, and language processing, vol. 14, no. 5, pp. 203-217,
September 2006.
[2] Cristina Gabriela Saracin, Marin Saracin, Mihai Dascalu, AnaMaria Lepar, “Echo
Cancellation Using The LMS Algorithm”, in U.P.B. Sci. Bull., Series C, vol. 71,
pp. 167-174, August 2009.
[3] Z. Ramadan and A. Poularikas, “An adaptive noise canceller using error non-
linearity in the LMS adaptation,” in Proc. IEEE Southeast Con 2004, vol. 1,
pp. 359–364, March 2004.
[4] Bambang Riyanto, “Real-time DSP Implementation of Active Noise Control for
Broadband Noise Using Adaptive LMS Filter Algorithm”, in Proceedings of the
International Conference on Electrical Engineering and Informatics Institute
Teknologi Bandung, Indonesia, vol.1, pp. 718-722, June 2007.
27ECE, NIT Rourkela
Thank You

More Related Content

What's hot

Active noise control
Active noise controlActive noise control
Active noise controlRishikesh .
 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersAmr E. Mohamed
 
DIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABDIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABPrashant Srivastav
 
Adaptive Noise Cancellation
Adaptive Noise CancellationAdaptive Noise Cancellation
Adaptive Noise Cancellationtazim68
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfVishalPusadkar1
 
Application of adaptive linear equalizer
Application of adaptive linear equalizerApplication of adaptive linear equalizer
Application of adaptive linear equalizerSayahnarahul
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter designSushant Shankar
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignAmr E. Mohamed
 
Removal of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesRemoval of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesMurali Siva
 
Adaptive equalization
Adaptive equalizationAdaptive equalization
Adaptive equalizationKamal Bhatt
 
Koyama ASA ASJ joint meeting 2016
Koyama ASA ASJ joint meeting 2016Koyama ASA ASJ joint meeting 2016
Koyama ASA ASJ joint meeting 2016SaruwatariLabUTokyo
 
Fir filter design using windows
Fir filter design using windowsFir filter design using windows
Fir filter design using windowsSarang Joshi
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformAmr E. Mohamed
 
NOISE CANCELATION USING MATLAB
NOISE CANCELATION USING MATLABNOISE CANCELATION USING MATLAB
NOISE CANCELATION USING MATLABAniruddha Paul
 

What's hot (20)

Active noise control
Active noise controlActive noise control
Active noise control
 
DSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital FiltersDSP_2018_FOEHU - Lec 05 - Digital Filters
DSP_2018_FOEHU - Lec 05 - Digital Filters
 
DIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABDIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLAB
 
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
Discrete Fourier Series | Discrete Fourier Transform | Discrete Time Fourier ...
 
Adaptive Noise Cancellation
Adaptive Noise CancellationAdaptive Noise Cancellation
Adaptive Noise Cancellation
 
Lecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdfLecture Notes on Adaptive Signal Processing-1.pdf
Lecture Notes on Adaptive Signal Processing-1.pdf
 
Application of adaptive linear equalizer
Application of adaptive linear equalizerApplication of adaptive linear equalizer
Application of adaptive linear equalizer
 
Butterworth filter design
Butterworth filter designButterworth filter design
Butterworth filter design
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
 
Removal of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in imagesRemoval of Salt and Pepper Noise in images
Removal of Salt and Pepper Noise in images
 
Adaptive equalization
Adaptive equalizationAdaptive equalization
Adaptive equalization
 
Koyama ASA ASJ joint meeting 2016
Koyama ASA ASJ joint meeting 2016Koyama ASA ASJ joint meeting 2016
Koyama ASA ASJ joint meeting 2016
 
Antinoise system & Noise Cancellation
Antinoise system & Noise CancellationAntinoise system & Noise Cancellation
Antinoise system & Noise Cancellation
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
digital filters
digital filtersdigital filters
digital filters
 
Fir filter design using windows
Fir filter design using windowsFir filter design using windows
Fir filter design using windows
 
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier TransformDSP_FOEHU - Lec 08 - The Discrete Fourier Transform
DSP_FOEHU - Lec 08 - The Discrete Fourier Transform
 
NOISE CANCELATION USING MATLAB
NOISE CANCELATION USING MATLABNOISE CANCELATION USING MATLAB
NOISE CANCELATION USING MATLAB
 
Image denoising
Image denoising Image denoising
Image denoising
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 

Similar to Real Time Implementation of Active Noise Control

Real-Time Active Noise Cancellation with Simulink and Data Acquisition Toolbox
Real-Time Active Noise Cancellation with Simulink and Data Acquisition ToolboxReal-Time Active Noise Cancellation with Simulink and Data Acquisition Toolbox
Real-Time Active Noise Cancellation with Simulink and Data Acquisition ToolboxIDES Editor
 
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLA
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLAIMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLA
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLAeeiej_journal
 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Raj Kumar Thenua
 
Active Noise Cancellation
Active Noise CancellationActive Noise Cancellation
Active Noise CancellationIJERA Editor
 
Lab view Based Harmonic Analyser
Lab view Based Harmonic AnalyserLab view Based Harmonic Analyser
Lab view Based Harmonic Analysertheijes
 
Tutorial-on-DNN-09A-Co-design-Sparsity.pdf
Tutorial-on-DNN-09A-Co-design-Sparsity.pdfTutorial-on-DNN-09A-Co-design-Sparsity.pdf
Tutorial-on-DNN-09A-Co-design-Sparsity.pdfDuy-Hieu Bui
 
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...IJERA Editor
 
Resume analog
Resume analogResume analog
Resume analogtarora1
 
Resume analog
Resume analogResume analog
Resume analogtarora1
 
B Eng Final Year Project Presentation
B Eng Final Year Project PresentationB Eng Final Year Project Presentation
B Eng Final Year Project Presentationjesujoseph
 
IRJET- Direct Digital Synthesizer
IRJET- Direct Digital SynthesizerIRJET- Direct Digital Synthesizer
IRJET- Direct Digital SynthesizerIRJET Journal
 
Identifying Noise in DAQ
Identifying Noise in DAQIdentifying Noise in DAQ
Identifying Noise in DAQYokogawa1
 
Identifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data AcquisitionIdentifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data AcquisitionYokogawa1
 
iaetsd Software defined am transmitter using vhdl
iaetsd Software defined am transmitter using vhdliaetsd Software defined am transmitter using vhdl
iaetsd Software defined am transmitter using vhdlIaetsd Iaetsd
 
We were pioneers: early applications of dwn simulations_2
We were pioneers: early applications of dwn simulations_2We were pioneers: early applications of dwn simulations_2
We were pioneers: early applications of dwn simulations_2Piero Belforte
 
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...IRJET Journal
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...eSAT Journals
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...eSAT Journals
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...eSAT Publishing House
 

Similar to Real Time Implementation of Active Noise Control (20)

Real-Time Active Noise Cancellation with Simulink and Data Acquisition Toolbox
Real-Time Active Noise Cancellation with Simulink and Data Acquisition ToolboxReal-Time Active Noise Cancellation with Simulink and Data Acquisition Toolbox
Real-Time Active Noise Cancellation with Simulink and Data Acquisition Toolbox
 
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLA
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLAIMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLA
IMPLEMENTATION OF UNSIGNED MULTIPLIER USING MODIFIED CSLA
 
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
Simulation and hardware implementation of Adaptive algorithms on tms320 c6713...
 
Active Noise Cancellation
Active Noise CancellationActive Noise Cancellation
Active Noise Cancellation
 
Lab view Based Harmonic Analyser
Lab view Based Harmonic AnalyserLab view Based Harmonic Analyser
Lab view Based Harmonic Analyser
 
final report
final reportfinal report
final report
 
Tutorial-on-DNN-09A-Co-design-Sparsity.pdf
Tutorial-on-DNN-09A-Co-design-Sparsity.pdfTutorial-on-DNN-09A-Co-design-Sparsity.pdf
Tutorial-on-DNN-09A-Co-design-Sparsity.pdf
 
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...
Design and Implementation of Area Optimized, Low Complexity CMOS 32nm Technol...
 
Resume analog
Resume analogResume analog
Resume analog
 
Resume analog
Resume analogResume analog
Resume analog
 
B Eng Final Year Project Presentation
B Eng Final Year Project PresentationB Eng Final Year Project Presentation
B Eng Final Year Project Presentation
 
IRJET- Direct Digital Synthesizer
IRJET- Direct Digital SynthesizerIRJET- Direct Digital Synthesizer
IRJET- Direct Digital Synthesizer
 
Identifying Noise in DAQ
Identifying Noise in DAQIdentifying Noise in DAQ
Identifying Noise in DAQ
 
Identifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data AcquisitionIdentifying and Overcoming Noise in Data Acquisition
Identifying and Overcoming Noise in Data Acquisition
 
iaetsd Software defined am transmitter using vhdl
iaetsd Software defined am transmitter using vhdliaetsd Software defined am transmitter using vhdl
iaetsd Software defined am transmitter using vhdl
 
We were pioneers: early applications of dwn simulations_2
We were pioneers: early applications of dwn simulations_2We were pioneers: early applications of dwn simulations_2
We were pioneers: early applications of dwn simulations_2
 
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...
IRJET- Artificial Neural Network Algorithm for Acoustic Echo Cancellation App...
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...
 
A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...A continuous time adc and digital signal processing system for smart dust and...
A continuous time adc and digital signal processing system for smart dust and...
 

Recently uploaded

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 

Recently uploaded (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 

Real Time Implementation of Active Noise Control

  • 1. Real Time Implementation of Active Noise Control 6th May 2016 Noise Anti-noise Resulting Noise Presented by Chittaranjan Baliarsingh 112EI0104 Guided by Prof. U. K. Sahoo 1ECE, NIT Rourkela
  • 2. 2ECE, NIT Rourkela Introduction What is Noise ??? • Unwanted or random disturbance present in a signal • In the audio sense, “noise” refers to any other signals besides those we want to listen to. • Affects Performance, Overall Efficiency, Failure Noise Reduction Passive Noise Reduction Active Noise Reduction Blocking the path of the noise using absorbing materials e.g. Motorcycle Silencer. Destructive interference with anti-noise. Click on the icon to hear noise
  • 3. 3ECE, NIT Rourkela Active Noise Reduction Noise Source Anti Noise Destructive Interference Resulting Noise
  • 4. 4ECE, NIT Rourkela Noise Cancellation in Headphones (1) Incoming Ambient Sound e.g. Train, Bus Engine (2) Sound is picked up by microphone and sent to noise cancellation circuitry (4) Original Ambient Sound and newly added waveform cancel each other out (3) Noise cancellation circuitry inverts wave and sends it back to headphone speaker
  • 5. 5ECE, NIT Rourkela Structure of Active Noise Control System An Active Noise Control system basically consists of four components. (1) Reference microphone. It converts an acoustic signal to its equivalent electronic form and forwards the sampled signal to the controller. (2) Controller. This is heart of the ANC system that actually synthesizes the anti-noise. (3) Loudspeaker. Electronically generated anti-noise must be converted to its equivalent acoustic form for noise cancellation. (4) Error microphone. The residual noise field is sensed by this and feedback to the controller for its improved performance.
  • 6. 6ECE, NIT Rourkela Block Diagram of Active Noise Control + = d(n) Audio Signal corrupted with noise Reference Mic (converts acoustic to electrical form) FIR Filter Adaptive Algorithm Signal Inverter Noise Cancelling Speaker generating Anti-noise Adaptive Output Error Mic Noise Anti-Noise Residual Noise -y(n) e(n) y(n) -y(n) x(n)
  • 7. 7ECE, NIT Rourkela Adaptive Algorithm Techniques in Active Noise Control Steepest Descent Algorithm For all algorithms to work there is a cost function which is to be optimized. In this case, cost function (J) is the mean of the square of the error (e(n)). J = E [ e2(n) ] e(n) = d(n) – y(n) = d(n) – xT(n)*w(n) This algorithm suggests that if a filter coefficient is adjusted by a small amount which is proportional to the negative of the gradient of the cost function with respect to the filter coefficient, then it approaches towards its global solution. w(n+1) = w(n) - µ(n) = - 2E[x(n)e(n)] Computational complexity increases so expectation value is approximated as instantaneous value. 𝛿𝐽 𝛿𝑤 𝛿𝐽 𝛿𝑤
  • 8. 8ECE, NIT Rourkela Adaptive Filter Block Diagram x(n) y(n) d(n) FIR Filter Adaptive Algorithm + - y(n) Approximation of Steepest Descent Algorithm Filter output: y(n) = wT(n)x(n) Estimation error: e(n) = d(n) – y(n) Weight adaptation: w(n + 1) = w(n) + 2µx(n)e(n) µ: convergence factor The Adaptive Filter is a Finite Impulse Response Filter (FIR), with N variable coefficients w. 0 e(n)
  • 9. 9ECE, NIT Rourkela Least Mean Square (LMS) Algorithm The Least Mean Squares Algorithm (LMS) updates each coefficient on a sample- by-sample basis based on the error e(n). This equation minimises the power in the error e(n). • The value of µ (mu) is critical. • If µ is too small, the filter reacts slowly. • If µ is too large, the filter resolution is poor. • The selected value of µ is a compromise.
  • 10. 10ECE, NIT Rourkela Simulation Result Simulation for ANC is done in MATLAB using LMS Algorithm Cosine function as signal Noise created using Random Function Anti-noise Output
  • 12. 12ECE, NIT Rourkela Setting the parameters of LMS Filter • The rate of convergence of the LMS Algorithm is controlled by the “Step size (mu)”. • Changing the number of weights (filter length). • If the no. of weights is more, algorithm will be slow to run. • If the no. of weights is too small, then the filter will not remove the noise properly.
  • 13. 13ECE, NIT Rourkela Trace of Input, LMS Filter Output and Error Input = Signal + Noise Error contains Noise Step size µ=0.005
  • 14. 14ECE, NIT Rourkela Filter Outputs for Step size µ=0.1 When the step size is increased, LMS algorithm converges more quickly but at the expense of granularity, the LMS filter output is not as smooth as for lower step size.
  • 15. 15ECE, NIT Rourkela Objective • Hardware Implementation of Active Noise Cancellation on Texas Instruments C6713 DSK using Code Composer Studio and MATLAB Simulink environment.
  • 16. 16ECE, NIT Rourkela DSK C6713 K Development Board From TI Micin Linein Lineout Headphone Power Jack USBport The DSK C6713 is a development platform designed to speed up to low-cost development and high- performance applications based in TMS320C6000 DSP family.
  • 17. 17ECE, NIT Rourkela Code Composer Studio Code Composer Studio™ (CCS) provides an integrated platform for implementation, and verification of standard embedded systems and custom for C6000 DSP targets.
  • 18. 18ECE, NIT Rourkela Real Time DSP Hardware Implementation To implement Adaptive filter on DSP Starter Kit (DSK), two methods can be adopted. • The first method, is quite easy in which one needs to design a Simulink model and it can be converted into a code composer studio project with the help of Real Time Workshop (RTW) facility available in the MATLAB. • In second method, a C program can be written in code composer studio to perform the desired task, but writing C code for DSK environment is somewhat difficult.
  • 19. 19ECE, NIT Rourkela Building the Simulink Model and further steps • LMS Filter block and a predefined library package c6000lib for DSK6713 are needed for building the Simulink Model. • After joining the appropriate blocks, the model can be built from Tools -> Real Time Workshop -> Build Model. • This would build the necessary files to be later used by CCS to program the DSK. • Matlab generates the necessary C codes from the Simulink model and then creates a project for CCS. Once Matlab created the project, CCS compiles the project and downloads the program onto the DSK board.
  • 20. 20ECE, NIT Rourkela Flow Diagram connecting Simulink Real Time Workshop with DSK C6713 Simulink and Real Time Workshop Embedded Target for TI C6713 DSK Link for Code Composer Studio Code Composer Studio TI C6713 DSK Model/Code based Algorithm Design Debugging/ Verification Embedded Target
  • 21. 21ECE, NIT Rourkela Problems faced while building the Simulink Model • Library package c6000lib is not available for recent versions of Matlab. • In DSP lab, the computers are installed with Matlab R2010a which does not support package installer so the library package can’t be downloaded. • So, Simulink Model for Noise reduction system to run on TI DSK6713 was not possible. • Hence, manually the C code is written in Code Composer Studio to run the program on DSP Processor.
  • 22. 22ECE, NIT Rourkela Interfacing PC and DSK C6713 PC Signal Generator generating Noise NI ELVIS for Input Signal Oscilloscope for desired output DSK C6713 USB to PC O/PNoise I/P Power Supply 5V DC
  • 23. 23ECE, NIT Rourkela Demonstration of Noise Cancellation
  • 24. 24ECE, NIT Rourkela Output on Oscilloscope • Input signal is given from Function generator using NI ELVIS • Noise is given using Signal Generator. • Error and desired output is obtained on the oscilloscope. • Error is initially high and then it converges to zero giving the sinusoidal input as the desired output.
  • 25. 25ECE, NIT Rourkela Conclusion • Simulation of ANC using LMS Algorithm is done using MATLAB and the same is modelled in Simulink. • Hardware implementation of the Active Noise Reduction Set up using TI C6713 DSK processor is done and the noise is reduced to a great extent.
  • 26. 26ECE, NIT Rourkela References [1] Sen M. Kuo, “Senior Member, IEEE, and Ajay B. Puvvala,” Effects of Frequency Separation in Periodic Active Noise Control Systems”, IEEE transactions on audio, speech, and language processing, vol. 14, no. 5, pp. 203-217, September 2006. [2] Cristina Gabriela Saracin, Marin Saracin, Mihai Dascalu, AnaMaria Lepar, “Echo Cancellation Using The LMS Algorithm”, in U.P.B. Sci. Bull., Series C, vol. 71, pp. 167-174, August 2009. [3] Z. Ramadan and A. Poularikas, “An adaptive noise canceller using error non- linearity in the LMS adaptation,” in Proc. IEEE Southeast Con 2004, vol. 1, pp. 359–364, March 2004. [4] Bambang Riyanto, “Real-time DSP Implementation of Active Noise Control for Broadband Noise Using Adaptive LMS Filter Algorithm”, in Proceedings of the International Conference on Electrical Engineering and Informatics Institute Teknologi Bandung, Indonesia, vol.1, pp. 718-722, June 2007.