Our project outputs three square waves from the PIC18 and is currently designed to go into an LM324 summing amplifier and then an LM386 audio amplifier to drive an 8ohm speaker. However, we have run in to the following issues:
- The biasing of the LM324 may be wrong, as we have both the positive input pin and the -Vcc of the chip tied to the same ground. One of our instructors mentioned this may be an issue and to use a voltage divider to bias up the positive input. We have inserted a 33kohm and 1kohm resistor to compensate for this.
- Although our measured voltage after the variable low pass filter is below the input voltage of the 386, we have blown two of them.
- The output from the 386 only works if the 3 notes being produced by the PIC are harmonic. Our instrument uses a Gamelan scale, so for example if we play 3 C's we get an ok output, however as soon as we play 3 separate notes (say C, Ab, Eb) we get heavy distortion and intermodulation.
We are wondering if there is any way we can improve on this circuit or alternative circuits we could try. We have tried replacing the LM386 with a transistor circuit to drive the speaker but this didn't resolve our issues. Also, ignore the absolute trash fire of a diagram.
Original Diagram