I bought some of those cheap piezo elements on eBay. Today, I started playing with it as a speaker rather than a detection device to see how loud they are outside of a case. Initially, using an Arduino to create a simulate an oscillator, I managed to get a descent sound out of it at 3 kHz just using the 5V output on one of the digital pins. Great. So far, so good.
I decided to see what would happen with a higher voltage. So, using a 3904 NPN, I built the attached circuit on a bread board. The 7.5V input is a dying 9V battery. Using the same sketch and series resistor (100 ohms), I expected to get more sound. Instead, all I got was a faint "click." No oscillation. I connected my scope across the series resistor and piezo (positive source and collector). I got a steady DC voltage of ~7V. I removed the piezo and resistor from the circuit to get a look at the collector voltage. What I got was the waveform in the second photo. Peak is ~7V. It looks like when the output pin goes LOW, the voltage spikes a tiny bit, then decreases linearly until the pin goes HIGH again. I also checked the signal (base to ground) and it was the perfect square wave I expected. Is this normal behavior for these transistors? When I read the datasheet, it looks like they can switch in the MHz range. I originally had a 1000 ohm resistor to limit Ib, but lowered it trying to improve the switching time.
What should have been the proper thought process in diagnosing this?