Two 16F84 pics using one piezo?
Hello,
How would one have two 16F84 pics share a single piezo speaker on their PORTA.1 pins?
At the moment I have a couple on a test breadboard their PORTA.1 pins connected to a single 10uF/16V electro cap and on to a (I hope) piezo speaker. I scavenged the speaker from an old UNIDEN cordless phone and it won't work without the capacitor. All the PORTB pins are connected to two banks of LEDS that light back and forth and beep when they reach either end. It's only point is to teach me how to do this.
If only one PIC is connected then everything works fine - startup beep and the beeps at either end but with two PICs there's only one startup beep then little clicks from the speaker.
Sorry but I don't have the current code to post - it's on an ancient computer in the garage with a faulty floppy, yes floppy drive. I must replace that sometime.
Any help greatly appreciated.
Rubicon.
Try a common emitter amplifier
Hi there,
You can try to amplify (buffer) the signal from the port pins through a single npn transistor and connect the the collectors of both to the buzzer if you are using thge sound function. If you are using a self oscillatory piezo buzzer then just and the ports using two diodes (4007 or such) and should get satisfactory result.
Regards
Sougata
That's an interesting option
Hi everybody,
That's an interesting option posted by ingvar. However if both the PICs are in output mode then there can be current rush through (even with the capacitors in series with the pin).
Regards
Sougata