I am trying to build an LM386 audio amplifier on a breadboard but am getting "motorboating" oscillations.
The layout on the breadboard is:
At left is a Radio Shack condenser mic, biased with a 1K resistor, the output coupled via a 10uF capacitor to an inverting amplifier based on an LM741 op-amp.
The inverting amplifier of the LM741 has a 1K input and a 220K feedback resistor for a gain of -220. 1/2 the supply voltage goes to the + input. The output is coupled via a 10uF cap to the LM386.
The LM386 on the right of the breadboard is set up for a gain of 20. Its output goes to the snubber and is coupled via a 220uF cap to the 8 ohm speaker.
A. Does this layout make sense? Is the 220 gain in the first stage and the20 gain in the output correct for audio signals and this circuit?
B. To avoid ground loops, should I try to tie ALL grounds to the same point, including the mic's, the LM741's, the LM386's, and the speaker's? Or should I separate some components from others?
Right now the mic, the LM741 and the LM386 have their grounds go to the breadboard's ground line. I've tried to keep them as close as possible. Also, I wired the speaker's and the snubber's grounds to the LM386's 4 pin, not the ground line.
C. Bypass caps: where on the breadboard should I put them? Close to the 6 pin of the LM386, the speaker, or the battery connections? I put a 220uF cap directly between the 4 and 6 pins of the LM386 but it didn't help. I paralleled it with a 0.1uF ceramic cap but it also didn't help.
Any help will be appreciated.