Electronics > Projects, Designs, and Technical Stuff
Is it possible to get a PDM audio output on Windows?
Windows9Professional:
I'm currently trying to build an IR audio transmitter and reciever. I startet with the reciever, wich I now want to try out. Since I haven't even startet building my transmitter, I want to ''convert'' my computer into a crude transmitter.
Is there a way to get PDM (Pulse-density modulation) output on a Windows or Ubuntu PC?
Sorry for bad english, if something is pronounced wrong
magic:
Automatically for normal audio playback? Not really, all you have on soundcards is analog outputs and SPDIF.
But it you have some pulse pattern precomputed in software, it's possible to use interfaces like analog audio jacks or LPT to output it.
Windows9Professional:
I already tried to modulate a track with Audacity, but it seems like, there is no option for that. (There might be one. I'm not very familiar with Audacity). But it would be very relaxing to have some software which converts my normal audio into a PDM signal and then outputs it to the audio jack, so I wouldn't have to build a full transmitter, but just an amplifier.
By the way, thank you for your reply!
SiliconWizard:
Frankly, given the average 'clock' frequency for a PDM signal for audio frequencies, don't expect to generate the PDM signal directly from a standard PC without a specific interface.
Of course, that could be a simple job on a microcontroller if you can do that.
IMO, the simplest option is to build a very simple PD modulator like the one attached (first-order modulator). With a reasonably fast comparator, it will give pretty decent performance. Then you can feed it with any audio signal. Just a couple parts. This is a free-running ("clockless") modulator, so you have to figure out whether your demodulator will be OK with that. From simulation, with the given comparator, the average PDM frequency will be around 10MHz or so. You can use a slower comparator for a "slower" PDM output.
I've built this kind of modulators quite a few times in the past and they are very simple and work very well for transmitting audio with a decent quality with just one digital line.
Doctorandus_P:
About 30 years ago there was DOS software for using the simple PC speaker with PDM and get pretty usable audio out of it.
The PC speaker in that day and age was a single bit connected to a timer chip.
Some of the modern PC's still have that hardware, the PC speaker may be an un-occupied jumper on the motherboard somewhere.
Modern PC's are also so goddamn fast that they can easily keep up with it even while simultaneously multitasking and doing lots of other things.
Writing software for it is a diffent beast though.
You may find some usable software somewhere on the 'net, or write it yourself, but unless you have an particular fetish for such things it is much more logical to use a uC for such things.
But why bother with PDM at all?
USD 1.5 uC's come with I2S and example source code to use it and can have excellent audio qualtiy with little effort.
Anecdote:
Some years ago I wanted to write some .net progam in C# (Silly me) and I wanted it to make some noise. I thought the simples would be to use that 40 year old speaker to beep at me, and got distracted by some web sites that tried to explain that it was not supported by .net and they had declared that old speaker obsolete. which seemed fair enough.
And then a few years ago that same old PC started beeping at me after installing some Linux distribution. It turned out that somewhere on the Mobo a little buzzer was installed which still worked with that same ancient hardware interface.
Navigation
[0] Message Index
[#] Next page
Go to full version