I want to drive this 12V piezo buzzer: http://www.conrad.com/ce/en/product/130256/Kemo-L001-High-Freqeuncy-Piezo-Speaker-Component-12-24-V
This is the circuit I am using.
The Arduino is powered by a 12V DC adapter trough the DC IN jack.
I have tested the following code:
void setup() {
}
void loop() {
int pinOut = 9;
int freq = 10;
int duration = 100;
while(1)
{
for(int i=0; i<1000 ; i++)
{
tone(pinOut, freq*i, duration);
delay(duration * 1);
noTone(pinOut);
}
}
}
When run I can hear the tones changing but is really really low. I have measured the voltage between buzzer pins and it is 12V (as expected) so the MOSFET seems to be properly working.
This piezo buzzer should be louder (I have tested it with this 12V tone generator http://www.kemo-electronic.de/en/Car/Modules/M048N-Ultrasonic-Generator.php )
I am making any mistake? Thanks in advance!