AUX to Optical Konverter (Schematic)

Hello – I found an old Sonos soundbar at home a long time ago that’s still working and sounds great, but unfortunately it only has an optical input and my PC (which I want to connect to it) only has an AUX output. Since I have to do a school project for which we have one month, I decided to build an AUX‑to‑optical converter. Unfortunately, I couldn’t find any schematic for an AUX‑to‑optical converter online, and ChatGPT wasn’t able to help me either. Now I’d like to ask the DIY Audio community if someone could create such a schematic. You don’t need to do the PCB layout—that I can handle myself. The converter should also be stereo, since the soundbar supports that. Our only rule was that we weren’t allowed to program anything. And if possible, it should cost less than 50 CHF, as that is our budget limit, but if it goes over, it’s not too bad.

Thank you for the quick replies. I wanted to clarify a few things that might help solve my problem.
My PC has a Line-Out port with a green ring, which is for audio output, and I want to connect it to a Sonos soundbar.
I also checked, and my PC only has 3 x 3.5mm audio jack connectors (green, pink, and blue). They are all analog and directly connected to the motherboard. Other than that, I don't have any additional audio outputs.
The Sonos soundbar has a Toslink (optical) input.




Pictures that might help:

Green Line-Out port on the PC:
Grünner Line Out Anschlus



Toslink input on the Sonos soundbar:
1745009798376.png
 
Last edited:
AUX is not the name of a standard connector on a PC. That's why you haven't gotten any help. Nobody knows what you're talking about.

Is it an input, an output? Is it analog, digital? Is an RCA connector, something else? Is on the motherboard, on a sound card, something else? Etc.
 
  • Like
Reactions: oliver1
Last edited:
  • Like
Reactions: oliver1
If AUX is an analog input on the PC, then how can the OP drive his soundbar optical input with that? Maybe AUX is reconfigurable to an analog output?

Anyway, some sound cards and or some MBs have a spare SPDIF output on the board. Might be worth checking that first?
 
  • Like
Reactions: oliver1
Assuming the computer output is a line-level analog audio output, what you're looking for is a ADC (analog to digital converter), the opposite of a DAC. I don't know of a diy project, but they can be purchased for a range of prices. Here's a cheap one on Amazon: https://www.amazon.com/Digital-Converter-Optical-3-5mmAUX-Soundbar/dp/B09Y9CGT56/ref=asc_df_B09Y9CGT56?tag=bingshoppinga-20&linkCode=df0&hvadid=80195759886248&hvnetw=o&hvqmt=e&hvbmt=be&hvdev=c&hvlocint=&hvlocphy=&hvtargid=pla-4583795279385462&psc=1
 
  • Like
Reactions: oliver1
If AUX is an analog input on the PC, then how can the OP drive his soundbar optical input with that? Maybe AUX is reconfigurable to an analog output?
Well, according to the OP, the PC only has an AUX output ... so that should do ..
I found an old Sonos soundbar ...but unfortunately it only has an optical input and my PC ... only has an AUX output.
 
  • Like
Reactions: oliver1