So i'm now starting to use transistors for the first time by intention (as opposed to "just copying" a TIP120 example circuit)
i wanted to boost the sound from a Piezo transducer which by tone()
was too soft to be heard properly.
there were several threads on this, suggesting to use a transistor, but they didn't seem to come to a conclusion as to whether it worked or not.
it's a simple circuit like so;
the code is still the same, a standard toneMelody.ino
- but nothing happens.
i have tried putting in a bulb in the circuit (and Blink.ino) to confirm the transistor is indeed switching current on and off, but when it is the piezo transducer and toneMelody.ino
- nothing...
is there a particular specification that a transistor needs, so as to be able to duplicate the square wave for tone()
- maybe it's not matching the frequency applied at the Base ?
i am using a generic 2N2222.