Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

Arpan G Srikanta Bhatta B S Guided By Prof.

P Meena

ACTIVE NOISE CANCELLATION


It uses the phenomenon of wave interference. Two waves with same amplitude and frequency but phase-reversed travelling in the same direction will neutralize each other. The resulting sound is ideally null, as sound energy is transformed into heat.

Basic ANC System


The components of ANC system are
Noise source Reference MIC Control speaker Error MIC ANC controller which is an adaptive LMS

filter.

Noise Cancellation Using LMS algorithm


Lms adaptive filter

y(n)= xT(n)w(n)
Update weights: w(n+1)= w(n) + me(n)x(n) m: step size e(n)= d(n)-y(n) x(n) : refrence signal y(n): filter output d(n): desired output e(n):error signal Convergence depends on step size

SIMULATION

COMPOMENTS
NOISE SOURCE
DESIRED RESPONSE LMS FILTER

ERROR SIGNAL
SUBTRACT DELAY

FIRLMS
Arguments h[nh] Coefficient Array x[nh] Input Array b Error from previous FIR nh Number of coefficients return long return value

ALGORITHM
long firlms2(short h[ ],short x[ ], short b, int nh) { int i; long r = 0; for (i = 0; i < nh; i++) { h[i] += (x[i] * b) >> 16; r += x[i + 1] * h[i]; } return r; }

SUBTRACT
The Subtract block performs the function of destructive
interference that happens in the real world.

DELAY
The Unit Delay block delays its input by the specified

sample period. This block is equivalent to the z-1 discretetime operator. The block accepts one input and generates one output, which can be either both scalar or both vector. If the input is a vector, all elements of the vector are delayed by the same sample period.

Spectrum analysis of noise

Spectrum analysis of the output

Hardware implementation
Hardware used: Texas Instruments TMS320C6713

DSK and AD6M daughter card. Daughter card needed due to the drawbacks of DSK DSK kit has only 1 ADC. Features of TMS320C6713
225 MHz CPU 16 MB sync RAM and 512 Kb Flash Standard expansion for Daughter Cards JTAG emulation Single +5v supply

C6713 DSK board

AD6M Daughter Card

TESTING & WORKING


Initially Model implemented in SIMULINK
The model is automatically downloaded onto the DSK CCS generates C code, emulates onto the Hardware.

Many disadvantages with this method. Feasibility is reduced. Customizations are not possible. Simulink generates errors The daughter card cant be accessed.

Solution We write our own C code The model is emulated directly Progress Studying in detail the aspects of Hardware Programming Implemented some basic codes for testing purposes Implemented the static model of our project i.e.,, non real time model but outputs are not according to our expectations. Further things to be done Implementation of real time model Design of ducts, enclosures and microphone placements.

THANK YOU

You might also like