Hi guysss. I'm a noob and new here with lil knowledge on electronics and Arduino. I'm willing to search and learn if it's something I don't know and will help me. I'm working on a proposal project about digital stethoscope. And one of the problem is the ambient sound. There are 2 methods I found how to remove the ambient sound: 1) By using Band-Pass Filter and it's software algorithm (if working). 2) Is by using Adaptive Active Noise Cancelling (ANC) System. I decided to use ANC because it's much more effective in respiratory sound analysis than using Band-Pass Filter. I'll be not having an output sound, the sound recorded by the microphone will be analyzed by the microcontroller
The question is on how to implement an ANC System, what I know is it both involves hardware (error mic, source mic, ANC controller, etc) and software (code/algorithm). Though there might be possibility that I misunderstood concepts. I'm planning of implementing a Hybrid Active Noise Cancellation. Also, I will be using electret microphones with breakout board (MAX4466) which has op amp if I'm not mistaken. For the circuit board-microcontroller. I'm thinking of using maybe Arduino Due or Teensy 4.0. I don't know on how to do it and implement it. I don't also know where to start.
I've already search and found various forums in arduino which says it's not possible. But I've found codes for LMS and FXLMS Noise Cancellation Algorithm and that leads me in asking here.
Here's the link for the code I've found for LMS: Arduino - https://github.com/wespo/LMS Teensy - https://github.com/zftan0709/Feedback-ANC-Teensy-3.6 - https://github.com/DD4WH/Teensy-ConvolutionSDR/blob/master/Teensy_Convolution_SDR.ino