Giter VIP home page Giter VIP logo

feedback-anc-teensy-3.6's Introduction

Feedback Active Noise Cancelling System


Introduction

In this project, Filtered-X Least Mean Square (FxLMS) algorithm is implemented in Teensy 3.6 microcontroller to reduce unwanted noise using a 20W speaker and MEMS microphone.

FxLMS Algorithm

This feedback active noise cancelling system is based on FxLMS algorithm. Since only the feedback signal is picked up, the feedback system is mostly effective in cancelling narrow-band signals.

alt text

Figure 1: Physical Feedback System

alt text

Figure 2: Feedback System based on FxLMS

In the feedback system, there is only error sensor(microphone) and a secondary source(speaker). The difference between the detected and predicted error is then feed into the system to update the filter weights.


Physical Setup

Microcontroller

The microcontroller used in this project is Teensy 3.6, a complete USB-based microcontroller development system by PJRC. With a 32 bit MHz ARM Cortex-M4 processor which comes with a floating point unit, it allows faster floating point computation.

alt text

Figure 3: Teensy 3.6 Pinout

Other Component

Audio amplifier: Adafruit 20W MAX9744 is selected for this project.

alt text

Microphone: SparkFun MEMS Microphone Breakout – INMP401

alt text

Code

The code is written using Arduino IDE with Teensyduino. In the code, ARM math library is used to decrease the time used for floating point matrix calculation. DMA channel is also utilized in the code to achieve higher sampling frequency.

The secondary path file is first run to determine the secondary path coefficients offline. After acquiring the secondary path coefficients, they are then pasted into the main ANC file. With the acoustic path coefficients determined offline, the main file can now be run to reduce noise.


Reference

Figures 1,2 are from paper by Edgar Lopez-Caudana

Omar, Edgar. “Active Noise Cancellation: The Unwanted Signal and the Hybrid Solution.” Adaptive Filtering Applications, 2011, doi:10.5772/16844.

Feedback FxLMS MATLAB code by Augustinus Oey

https://www.mathworks.com/matlabcentral/fileexchange/29491-feedback-active-noise-control-system-using-fblms-algorithm

feedback-anc-teensy-3.6's People

Contributors

zftan0709 avatar

Stargazers

Gilberto Garza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.