Buzzer creates sound when he should'nt

Hello,

I'm using a Arduino Nano rev3 and a YL-44 Buzzer. When I played a sound with the buzzer with this code

tone(3,500);
delay(500);
noTone(3);

he growls after I stopped playing the sound.

Maybe he's hungry ;)

What happens if you use: tone(pin, frequency, duration)

I used your code but there is no difference.

You’re right; The power consumption from my ESP8266 was too high.

The link I find for the YL-44 says it's an active buzzer that only needs volts to play a fixed tone. In other words you don't want/need to use the tone() function.

Does it still buzz if you use this code, and does it stop growling after?

pinMode(3,OUTPUT);
digitalWrite(3,HIGH);
delay(500);
digitalWrite(3,LOW);

No.