How to use a 4 pins speaker?

Hi,

I just found this speaker but I didn't knowhow to use it with my Arduino card, any idea? Thanks.

Hi and welcome.

What 4 pins are those ?
It is a 2 wire buzzer, connected to a 4 position connector, which has the outer 2 positions populated.
Connect the black wire to GND and the red wire to an output (better would be to connect it through a transistor but that gets too complicated if you already are puzzled by this buzzer).
Or connect the red wire to 5 volt and the black wire to an output pin or a transistor.

Use the tone library to generate nice tones and tunes.
There's also an example that came with your IDE to show how to work with tunes (but it uses a library called pitches) .

Thank you I appreciate your help.
I didn't noticed that there was only 2 wires...
Thanks to you I made a step forward to my optical theremin !

Wow.

That's another example in the IDE.

Oh thanks I don't even noticed that, that was quick but it work :smiley:

Off topic but the title of this thread brought to mind the mains energised loudspeakers used in the radios of the 1930s and 1940s that I used to repair. An electromagnet in the speaker doubled as a smoothing choke for the HT supply. Copper wire was cheaper then than strong permanent magnets!

Russell.

Hi,
I'd would say that the object is not a speaker, but a beeper from a computer board, apply 5Vdc and see if it beeps.
I have seen many like that and they are all beepers, no good as a speaker.

That is why its polarised, note the + sign on the top.

Tom... :slight_smile:

TomGeorge:
Hi,
I'd would say that the object is not a speaker, but a beeper from a computer board, apply 5Vdc and see if it beeps.
I have seen many like that and they are all beepers, no good as a speaker.

That is why its polarised, note the + sign on the top.

All noted, but that would be very strange as the standard for PCs is that the four pin plug using only the two outer pins to the black and red wires is in fact a speaker, driven by one of the peripheral chips to generate a range of sounds in software.

TomGeorge:
Hi,
I'd would say that the object is not a speaker, but a beeper from a computer board, apply 5Vdc and see if it beeps.
I have seen many like that and they are all beepers, no good as a speaker.

That is why its polarised, note the + sign on the top.

Tom... :slight_smile:

Yes I found it in an old computer, i didn't tried to plug it with 5V because now he is broked and I need to weld it -.-'

Please note that in the English language (and probably most others as used by those with technical competence), the process of using the material solder to construct circuits using a soldering iron is called "soldering".

This is welding:

Some seem to have their PCB do that, i've heard.

@russellz

Loved (and miss) the old vacuum tube or "valve" radios, you could listen to "Radio Nederland" and heat your lunch at the same time.

Paul__B:
Please note that in the English language (and probably most others as used by those with technical competence), the process of using the material solder to construct circuits using a soldering iron is called "soldering".

This is welding:

Oh sorry I didn't know that, in french it's the same word, it's called "souder"