First time here, so here I am with an electronic-related question. Please note that altough I have a scientific background, I'm quite new to electronics.
I'm trying to build a small audio amp using a LM386 chip. I found a lot of designs on different websites, and I ended up building this :
The design is largely based on this one and this one. The cap between pins 1 and 8 sets a higher gain for the amp, and if I understood correctly, the feedback betweens pins 1 and 5 helps cutting higher frequencies and reducing hiss.
The input is a simple electret mic, and all this is powered by an Arduino board.
For my application of this amp, the microphone and the speaker are very close from each other, and I need a high gain. You might see the problem coming : I have to avoid the audio feedback (larsen) between them. This is why I added a simple RC low-pass filter at the end of the audio path (dotted box on the schematic). Its cutoff frequency is roughly around 1kHz, which should be ok because feedback yields frequencies higher than 4kHz.
This seems to be reducing the feedback a bit (I can put the mic and the speaker closer), but it isn't enough : I still get feedback at the same frequencies.
I tried to add a filter right after the mic output (before the amp), but then I can't hear any output signal in the speaker : it seems to be cutting all the input signal.
So, I'm looking for a filtering solution (either using extra components, or taking advantage of the LM386) that could help completely shutting off the highest frequencies of the signal.
I hope my setup and problem is clear. If not, do not hesitate to ask for more details !
Thank you !