Pages: [1]   Go Down
Author Topic: Beginner Buzzer Question  (Read 1206 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Shannon Member
****
Karma: 207
Posts: 12194
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Firstly its a 12V buzzer.  Secondly red is positive, black is negative.  Thirdly what current does it take?
Logged

[ I won't respond to messages, use the forum please ]

0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 310
Posts: 40382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 310
Posts: 40382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Norway
Offline Offline
Sr. Member
****
Karma: 4
Posts: 423
microscopic quantum convulsions of space-time
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or rather:

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

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

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Norway
Offline Offline
Sr. Member
****
Karma: 4
Posts: 423
microscopic quantum convulsions of space-time
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

retrolefty: Ah ok, thanks. The main point was the placement of the NPN transistor though.

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

« Last Edit: March 30, 2011, 01:33:04 am by raron » Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Norway
Offline Offline
Sr. Member
****
Karma: 4
Posts: 423
microscopic quantum convulsions of space-time
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: