LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-14-2013, 01:08 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Desktop beeper (aka internal speaker) with polarity?


Hi: Desktop computers have two pins on the motherboard (mb) which go through a cable to a speaker (drive in audio terms). Mine is a miserable transducer which has the polarity marked on it. So I take it this mb output is not, as it was in the old days, for connecting a moving coil speaker, i.e., the kind of speaker there used to be on old mb. Because the latter has no polarity. You can reverse the polarity and it will work.

Are all modern desktops like this one, that is, the speaker output has a polarity which you must respect? The question is rather vague, because maybe high-end desktops have speakers in the old fashion (no polarity). So this datum: the mb is the Gigabyte H61M-S1. May be I am wrong and the transducer has no polarity? My opinion: the plus sing marked on it is a mere decoration.

Last edited by stf92; 01-14-2013 at 01:57 PM.
 
Old 01-14-2013, 02:15 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Modern speaker are not moving couil speakers, they are Piezo speakers: http://en.wikipedia.org/wiki/Loudspe...ctric_speakers
Therefore your assumption that the polarity is mere decoration is wrong, if you connect it wrong you will not get any sound from the speaker (but nothing will get destroyed or something like that, just reverse the connection and it works).
 
1 members found this post helpful.
Old 01-14-2013, 02:17 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I just took a look at my motherboard manual (mine is a Gigabyte too, a GA-990XA-UD3) and the polarity of the speaker connection is shown in the manual. That said I think my case just has a moving-coil speaker and I don't recall whether I paid any attention when wiring up the speaker.
 
Old 01-14-2013, 02:30 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Piezo speaker are by far cheaper than moving coil speakers, I haven't seen a motherboard or case coming with moving coil for years. May be you were just lucky (the chance is simply put 50% to do it right).
 
Old 01-14-2013, 02:39 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I thought I'd read somewhere in the manual that many of the motherboard connections could be plugged in either way, but re-reading it all the polarities are marked and there's a note to observe polarity. I knew the LEDs, by their nature, had to go the right way so perhaps I did pay attention to the speaker terminals too.
I've an ultra cheapo case so it must be a piezo as it's just too tacky for anything more expensive, come to think of it.
 
Old 01-14-2013, 04:17 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by TobiSGD View Post
Modern speaker are not moving couil speakers, they are Piezo speakers: http://en.wikipedia.org/wiki/Loudspe...ctric_speakers
Therefore your assumption that the polarity is mere decoration is wrong, if you connect it wrong you will not get any sound from the speaker (but nothing will get destroyed or something like that, just reverse the connection and it works).
I aimed at having an audible bell character (0x07). Also having a means of debugging some programs in which the CRT cant be used for that. As the frequency response curve of these moving coil speakers was very uneven, by varying the frequency one could find the point at which the loudness was a maximum.

My piezo-electric, a thing I did not know it was, is only audible at night. So, I though I could just unplug it and plug in a speaker with a powerful magnet I have from a very old PC. I now see I can't, given what you've said. And even if the output signal could drive a moving coil, i.e. if it were an audio signal with no DC component, the mb amplifier would have to be able to deliver good power. In the last mb's with moving coil I've seen, entry level it's true, the amplifier delivered the 8-ohm load a power in the order of nanowatts. And the magnet was a joke compared to that in the first PCs.

I could insert a capacitor in series with the speaker, but again, the output power over 8-ohms would be too low. You can't know how disappointed I am! Thanks for your very useful post.
 
Old 01-14-2013, 06:24 PM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
So put a capacitor in series and connect it to an el-cheapo amplified speaker system. You know the type with a 3.5 mm plug.

jlinkels
 
Old 01-14-2013, 06:30 PM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
But it's the bell character I want to hear. You are speaking about the sound card!?

Last edited by stf92; 01-14-2013 at 06:37 PM.
 
Old 01-14-2013, 06:34 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I thin jlinkels meant that you should connect that to the onboard pc-speaker output.
 
Old 01-14-2013, 07:05 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by TobiSGD View Post
I thin jlinkels meant that you should connect that to the onboard pc-speaker output.
And what is the role of the 3.5mm plug? Although perhaps I should first know what the blody el-chipo is that I can't find in any dictionary.
 
Old 01-14-2013, 07:32 PM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
El-cheapo is a slang form of cheap device. What he means is a simple active speaker, sets of these can be bought here sometimes in supermarkets for about 10€, with a bad sound quality, but for the purpose of just hearing the bell more than sufficient. The 3.5mm plug was just an indicator for what he meant, it will be cut of anyways.

Side-note: sometimes a look at the Urban Dictionary is worth a lot: http://www.urbandictionary.com/defin...rm=el%20cheapo
 
Old 01-14-2013, 08:00 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I see. The terminology used today it confuses me. Speaker is an enclosure containing the driver. I was usin "speaker" in the sense of "driver". I mean, a speaker is the set with two elements: enclosure and driver. I do not know what loudspeaker means today. Using the proper (up to day) terminology then, some speakers include an amplifier. The amplifier is within the enclosure. I myself am sitting in front of two of this type right now (the PC desktop little speakers, but the amplifiers, right and left channel, are built in only one of them).

It seems a good solution. The only problem left unsolved is where to get the connector that would plug into the motherboard socket (a simple pair of pins). I have some, but used. I.e., a cable comes out of the conector. To disassemble it and reassemble it I think would be an impossible mission. And if I find a place where I can buy one of those connectors, then again to assemble it together with the cable would be very difficult without a special tool and the result, poor.
 
Old 01-15-2013, 05:44 AM   #13
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
After some time googling, I got
:
Quote:
a [piezo] buzzer typically has it's own internal oscillator and drive, thus you only need to apply power to make it work. What you have sounds like a piezo speaker, thus you have to provide it with an AC waveform with your audio signal. The easiest way to do this is to use the AVR's PWM functionality [AVR is an Atmel line of microcontrollers], with complimentary outputs. Attach each of the complimentary outputs to the terminals of the piezo, this will in effect present it with a +/-5V [10Vp-p] signal. Then simply drive the PWM with your audio data for the tone/signal you'd like to generate. (you can use a simple square wave of the frequency you want, but you may find that it sounds a bit staticy, feeding the PWM with a series of sinewave samples will likely produce a cleaner sounding result.)
(from http://www.avrfreaks.net/index.php?n...topic&p=812568).

And
Quote:
The [computer] case speaker is a peizo buzzer normally, ...
(from http://www.tomshardware.com/forum/29...phones-speaker). That computer is an e6700/asus p5b. I do not know if the asserrtion in the post ("the case speaker is normally a piezo buzzer") can be generalized to all modern home desktop computers.

So, neither moving coil speaker, nor "el-cheapo amplified speaker system", nor even a piezo speaker will do. A solution to this problem (making the beep louder) would be too complicated, as I see it. Of course, the writer in the second post used the word 'normally'. Perhaps some high-end home desktop computer uses another approach for the internal speaker.
 
Old 01-15-2013, 06:37 AM   #14
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by stf92 View Post
Perhaps some high-end home desktop computer uses another approach for the internal speaker.
I can assure you they don't. In times of 7.1 surround sound systems and sound themes for system sounds generated by the audio subsystem no one really cares about the PC speaker, it mostly nowadays has the only function to act as error signal if the system doesn't boot due to hardware error.
 
Old 01-15-2013, 06:51 AM   #15
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by stf92 View Post
Quote: a [piezo] buzzer typically has it's own internal oscillator and drive, thus you only need to apply power to make it work. What you have sounds like a piezo speaker, thus you have to provide it with an AC waveform with your audio signal. The easiest way to do this is to use the AVR's PWM functionality [AVR is an Atmel line of microcontrollers], with complimentary outputs. Attach each of the complimentary outputs to the terminals of the piezo, this will in effect present it with a +/-5V [10Vp-p] signal. Then simply drive the PWM with your audio data for the tone/signal you'd like to generate. (you can use a simple square wave of the frequency you want, but you may find that it sounds a bit staticy, feeding the PWM with a series of sinewave samples will likely produce a cleaner sounding result.)
This is nonsense. Either you have a piezo speaker with an internal oscillator, which you drive with DC. Or you have something which needs a 10Vp-p signal which is AC. Which will drive a normal speaker. Having a piezo speaker and drive it with AC is nonsense.

Legacy connections stay legacy unless it is very clearly indicated that they have changed. Asus does not say in the manual it has changed. The speaker signal is still +5V-speaker, as it has been for decades. Not speaker-GND as would have been likely for a DC output. The 5V-speaker is constructed as such so an open-collector output can be used to drive the speaker.

Besides, if you have an ATX case in which you can mount this MB which still happens to have a conventional AC-drive speaker a modern ATX mainboard would not be able to drive the speaker? Can't believe that.

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The MATE desktop brings back the power of a real desktop environment. LXer Syndicated Linux News 0 03-27-2012 07:20 AM
ubuntu-desktop vs. kubuntu-desktop vs. xubuntu-desktop vs. lubuntu-desktop vs. unity Kenny_Strawn Ubuntu 18 05-13-2011 09:20 AM
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 07:48 PM
Disabling Beeper serenity999 Linux - General 2 10-20-2003 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration