I have a very basic circuit where a PIC is putting a 2kHz square wave to a FET that is driving an 8 ohm speaker. Everything is going well except for one issue. The speaker randomly does not work. Troubleshooting has narrowed it down to two situations.
1) It works. This happens when my circuit’s ground is connected to ground on my oscilloscope. Whether or not the oscope is even on. And it has to be the ground.
2) It doesn’t work. This happens in every other situation. Also, the circuit is running at 5VDC, but when it isn’t working, the voltage drops to 3.7VDC (circuit is being powered by a PICKit 2).
For some reason my benchtop multimeter ground doesn’t make the speaker work. My understanding is that the ground impedance for the multimeter would be extremely high, but so is the ground impedance for an oscope, correct?
When I substitute a high impedance piezoelectric buzzer, it oscillates at the appropriate frequency and everything is good. In summation, I’m assuming that it is a ground issue related to the relatively high amount of current the speaker draws.
I know I’m missing something basic, but I’m concerned that this issue will be propagated into my final design, which inherently needs to be battery powered. Any thoughts would be greatly appreciated.
1) It works. This happens when my circuit’s ground is connected to ground on my oscilloscope. Whether or not the oscope is even on. And it has to be the ground.
2) It doesn’t work. This happens in every other situation. Also, the circuit is running at 5VDC, but when it isn’t working, the voltage drops to 3.7VDC (circuit is being powered by a PICKit 2).
For some reason my benchtop multimeter ground doesn’t make the speaker work. My understanding is that the ground impedance for the multimeter would be extremely high, but so is the ground impedance for an oscope, correct?
When I substitute a high impedance piezoelectric buzzer, it oscillates at the appropriate frequency and everything is good. In summation, I’m assuming that it is a ground issue related to the relatively high amount of current the speaker draws.
I know I’m missing something basic, but I’m concerned that this issue will be propagated into my final design, which inherently needs to be battery powered. Any thoughts would be greatly appreciated.