Electrical – Arduino buzzer resistor requirements

arduinopiezo-buzzerresistors

I am currently using pin 13 and the ground pin to connect an old salvaged buzzer from an old stationary phone. Also I am using this command to power it's tone(13, 59, 30000).

Does this have the potential to damage the pins or the microcontroller itself? I aim for the loudest sound possible. Is there any other way to do this maybe through different pins (5V, Vin, etc) in order to avoid using a resistor?
Or HAVE I to use a resistor to not damage the Arduino no matter what?
Maybe I could use a transistor setup to control the buzzer? Or is the Arduino safe anyway and I should just carry on doing what I am doing (pin 13 and ground)?

Best Answer

enter image description here

It depends on model of buzzer. But the diode , resistor and transistor is needed since it probably takes 40~80mA.