Repurposing an old PC CD-ROM drive as a dedicated CD transport with S/PDIF digital out
For quite a long time now, I've been using an external DAC and headphone amp combination for audio coming from my desktop PC and laptop: an SMSL D1 DAC, which takes coaxial, optical and USB input, going into a Pro-Ject Head Box S2, which I then connect to my Sennheiser headphones. It works and sounds great, and I use it to listen to anything on my PC, including music.
But something's been missing: a convenient way to play audio CDs at my desk. I used to have a dedicated Hi-Fi setup near my desk, but that has moved to the living room, and my desk is now in a different room. I don't want to commit to an entire second Hi-Fi setup in my office. Nor do I want to use the internal drive of my desktop PC. I don't really like playing CDs through a piece of software, I often have other things in the drive, and rebooting the PC means stopping the music. That also doesn't let me listen to CDs when I have my laptop hooked up to the docking station at my desk. So it's not really the most convenient option.
I just want a dedicated little CD transport that spits out pure digital audio to the DAC.
Options I considered
"Cheap" new CD players
What I first looked into was getting one of those sleek new CD players you can find on AliExpress or Amazon these days. They often look nice, with a wood-finish aesthetic, and I'm sure they work fine. They usually have at least an analog headphone jack and sometimes also a Toslink and/or digital coaxial output. The problem is, they're usually close to or even over €100, which is more than I'm willing to spend on this sort of thing.


An old DVD or Blu-ray player
The second option I was thinking of was using an old DVD or Blu-ray player. A lot of them have an RCA S/PDIF digital audio out port. But those can be fairly bulky, and they often don't have any dedicated buttons for CD playback. So you'd be stuck using a remote all the time, which, again, is not ideal.


Two random examples from DVD and BD player manuals.
An older CD player
There are, of course, also just older CD players, but a lot of those don't have an optical or S/PDIF out. The ones that do are usually higher end, thus more desirable, thus more expensive.
So I left the idea there for a little while.
Sometimes, hoarding parts has its advantages
One day I was digging through my parts bins, particularly the ones with my old CD and floppy drives. If you're anything like me and you're into the hobby of retro computers, you most likely have at least a few spare parts like this lying around.
It stood out to me that the IDE drives from the late 90s and early 2000s often have a dedicated headphone jack on the front and a little volume wheel or volume buttons, as well as pins for an analog and a digital output on the back.
And that's when it struck me: maybe I can just repurpose one of these old PC drives I already have as a standalone CD transport, and use those digital out pins to go to my SMSL DAC.
And wouldn't you know it, I found one in the pile that seemed perfect, an AOpen CD-956E/AKV, new in the box. Not only did it have a dedicated headphone jack on the front and the digital output pins at the back, it also had dedicated buttons for playing audio CDs, skipping to the next track and stopping the disc. In theory, all this drive needs is power. You don't even have to connect it to a PC, and it should be able to play discs that way, I figured.


Testing the theory
I happen to have a SATA and IDE to USB adapter that comes with an external power supply with a Molex plug, which lets me power the drive by itself without anything else attached to it.

With the power adapter feeding the drive and a pair of headphones connected to the headphone jack on the front, it plays CDs just fine without anything else connected to it.
With that, my theory was confirmed: this could work as a dedicated CD transport.
The built-in headphone jack doesn't sound good at all. It outputs a fairly flat-sounding signal, probably from a very cheap DAC inside the AOpen drive. This is why I want to send the digital signal from the drive to the SMSL DAC, which can convert it to a high-quality audio signal that my headphone amplifier can use.
If you'd like to buy one of these Molex adapters for yourself, they seem to be difficult to find on their own. It's easier to just search for "IDE to USB" and buy a set similar to what I have, which comes bundled with one of these Molex adapters.

Converting the digital output
I did a bit of digging, using Claude as well as Googling around and reading spec sheets. It didn't take long to figure out that you can't just hook the digital output of these drives straight up to a coaxial plug or an S/PDIF input.
What first put me on to this were several threads on the diyAudio forum, which mentioned that the pins on these drives are most likely 5 volt TTL level, and not S/PDIF level. This suspicion was also backed up from the purpose-built PCI brackets that give your computer a Toslink and coaxial digital output port, which you can actually still buy to this day. They're usually intended for connecting to your motherboard as far as I know, but you can see some small components on the brackets' PCBs, between the internal connector and the actual Toslink and RCA outputs. The same goes for ready-built converters I found on AliExpress, which mention you can connect them up to a CD-ROM drive. The fact that they had components on them made me suspect that at least some amount of conversion needed to happen before it would work.



I could've just purchased a pre-made PCB like this and tried to fit it inside the enclosure. I'm sure it would have worked fine, but I wanted to stick to a DIY solution. The circuit seemed simple enough, so I decided to first take a look at exactly what it is and does, and whether I could make this conversion myself.
With some further digging, I found two sources that show a very simple circuit for converting a TTL level S/PDIF output to a regular coax S/PDIF signal: one on epanorama.net (under Simplest TTL to S/PDIF coax interface), and another in a Cirrus Logic CS8406 datasheet (page 35). Both show a resistor (330Ω, or slightly higher 374Ω) in series from the digital out signal to the center pin of the RCA jack, and then a 100Ω or 90.9Ω resistor between the RCA jack's center pin and ground.
The CS8406 chip isn't in the D1 or the drive. However, the information comes from an appendix in the datasheet that's mostly generic: it explains how to take a TTL level digital audio signal, such as the one coming from the CS8406, or a CD drive, and convert it to a consumer output signal.
The TTL to S/PDIF coax circuit on epanorama.net also shows a 100nF capacitor in series with the resistor going to the RCA jack's center pin, which supposedly is for DC blocking. But since the Cirrus Logic datasheet left it out, I decided to try without a capacitor first.
Testing on a breadboard
I built this very simple circuit on a breadboard. I used a 390Ω and a 100Ω resistor, which were the closest values I had to the specs. I connected it to my drive and to my DAC using a little makeshift RCA plug that I soldered onto DuPont wires, so I could use it with the breadboard.
The circuit worked, though I noticed that the signal would cut out sometimes. It was mostly stable, but the signal would sometimes drop and the music would stop playing. The DAC would no longer output any sound, and I had to unplug and replug it before it would work again for a little while. So it seemed like it wasn't always able to lock onto the signal.
After that test, I went back to the Cirrus Logic datasheet. In the text above the consumer output circuit, I noticed it mentioning that the voltage level may be 3.3 volts instead of the 5V shown in the circuit, in which case you need different resistor values. The same text also says the output should be 0.5 volts peak to peak, with a 20% tolerance.

I hooked up my oscilloscope to the output of the CD drive directly (which admittedly I should have done to begin with, before building the circuit). This showed that the output level of my drive is ~3.8V, closer to the 3.3V mentioned in the datasheet and not the 5 volts I had assumed at first. And when I measured the output of the circuit I had built with the 5 volt assumption, it came out at about 0.32 volts, which is too far below the expected 0.5 volts.



Scope connected to the first test circuit. Showing a Va value of 320mV (0.32V).
I swapped out the 390Ω resistor for a 180Ω and a 56Ω resistor in series, giving a total of 236Ω, which is the closest I could get to the 243Ω the datasheet calls for. I just kept the 100Ω resistor going from the signal pin to ground. Then I tested it again, and this time it worked perfectly. I got sound, and the output was at about 0.6 volts. That's slightly above the 0.5 volts, but still within the 20% tolerance, and the sound no longer dropped out. With the DAC now locking onto the signal consistently, I decided to stick to this circuit.

The enclosure
Of course, I wanted the CD drive to have some sort of enclosure, so I decided to 3D print one. I went looking on Printables, where I found an enclosure I really liked, made by Osprey. After printing, I also added some rubber feet to the bottom of the enclosure to keep it from slipping around the desk.

The enclosure came with a removable backplate, which was very convenient to work with. I used a Dremel multi-tool to drill a small hole into the backplate, so I could mount an RCA jack for the digital output.

However, I quickly noticed that the Molex power supply I had was too long, and its cable too stiff, to fit inside the enclosure, so the backplate wouldn't close.


I went back to my parts bin and looked for Molex extension cables. I happened to still have a cable meant to hook up a computer case fan to a Molex connection, with an extra pass-through connector. That had what I needed: a male and a female Molex plug. I simply removed the fan header from that cable, and with that, I had a more flexible Molex cable that fit well inside the enclosure.

Adding a power switch
While dealing with the Molex cable, I also decided to add a power switch, as it would be trivial to add thanks to that extension cable. This way, I don't have to leave the drive powered on at all times. I can just cut the power to it, which I think is a convenient option. I used a simple double-pole, double-throw (DPDT) toggle switch, soldered the 5- and 12-volt lines to it, and now I can easily switch the drive on and off.


Fitting the output circuit inside the enclosure
With the circuit solidified, I had to fit it inside the enclosure. At first, I thought about using a piece of perfboard and soldering it on that. But then I figured that with it really just being three resistors, it was honestly easiest to solder the 100Ω resistor directly between the ground and center pins of the RCA jack. The two other resistors I soldered in series as part of the wire going from the digital out pin on the drive to the center pin of the RCA jack, and put some heat shrink tubing around them. It doesn't look pretty, but it works fine.



Caveats
Copy-controlled CDs
Because this is still a PC drive, early 2000s copy-controlled CDs don't play in it, because those get detected as a CD-ROM instead of as a Red Book audio CD. These used an oddball format that did not conform to the Red Book audio standard. They work perfectly fine in any regular CD player, as if they were a Red Book audio CD. But in a PC drive, they act like a CD-ROM with data on it, requiring you to install a separate program to be able to play them.


No display, limited buttons
The drive itself doesn't have any kind of display, so it doesn't show what track it's on. It has dedicated CD playback buttons, but they're very limited: you cannot go back a track, which is the biggest lack, and you also cannot pause the CD. It's only play, next track or stop. That's it.
As far as these limitations go, they're really just the fault of this particular drive. The nice thing about this solution is that the drive is easy to replace. I can just take any other old IDE CD drive that has the digital out pins and it should be a drop-in replacement. Creative in particular seems to have made some PC CD-ROM drives back in the day with a lot more dedicated buttons for CD playback and even an infrared remote, though I'm unsure if that works without a PC attached running the included software.

End result
This solution is exactly what I wanted. It's cheap, compact, and works great for playing a CD now and then at my desk while I'm working, without the PC itself being involved. It's dedicated: I can shut my PC off, switch between my laptop and my desktop, or do anything else, and the CD will continue playing just fine. And let's not forget: the sound quality is amazing.

Though of course, I have to acknowledge: this is really only a cheap option if you already happen to have a lot of the necessary parts and tools. I already had the drive, a 3D printer for the enclosure, a Molex power supply, soldering skills and a pack of resistors.
Still, even if you had to buy all of these things (an old CD-ROM drive and a number of resistors, plus an off-the-shelf 5¼-inch enclosure or one printed by a service), you might still end up spending less than you would on one of those new CD players on AliExpress. But it's only really a very cheap solution if you're in a situation like mine, where you're kind of a tinkerer who already happens to own a lot of this stuff.
What it comes down to is that I think this is a very interesting option to consider for people who happen to have some of these parts, or perhaps don't.