VOGONS


First post, by dumpsterac1d

User metadata
Rank Newbie
Rank
Newbie

Quick post here to pick your brains. I have a few soundcards that don't have PC Speaker headers, and am just wondering if folks here end up using Line In for that and route the headers from the motherboard out of the chassis and back in through the 3.5mm jack on the back of the case? Or does everyone just skip it? Some games I prefer the PC Speaker sound (Keens 4-6 and Monster Bash for example) and would like the sound to route through whatever speaker system I have hooked up.

Anyone tried modding a card for this as well?

Reply 1 of 15, by Benedikt

User metadata
Rank Oldbie
Rank
Oldbie

I have not tried anything like that, but the approach should work, provided that the soundcard's internal mixer can route the input straight through to the output and provided that the levels are compatible.
Since the PC Speaker header is designed to drive a speaker, some attenuation might be required to prevent damage to the line-in.

Reply 2 of 15, by dumpsterac1d

User metadata
Rank Newbie
Rank
Newbie

Good point. I think PC speaker is driven by +5v which is hot. Since I'd be making my own cable for this, getting an attenuator in line would be no problem.

Reply 3 of 15, by SirNickity

User metadata
Rank Oldbie
Rank
Oldbie

Also be careful of polarity. I haven't studied the PC speaker circuit on many motherboards, but at least in theory, you could end up shorting the +5V output to Gnd on the sound card. That would be bad.

A better solution would be to build a differential input, condition it through a DC-blocking cap, and give the sound card a 1V AC output referenced to Gnd. But that takes the project from "adapter cable" to "perf board" at the least.

Reply 4 of 15, by Scali

User metadata
Rank l33t
Rank
l33t

Here is an article with some simple solutions to recording the PC speaker, trying to solve the 'hotness' of the PC speaker signal, and the polarity issue:
http://www.oldskool.org/guides/speakerrecording
It links to this: http://www.deinmeister.de/e_sbpcqlnk.htm
I think that may be what you want.

http://scalibq.wordpress.com/just-keeping-it- … ro-programming/

Reply 5 of 15, by Tiido

User metadata
Rank l33t
Rank
l33t

The circuit in the second link in Scali's post will work fine, but the 100ohm resistor should be 1k or perhaps more to get a level that's not gonna be super loud. Optionally a capacitor (1000pF...0.01µF)between signal and ground can be added too to make sample playback over PC speaker sound less noisy and perhaps make things sound closer to what an actual PC speaker would sound like.

T-04YBSC, a new YMF71x based sound card & Official VOGONS thread about it
Newly made 4MB 60ns 30pin SIMMs ~
mida sa loed ? nagunii aru ei saa 😜

Reply 6 of 15, by matze79

User metadata
Rank l33t
Rank
l33t

i use this circuit, works well and i tested it in many other systems with different types of pc-speaker.
you may want to use a trimpot for volume also, and a capacitor on output.

Attachments

  • Speaker Mix In.png
    Filename
    Speaker Mix In.png
    File size
    4.63 KiB
    Views
    1117 views
    File license
    Fair use/fair dealing exception
Last edited by matze79 on 2019-03-31, 13:20. Edited 1 time in total.

https://www.retrokits.de - blog, retro projects, hdd clicker, diy soundcards etc
https://www.retroianer.de - german retro computer board

Reply 8 of 15, by LABS

User metadata
Rank Member
Rank
Member
Tiido wrote:

The circuit in the second link in Scali's post will work fine, but the 100ohm resistor should be 1k or perhaps more to get a level that's not gonna be super loud.

Why? As I understand this resistor does not affect sound attenuation, but only pulls up the signal to vcc, which can make the sound a bit louder.

Blasterboard: DIY SB2-compatible sound card on ATmega MCU
Sonic Buster 8: New 8-bit ISA sound card

Reply 9 of 15, by Tiido

User metadata
Rank l33t
Rank
l33t

The lower the resistor, the more current is produced (and chance of destruction increases too) and with that higher voltages are possible. 1kohm and higher will exclude possibility of magic smoke aswell. One PC speaker wire is +5V on most motherboards, you want to be careful with that 🤣.

T-04YBSC, a new YMF71x based sound card & Official VOGONS thread about it
Newly made 4MB 60ns 30pin SIMMs ~
mida sa loed ? nagunii aru ei saa 😜

Reply 10 of 15, by LABS

User metadata
Rank Member
Rank
Member
Tiido wrote:

The lower the resistor, the more current is produced (and chance of destruction increases too) and with that higher voltages are possible. 1kohm and higher will exclude possibility of magic smoke aswell. One PC speaker wire is +5V on most motherboards, you want to be careful with that 🤣.

That is a totally different story about current, 100 ohms is too low for sure, but I was (you were) talking about loudness affected by resistor’s value. So I asked why you say it is affected, maybe I’m missing something. And yes, one pc speaker wire is +5v, so the resistor only pulls it up to +5v.

Blasterboard: DIY SB2-compatible sound card on ATmega MCU
Sonic Buster 8: New 8-bit ISA sound card

Reply 11 of 15, by Tiido

User metadata
Rank l33t
Rank
l33t

That resistor is what produces the output voltage according to current generated, it has direct effects around volume that is achieved. It essentially controls the gain of the output buffer on the motherboard. You can of course do low value resistor, mimicing the speaker and getting maximum voltage and then using voltage divider to get it down or drop that divider altogether and get right levels with just that one part (and this approach uses less power too though it doesn't matter in most cases 🤣).

T-04YBSC, a new YMF71x based sound card & Official VOGONS thread about it
Newly made 4MB 60ns 30pin SIMMs ~
mida sa loed ? nagunii aru ei saa 😜

Reply 12 of 15, by matze79

User metadata
Rank l33t
Rank
l33t

if i make a circuit without the 47kOhm its waaay too loud.
i already tested this in several machines, and also creative uses this method on their vibra 16/sb clones.

https://www.retrokits.de - blog, retro projects, hdd clicker, diy soundcards etc
https://www.retroianer.de - german retro computer board

Reply 13 of 15, by bjwil1991

User metadata
Rank l33t
Rank
l33t

With the diagram, this won't burn your card to a crisp as the PC Speaker header outputs high sound through the sound card and can make it sound muffled and way too loud.

Discord: https://discord.gg/U5dJw7x
Systems from the Compaq Portable 1 to Ryzen 9 5950X
Twitch: https://twitch.tv/retropcuser

Reply 14 of 15, by jaZz_KCS

User metadata
Rank Oldbie
Rank
Oldbie

Keep in mind that the values differ greatly, when it comes to the voltages that are spat out through the Speaker line.

Most desktops will have a voltage of about 2-3V going through the Speaker line whenever there are beeps happening. These values can be all over the place regarding of what machine we're talking about.

Example: I have a 486 POS cash register PC here that uses a 0.2W speaker. The reason being: The voltage coming through the Speaker line is a meager 0.04-0.10V whenever there are beeps. This is very low for a Speaker line, albeit the 0.2W speaker makes up for it by being so weak as well, resulting in this actually being a rather loud PC Speaker.

"Normal" PC Speaker values are between 2-3V and using 1-2Watt Speakers/beepers/piezos.

Reply 15 of 15, by matze79

User metadata
Rank l33t
Rank
l33t

Its unlikely to design one circuit that works for every one.
My XT is different to my K6-2, and my MicroATX Super7 Board also has a different Output Level.

https://www.retrokits.de - blog, retro projects, hdd clicker, diy soundcards etc
https://www.retroianer.de - german retro computer board