6VDC RadioSha Buzzer and Arduino UNO

I just learned about the Arduino tone library. The only buzzer I have lying around is in a RadioShack bag and is 6v dc rated at 45ma.

Is this safe to connect to the Arduino to digital pin 3, then to ground.
Or do i need to use a transistor?

Thanks!

You need an NPN transistor to conduct that much current, with a 1K resistor from Pin 3 to the base connection.

If the buzzer beeps when connected to 6v, it has a built tone module already.
Observe polarity.
.

A mechanical BUZZER with a + and/or - stamped on it, can't be used for sound.
Use a PIEZO disc for sound.
You might be able to find one in a musical greating card.
Leo..

Oh, well, here it is...

can i just make it buzz on and buzz off?

can i just make it buzz on and buzz off?

Yes, with a transistor.

Just like, any NPN... will a 2n222 do the trick. or do I need something specific?
This is all running from a 12v li-on battery pack, straight into the dc barrel jack.
Any easy way to cut 12vdc into 6vdc?

jremington:
You need an NPN transistor to conduct that much current, with a 1K resistor from Pin 3 to the base connection.