Go Down

Topic: Beginner Buzzer Question (Read 1 time) previous topic - next topic

Schlangy

Hi Everyone,
     I'm new to arduino and finished going through some of the beginner tutorials.

I tried hooking up a buzzer to my arduino and couldn't get it to make a sound.
The Buzzer is a model 273-055 from Radio Shack. The description says it operates on 12VDC and delivers 75dB at 15mA maximum current.

I had the red wire running into the Ground port on the arduino, and the black wire first hitting a 1k Ohm resistor and then going into the 5V
port on the arduino.

What am I doing wrong?

Thanks

MarkT

Firstly its a 12V buzzer.  Secondly red is positive, black is negative.  Thirdly what current does it take?
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Big Oil

The arduino only has 5 volts max.  There are 5 volt buzzers at radio shack, so I'd get another one.

Schlangy

Big Oil, alright I'll go pick up a 5 volt buzzer.

But is there a way to get the 12v buzzer to work with the arduino?

Big Oil

Yes.  You will need:
12v battery or a 12 volt dc power adapter (some 12v power supply)
An NPN transistor. 

In case you don't know how a transistor works, it's basically a light switch that you turn on with the arduino.  You don't have the power going into the arduino, over 9 volts can damage it.  You can search around for transistor info.  Basically:
12v power--- transistor ----- buzzer
                         |
                         |
                    Arduino

You send power to the transistor like you would an LED, and it allows 12v power to flow to the buzzer

raron

Or rather:

12v power---resistor---buzzer--- NPN transistor ---GND
                                                                |
                                                           resistor
                                                                |
                                                           Arduino

http://www.kpsec.freeuk.com/trancirc.htm#npn

retrolefty


Or rather:

12v power---resistor---buzzer--- NPN transistor ---GND
                                                                |
                                                           resistor
                                                                |
                                                           Arduino

http://www.kpsec.freeuk.com/trancirc.htm#npn



No need for that resistor shown between the buzzer and 12v power, it's a 12volt buzzer.

raron

#7
Mar 30, 2011, 08:19 am Last Edit: Mar 30, 2011, 08:33 am by raron Reason: 1
retrolefty: Ah ok, thanks. The main point was the placement of the NPN transistor though.

12v power---buzzer--- NPN transistor ---GND
                                            |
                                       resistor
                                           |
                                        Arduino


retrolefty

Quote
The main point was the placement of the NPN transistor though.


OK, but then it should have included E/B/C information if that was the main point:


12v power---buzzer--- NPN  C > transistor < E ---GND
                                                 |
                                                 B
                                            resistor
                                                 |
                                            Arduino

raron

Quote
OK, but then it should have included E/B/C information if that was the main point

There is a little link there for the specially interested. But yeah.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy