Author Topic: Audio oscillator with SPDIF or Toslink output  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

Offline CirclotronTopic starter

  • Super Contributor
  • ***
  • Posts: 3178
  • Country: au
Audio oscillator with SPDIF or Toslink output
« on: April 22, 2018, 11:17:29 am »
I have a fairly reasonable quality DAC that I used to use between my CD player and amplifier. Don't really use it nowadays, and seeing it has a distortion at max output of 0.0018% I thought it might make the basis of a good audio oscillator to 20kHz max. Just needs to be driven from a SPDIF or Toslink source that is generating the actual frequency. Is there such a source?
 

Offline The Soulman

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • The sky is the limit!
Re: Audio oscillator with SPDIF or Toslink output
« Reply #1 on: April 22, 2018, 01:27:01 pm »
Cheapest and easiest would be to use computer with one of the many generator programs available freely in
combination with a usb to spdif interface, make sure it supports the resolution you want, as the cheapest ones generally max out
at 16bit 48KHz.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9008
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Audio oscillator with SPDIF or Toslink output
« Reply #2 on: April 22, 2018, 02:09:30 pm »
You can use a FPGA board.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline CirclotronTopic starter

  • Super Contributor
  • ***
  • Posts: 3178
  • Country: au
Re: Audio oscillator with SPDIF or Toslink output
« Reply #3 on: April 23, 2018, 12:24:26 am »
Cheapest and easiest would be to use computer with one of the many generator programs available freely in
combination with a usb to spdif interface, make sure it supports the resolution you want, as the cheapest ones generally max out
at 16bit 48KHz.
I do have one of those, a cheap one though, and while it works it produces a chk-chk-chk noise on the output along with the desired signal. I don’t know how many different ones I would have to buy until I found one that worked properly.
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Audio oscillator with SPDIF or Toslink output
« Reply #4 on: April 23, 2018, 12:55:18 am »
A Raspberry Pi, or even an ESP32 and something based around https://d3uzseaevmutz1.cloudfront.net/pubs/proDatasheet/CS8406_F6.pdf could be an interesting project.

Because it is optical, Build quality doesn't have to be spectacular for good results. Perfboard for the win! :D
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19494
  • Country: gb
  • 0999
Re: Audio oscillator with SPDIF or Toslink output
« Reply #5 on: April 23, 2018, 07:47:21 am »
I have a fairly reasonable quality DAC that I used to use between my CD player and amplifier. Don't really use it nowadays, and seeing it has a distortion at max output of 0.0018%
How is that possible? That looks like marketing to me.

The resolution of a 16-bit audio is less than that.
 

Offline CirclotronTopic starter

  • Super Contributor
  • ***
  • Posts: 3178
  • Country: au
Re: Audio oscillator with SPDIF or Toslink output
« Reply #6 on: April 23, 2018, 10:50:13 am »
I have a fairly reasonable quality DAC that I used to use between my CD player and amplifier. Don't really use it nowadays, and seeing it has a distortion at max output of 0.0018%
How is that possible? That looks like marketing to me.

The resolution of a 16-bit audio is less than that.
Maybe the distortion figure is for 24-bit mode?
Anyway, this is the unit -> https://archive.org/stream/Silicon_Chip_Magazine_2009-09_Sep#page/n13/mode/2up
 

Offline BradC

  • Super Contributor
  • ***
  • Posts: 2106
  • Country: au
Re: Audio oscillator with SPDIF or Toslink output
« Reply #7 on: April 23, 2018, 11:37:18 am »
Silicon Chip also did a neat audio generator that had an SPDIF output. Altronics used to sell a kit for it, but now I check and it's gone. It was a pretty neat unit, but the kit was $$.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14447
  • Country: fr
Re: Audio oscillator with SPDIF or Toslink output
« Reply #8 on: April 23, 2018, 02:33:39 pm »
To benefit from your low distortion DAC, you need a low distortion generator. Less trivial than it seems.
You didn't mention what kind of signal you want to generate? Pure sine? Other waveforms?

There are pretty expensive units, such as this: https://www.nti-audio.com/en/products/digirator-dr2
(Probably not worth it if all you want is to reuse your DAC.)

As others have suggested, a PC/ or SBC-based solution is probably your best bet for a simple and low-cost approach, yet with the ability of generating low-distortion signals. If you have access to I2S signals on your DAC, you may not even need an additional SPDIF board (some SBCs have I2S built-in).

You could also do this with a microcontroller or an FPGA, but there will be significant dev time, especially if you want some kind of UI.
 

Offline _Wim_

  • Super Contributor
  • ***
  • Posts: 1517
  • Country: be
Re: Audio oscillator with SPDIF or Toslink output
« Reply #9 on: April 23, 2018, 07:55:01 pm »
Cheapest and easiest would be to use computer with one of the many generator programs available freely in
combination with a usb to spdif interface, make sure it supports the resolution you want, as the cheapest ones generally max out
at 16bit 48KHz.
I do have one of those, a cheap one though, and while it works it produces a chk-chk-chk noise on the output along with the desired signal. I don’t know how many different ones I would have to buy until I found one that worked properly.

Make sure you levels are not clipping. Try lowering the level in your software package, this could be the reason of the noise...

What software package are you using? I had good luck with Room Equalizer Wizard (REW) in the past, which is freely available
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf