Play audio from a serial port!!!
Play audio from a serial port!!!
That's some top flight bodgery - I love it. I will have
to try setting that up for myself. 100 bonus points for
a tenuous Look Mum No Computer connection, as well.
I wonder what the low pass works out as? Surely if the
start bit is 0 and the stop bit is 1 you're going to
end up with a constant 11.5kHz whine?
Heha, look at me worrying about audio quality... this
thing's going to sound like balls and that's completely OK.
The low pass filter would probably be filtering out the start bit if it is the only 0 bit? A single bit at 115.2 kbps would be filtered out at 57.6 kHz (it's a pulse lasting 8.68 microseconds, that would be half the cycle), I think - though I really don't have much knowledge of analog electronics.
I'm actually surprised to have not seen this kind of trick in use before. Seems like it could have fit in during the 80s when any (cheap) audio more than a beep was highly desirable.
That's a good question. I suppose the instantaneous
pulse would be 57.6 kHz but an alternative way to look
at it would be as a 11.5 kHz signal with a really wonky
9:1 duty cycle... I further suppose since it's a
"square" wave the instantaneous frequency could be
considered to be infinity (obviously not really).
There were a good number of consumer and homebrew
projects for doing this with the parallel port. In
theory a nice clean 8 bit output, I made one with my
school friend back in the day and it sounded *awful*. I
suspect our quality control was not good enough as
other people reported good results.
Oh for the days when you could just walk into Maplin
and buy qty. 1 components... In fact we just turned up
with a list of "0.1uF electrolytic" etc and handed it
to the poor guy behind the counter to rummage through
the catalogue and find the 20 or so part codes we
needed for us and then fetch them from the back!
I'm actually surprised to have not seen this kind of trick in use before. Seems like it could have fit in during the 80s when any (cheap) audio more than a beep was highly desirable.
I'm actually surprised to have not seen this kind of trick in use
The bit I forgot, is that these tend to be fairly CPU heavy, and you have to be able to hit the Parallel/Serial port pretty fast. Making it difficult for the systems of the age to do anything else save drive these sound devices.
In the early 90s, I saw a sound driver for Windows 3.1
that used the PC speaker, so that WAV audio files & such
could be enabled that way. Although it worked, and was
kinda cool for what it was, it slowed down the PC
significantly while playing audio that way. I imagine
it was a similar issue.
I'm going to put together a cheeky YouTube video showing all of this but I need to source some different audio, as I think that LMNC track is available to buy and I don't have permission to use it...
Re: Play audio from a serial port
Finally got the YouTube video up - if anyone's interested it is here:
https://youtu.be/Q9vlxCXxzrg
Sysop: | Shaun Ewing |
---|---|
Location: | Blue Mountains, Australia |
Users: | 195 |
Nodes: | 16 (0 / 16) |
Uptime: | 217:31:32 |
Calls: | 152 |
Files: | 187,817 |
Messages: | 328,108 |