Author Topic: Best ADC for low latency, audio frequency range  (Read 4976 times)

0 Members and 1 Guest are viewing this topic.

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Best ADC for low latency, audio frequency range
« on: July 17, 2018, 10:06:51 am »
Hi all,

Im working on a project where speed is critical.  I planned to use (and already ordered  |O ) Sigma-delta ADCs and DACs, but I now see a huge flaw in my plan:  the filter delays.  The delay on the ADC and DAC would cause over a 2 cycle delay at 2kHz! I want my usable range to be at least 2kHz; and over my usable range there can't be more than a 1 sample delay.

What are my other options for ADCs and DACs?  What type of ADC other than sigma-delta would you recommend?  Essentially, Im looking for a combination of high conversion speed and data quality.  Im assuming my fs will be ~48k; audio range but this isnt set in stone, if there are other better options.

Thanks for the advice!
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Best ADC for low latency, audio frequency range
« Reply #1 on: July 17, 2018, 11:16:15 am »
What other specs do you need?
(SNR, THD+N etc)
And why do you need such low latency?

They don't always specify the latency in the datasheet.
The mean reason for that is it's underneath 1-5ms, which is fast enough.

Online coppice

  • Super Contributor
  • ***
  • Posts: 8646
  • Country: gb
Re: Best ADC for low latency, audio frequency range
« Reply #2 on: July 17, 2018, 01:18:49 pm »
At 48k sps, one sample delay converters up to 16 bits or so are readily available. Beyond that you are into specialised territory, and the price can rise rapidly. Because very few audio bandwidth applications care too much about delay, a high volume, low cost, market for this type of converter hasn't developed. Even in real time applications, like feedback control and musical instrument processors, the delay in the DSP is usually so great that the delay in the converters does not dominate.
 

Offline JS

  • Frequent Contributor
  • **
  • Posts: 947
  • Country: ar
Re: Best ADC for low latency, audio frequency range
« Reply #3 on: July 17, 2018, 01:25:34 pm »
At higher sample rates all happens faster, which means lower latency, then if you have the processing power and can deal with only old samples (output considering last samples and older, not wait a few more to take the decission) you can respond fast. Lets say you run at twice the sample rate, filters could still take 2 samples would mean half the time, even if you go 4 times the SR filter might take 3 or 3 samples. Now, sampling at 192kHz for a 2kHz response seems overkill but if you need to react fast might be your option.

Now, what are the specs you are trying to reach?

JS

If I don't know how it works, I prefer not to turn it on.
 

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #4 on: July 17, 2018, 01:47:35 pm »
Im using this for feedback control of vibration (with an actuator), which is why I need the low latency.  Im trying to implement an N-point FIR filter (time domain convolution, very computationally expensive) as the control loop.  Im using an FPGA and fixed point math (optimized to maximize my dynamic range) to make things run quickly within one sample.

I work for a company that makes dynamic signal analyzers and vibration controllers; but Im coming from the Mechanical Eng side and am really curious if this sort of controller is possible (this is a project Im doing on my own after EEVblog videos piqued my interest in HW design).  My company use such filters for controlling complex mechanical systems; but they are implemented in the frequency domain so the application of the FIR filter reduces to N/2 multiplications every N time samples.  This means they are much less computationally demanding and run fine on a DSP, but can't operate in true sample-by-sample realtime as everything is based on FFT blocks.  We use sig-delta ADCs and DACs which give us great performance, but since we operate in FFT blocks w/ a 1 block delay the slight ~80sample delays added by the filters in the ADC/DAC are insignificant.

Other specs arent as important; as from a control perspective even a few degrees of phase delay will make the system difficult to control.  So, as far as other specs go, Ill take what I can get.  The average delay (from the FIR filters in the ADC/DAC) on the sig-del ADC/DACs Ive been using is around 40 samples each; 80samples roundtrip at 48kHz.

@coppice
Do you have an example of a 16bit 48ksps 1 sample delay ADC/DAC?  This would likely do the trick...

@JS
My complete data path is:
ADC Sample->FPGA->Time domain convolution with N point filter h(n)->DAC

This needs to happen in 1 sample; and as I mentioned Im running with fixed point math on an FPGA so increasing my sample rates wont throw anything awry.  Ive considered running my ADC/DACs in 192kHz mode; their delays are around 18sample round trip if I do so, which is much better but still comes out to a 33deg phase delay at 2kHz.  This may work for my needs...but the performance would not be optimal. 

I did actually purchase the ADS1675IPAG sigma-delta ADC yesterday (its still shipping) which runs at 4MHz; so its filter delay of 28sample is virtually insignificant for my purposes.  But I was not able to find a sigma-delta DAC that runs at this speed; only 192kHz.  If this ADC does the trick; I guess my problem is then only on the DAC side.
« Last Edit: July 17, 2018, 02:11:08 pm by rsridhar »
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Best ADC for low latency, audio frequency range
« Reply #5 on: July 17, 2018, 02:08:05 pm »
You might try the ADAU1761 which is a a low latency DSP with ADC and DAC on board.
Normally used for fast feedback systems in microphone arrays and such.

Otherwise I would recommend using the FPGA and "building" your own fast ADC.
Since you're already using one, that would be the best way to go.

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #6 on: July 17, 2018, 02:16:20 pm »
a DSP will likely not be able to keep up with the time domain convolution.  My bigger goal though is to try and apply this to a multi-actuator system; in which case the number of computations per data sample can easily go into the billions.  Im guessing that, if I do get to that point, Id be running on multiple FPGAs.

Looking at the ADAU1761, its delay specs seem about the same as the ADC/DAC Im currently using, 23+11 samples for the ADC/DAC.

@b_force
What do you mean by "building" a fast ADC?  is this possible on an FPGA?  Sounds like it woulndt be trivial though...
« Last Edit: July 17, 2018, 02:20:57 pm by rsridhar »
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6721
  • Country: nl
Re: Best ADC for low latency, audio frequency range
« Reply #7 on: July 17, 2018, 02:51:53 pm »
Do you need 16+ bits? The Linear SAR ADCs can do that, for a price ... the SAR ADC in say a STM32F7 is zero latency as well.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Best ADC for low latency, audio frequency range
« Reply #8 on: July 17, 2018, 02:56:19 pm »
FIR filter with N taps has a delay of (N-1)/2 samples. Source: https://dspguru.com/dsp/faqs/fir/properties/
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6721
  • Country: nl
Re: Best ADC for low latency, audio frequency range
« Reply #9 on: July 17, 2018, 03:05:05 pm »
a DSP will likely not be able to keep up with the time domain convolution.
As usual in these topics I feel compelled to point out that time/frequency domain filtering are not mutually exclusive and you can do most processing in the frequency domain even with zero latency. You just take the first say 64 samples of the impulse response and implement it with FIR, then you do the next 64 with FFT, the next 128 with FFT, the next 256 with FFT etc.
 

Offline b_force

  • Super Contributor
  • ***
  • Posts: 1381
  • Country: 00
    • One World Concepts
Re: Best ADC for low latency, audio frequency range
« Reply #10 on: July 17, 2018, 03:21:03 pm »
@b_force
What do you mean by "building" a fast ADC?  is this possible on an FPGA?  Sounds like it woulndt be trivial though...
Well, I used to work for a company that makes a custom chip for PWM controllers with fast feedback loops.
(and actually some kind of FIR filtering, out of band noise shaping etc)
The original prototypes were just FPGAs, so yes it is definitely possible.

Can't recall what the latency was, but it was pretty short.
Don't forget to calculate in the time it takes for the FIR filters.



Offline JS

  • Frequent Contributor
  • **
  • Posts: 947
  • Country: ar
Re: Best ADC for low latency, audio frequency range
« Reply #11 on: July 17, 2018, 03:57:55 pm »
The DAC in the fpga is a option to consider, you need a bunch of outputs and matched resistors but it will output the signal as soon as it's there and you then need to consider the analog filter at the output as a delay, the order 0 filtering is already done by the fpga, next you might like to add one or two poles.

How many bits do you need here? As input and output?

JS

If I don't know how it works, I prefer not to turn it on.
 

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #12 on: July 17, 2018, 04:05:51 pm »
FIR filter with N taps has a delay of (N-1)/2 samples. Source: https://dspguru.com/dsp/faqs/fir/properties/

I believe this is for linear phase filters; mine certainly will not be linear phase as the coefficients come from an impulse response (from an FRF measurement).  I know I will have some delay; and at some point will have to make an engineering choice or simply accept that it only operates at lower frequencies.  Im still doing experiments a mechanical to see how long the delay is, for various N and Fs's values.  To do this test, Im generating a drive signal to send to my actuator based on the FRF and a desired reference time signal.  Then, Im going to overlay the resposne that drive signal has when played back to the actuator with the original reference that was used to create it.  Comparing the two should give me a sense of the delay introduced by the N point convolution.

Do you need 16+ bits? The Linear SAR ADCs can do that, for a price ... the SAR ADC in say a STM32F7 is zero latency as well.

That is exactly what I need.  Definitely at least 16bits; the dynamic range of vibrating systems' FRFs can get into the 100+ dB range easily.  I will take a look at some of these after experimenting with my sigma-deltas for a bit more.


a DSP will likely not be able to keep up with the time domain convolution.
As usual in these topics I feel compelled to point out that time/frequency domain filtering are not mutually exclusive and you can do most processing in the frequency domain even with zero latency. You just take the first say 64 samples of the impulse response and implement it with FIR, then you do the next 64 with FFT, the next 128 with FFT, the next 256 with FFT etc.
I have never heard of this sort of processing before (unsurprisingly); part in time part in frequency.  Can you link me to an article or page describing it please?


The DAC in the fpga is a option to consider, you need a bunch of outputs and matched resistors but it will output the signal as soon as it's there and you then need to consider the analog filter at the output as a delay, the order 0 filtering is already done by the fpga, next you might like to add one or two poles.

How many bits do you need here? As input and output?

JS

I think the reconstruction filters should be significantly high in frequency 9above my 2kHz max freq) so that their effect is small; but yes I havent considered that as yet.
I need at least 16bit; 24 would be ideal as some mechanical systems can require 130+dB dynamic range to quantify.  Need it on the input and output.

Thanks all!  I think I have plenty to keep myself busy for the next few weeks. 
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6721
  • Country: nl
Re: Best ADC for low latency, audio frequency range
« Reply #13 on: July 17, 2018, 05:06:09 pm »
I have never heard of this sort of processing before (unsurprisingly); part in time part in frequency.  Can you link me to an article or page describing it please?
I have a couple of links in this post.
 

Offline MasterT

  • Frequent Contributor
  • **
  • Posts: 785
  • Country: ca
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8646
  • Country: gb
Re: Best ADC for low latency, audio frequency range
« Reply #15 on: July 17, 2018, 06:15:48 pm »
FIR filter with N taps has a delay of (N-1)/2 samples. Source: https://dspguru.com/dsp/faqs/fir/properties/

I believe this is for linear phase filters; mine certainly will not be linear phase as the coefficients come from an impulse response (from an FRF measurement).  I know I will have some delay; and at some point will have to make an engineering choice or simply accept that it only operates at lower frequencies.  Im still doing experiments a mechanical to see how long the delay is, for various N and Fs's values.  To do this test, Im generating a drive signal to send to my actuator based on the FRF and a desired reference time signal.  Then, Im going to overlay the resposne that drive signal has when played back to the actuator with the original reference that was used to create it.  Comparing the two should give me a sense of the delay introduced by the N point convolution.

Whether the filter is linear phase is largely irrelevant to the inherent algorithmic latency it introduces, and it really doesn't matter whether you are using an FIR or some other type of filter. An impulse causes its impulse response. This issue of causality means all the interesting stuff that goes into your filter happens after the impulse. It might be the impulse response dies really quickly after the impulse, or it might die very slowly, but until it has dropped below the threshold that is important to you, you can't get an output from the filter. This kind of delay is usually far longer than the delays caused by sigma-delta converters, and so the converter is not the dominant source of algorithmic delay in most cases.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 711
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #16 on: July 17, 2018, 07:56:48 pm »
FIR filter with N taps has a delay of (N-1)/2 samples. Source: https://dspguru.com/dsp/faqs/fir/properties/

I believe this is for linear phase filters; mine certainly will not be linear phase as the coefficients come from an impulse response (from an FRF measurement).  I know I will have some delay; and at some point will have to make an engineering choice or simply accept that it only operates at lower frequencies.  Im still doing experiments a mechanical to see how long the delay is, for various N and Fs's values.  To do this test, Im generating a drive signal to send to my actuator based on the FRF and a desired reference time signal.  Then, Im going to overlay the resposne that drive signal has when played back to the actuator with the original reference that was used to create it.  Comparing the two should give me a sense of the delay introduced by the N point convolution.

Whether the filter is linear phase is largely irrelevant to the inherent algorithmic latency it introduces, and it really doesn't matter whether you are using an FIR or some other type of filter. An impulse causes its impulse response. This issue of causality means all the interesting stuff that goes into your filter happens after the impulse. It might be the impulse response dies really quickly after the impulse, or it might die very slowly, but until it has dropped below the threshold that is important to you, you can't get an output from the filter. This kind of delay is usually far longer than the delays caused by sigma-delta converters, and so the converter is not the dominant source of algorithmic delay in most cases.

This is not true, if I am reading you correctly.  You can produce the first sample of the impulse response the instant the impulse comes in.  Think about how nature works.  Linear systems in the natural world don't have to wait for the length of their impulse responses before producing first output, do they?

The oft-quoted (N-1)/2 delay, as already mentioned, only applies to linear-phase filters.  Linear phase implies (and is implied by) symmetry or anti-symmetry in the impulse response, which is where the (N-1)/2 sample group delay comes from.

The real question is, how do you perform the convolution efficiently (that is, in the frequency domain) without imposing a latency equal to the block size.  And the answer is what Marco said, partitioned convolution.  If you'd like to learn more, a key google search term is "frequency delay line."  I also recommend Frank Wefer's thesis, "Partitioned Convolution Algorithms for Real-time Auralization":  http://publications.rwth-aachen.de/record/466561/files/466561.pdf.  If you can live with, say, four or eight sample latency, you can do the whole thing in the frequency domain using one section of short FFTs and another section of long FFTs; this is called a "nonuniform partition."

I'm using similar techniques right now to implement multi-thousand-tap FIR filters on a Cortex-M7 MCU for active noise cancelation.  No coincidence, you see this stuff a lot in ANC and in your application, which is basically the same thing.  Also in adaptive echo cancelers.  Things get fun when you need to make your long FIR filter adaptive, using LMS or something even fancier.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8646
  • Country: gb
Re: Best ADC for low latency, audio frequency range
« Reply #17 on: July 17, 2018, 08:49:33 pm »
FIR filter with N taps has a delay of (N-1)/2 samples. Source: https://dspguru.com/dsp/faqs/fir/properties/

I believe this is for linear phase filters; mine certainly will not be linear phase as the coefficients come from an impulse response (from an FRF measurement).  I know I will have some delay; and at some point will have to make an engineering choice or simply accept that it only operates at lower frequencies.  Im still doing experiments a mechanical to see how long the delay is, for various N and Fs's values.  To do this test, Im generating a drive signal to send to my actuator based on the FRF and a desired reference time signal.  Then, Im going to overlay the resposne that drive signal has when played back to the actuator with the original reference that was used to create it.  Comparing the two should give me a sense of the delay introduced by the N point convolution.

Whether the filter is linear phase is largely irrelevant to the inherent algorithmic latency it introduces, and it really doesn't matter whether you are using an FIR or some other type of filter. An impulse causes its impulse response. This issue of causality means all the interesting stuff that goes into your filter happens after the impulse. It might be the impulse response dies really quickly after the impulse, or it might die very slowly, but until it has dropped below the threshold that is important to you, you can't get an output from the filter. This kind of delay is usually far longer than the delays caused by sigma-delta converters, and so the converter is not the dominant source of algorithmic delay in most cases.

This is not true, if I am reading you correctly.  You can produce the first sample of the impulse response the instant the impulse comes in.  Think about how nature works.  Linear systems in the natural world don't have to wait for the length of their impulse responses before producing first output, do they?

The oft-quoted (N-1)/2 delay, as already mentioned, only applies to linear-phase filters.  Linear phase implies (and is implied by) symmetry or anti-symmetry in the impulse response, which is where the (N-1)/2 sample group delay comes from.

The real question is, how do you perform the convolution efficiently (that is, in the frequency domain) without imposing a latency equal to the block size.  And the answer is what Marco said, partitioned convolution.  If you'd like to learn more, a key google search term is "frequency delay line."  I also recommend Frank Wefer's thesis, "Partitioned Convolution Algorithms for Real-time Auralization":  http://publications.rwth-aachen.de/record/466561/files/466561.pdf.  If you can live with, say, four or eight sample latency, you can do the whole thing in the frequency domain using one section of short FFTs and another section of long FFTs; this is called a "nonuniform partition."

I'm using similar techniques right now to implement multi-thousand-tap FIR filters on a Cortex-M7 MCU for active noise cancelation.  No coincidence, you see this stuff a lot in ANC and in your application, which is basically the same thing.  Also in adaptive echo cancelers.  Things get fun when you need to make your long FIR filter adaptive, using LMS or something even fancier.
In an echo canceller you train an adaptive filter to match the impulse response from the transmit side to the receive side. You then apply this to the recent history of the clean signal, to obtain a hopefully good match for the current echo at the receiver. You then subtract that from the received signal, to remove the echo from it. In this you are creating the impulse response of the original signal, and subtracting it. Here, the current state of the signal depends only on its past - to depend on the future would break causality.

In most control loops roughly the opposite occurs.You are filtering a dirty received signal, which has been modified by the impulse response of the system,  to arrive at something close to a clean version of the signal. Since the clean signal caused the dirty signal, you can only filter back to the clean signal once you have a whole impulse response period of the dirty signal available - you have inherent algorithmic latency before you can create the output of the filter, because you cannot break causailty. If you look at most control loops, they use very elementary filters, purely to keep the algorithmic latency as low as possible, and allow the highest loop bandwidth to be used.

As you said the (N-1)/2 delay comes from linear-phase filters, where the amount of signal in the filter window is balanced around the group delay point. Most FIRs don't have the group delay point bang in the middle, but they don't have it an one end, either.
 

Offline JS

  • Frequent Contributor
  • **
  • Posts: 947
  • Country: ar
Re: Best ADC for low latency, audio frequency range
« Reply #18 on: July 17, 2018, 09:09:02 pm »
The problem is to fill the buffer on start up, once in steady state youcan react as the signal is coming in. For this you can start slow enough, with some inital conditions setted, with a non linear response or with a different filter at start, then the steady state loop takes control.

JS

If I don't know how it works, I prefer not to turn it on.
 

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #19 on: July 18, 2018, 02:04:29 am »
The real question is, how do you perform the convolution efficiently (that is, in the frequency domain) without imposing a latency equal to the block size.  And the answer is what Marco said, partitioned convolution.  If you'd like to learn more, a key google search term is "frequency delay line."  I also recommend Frank Wefer's thesis, "Partitioned Convolution Algorithms for Real-time Auralization":  http://publications.rwth-aachen.de/record/466561/files/466561.pdf.  If you can live with, say, four or eight sample latency, you can do the whole thing in the frequency domain using one section of short FFTs and another section of long FFTs; this is called a "nonuniform partition."

I'm using similar techniques right now to implement multi-thousand-tap FIR filters on a Cortex-M7 MCU for active noise cancelation.  No coincidence, you see this stuff a lot in ANC and in your application, which is basically the same thing.  Also in adaptive echo cancelers.  Things get fun when you need to make your long FIR filter adaptive, using LMS or something even fancier.

I will check those links out.  This is quite interesting, I never took any advanced DSP courses so this is all new to me.
Sound and vibration are; from a signals standpoint, ideitical (same freq range).  But the extension Im gunning for here is for MIMO control; esentially using actuators to cancel out vibrations in solid structures. This is something my company does, but not in realtime (block based).  In audio, this would amount to controlling the SPL at certain points in space, which may not be too useful since every other point will have sound.  But because of the way structures vibrate, cancelling the vibration (modeshapes) in a MIMO fashion will make the whole body rigid at that frequency.

Quote
Things get fun when you need to make your long FIR filter adaptive, using LMS or something even fancier.

Heh. funny you mention that, LMS happens to be one of my company's competitors, ill just say that my company's products are in the "something fancier" category  :-DD
My ultimate goal is exactly what you said.  If this project works, Im hoping to add it to my company's dynamic signal analyzer and have it automatically update the filter taps based on the realtime FRF measurement.


The oft-quoted (N-1)/2 delay, as already mentioned, only applies to linear-phase filters.  Linear phase implies (and is implied by) symmetry or anti-symmetry in the impulse response, which is where the (N-1)/2 sample group delay comes from.

That was exactly what I was thinking.  I cant imagine how convolving with an impulse response of a mechanical system - for which last 4/5 of the filter taps are essentially 0 - could have the same group delay as a symmetric time pulse which takes up the whole window.
« Last Edit: July 18, 2018, 02:13:23 am by rsridhar »
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 711
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #20 on: July 18, 2018, 03:57:25 am »
As you said the (N-1)/2 delay comes from linear-phase filters, where the amount of signal in the filter window is balanced around the group delay point. Most FIRs don't have the group delay point bang in the middle, but they don't have it an one end, either.

Ah, I think I understand what you're saying now.  I would argue that this is not algorithmic delay, because whatever delay is induced by the filter is *supposed* to be there.  When such a filter is implemented on a DSP with what I am calling "zero latency," the input/output relationship perfectly matches a textbook signal flow diagram (often a box with a capital H in it): no latency is added by the details of the algorithmic implementation.
 

Offline mark03

  • Frequent Contributor
  • **
  • Posts: 711
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #21 on: July 18, 2018, 04:09:20 am »
Sound and vibration are; from a signals standpoint, ideitical (same freq range).  But the extension Im gunning for here is for MIMO control; esentially using actuators to cancel out vibrations in solid structures. This is something my company does, but not in realtime (block based).  In audio, this would amount to controlling the SPL at certain points in space, which may not be too useful since every other point will have sound.  But because of the way structures vibrate, cancelling the vibration (modeshapes) in a MIMO fashion will make the whole body rigid at that frequency.

Actually, MIMO ANC systems are frequently used, for exactly the reason you state, that a SISO system can only control the SPL at a single point in space (actually a small region dictated by the acoustic wavelengths of the noise spectrum).  With additional speakers and microphones you can extend "decent" noise cancelation over a larger volume.  I was under the impression that MIMO ANC systems are standard in luxury cars, although I have no direct experience in that area (not automotive ANC systems, nor fancy cars  :-DD).

Quote
My ultimate goal is exactly what you said.  If this project works, Im hoping to add it to my company's dynamic signal analyzer and have it automatically update the filter taps based on the realtime FRF measurement.

If you would like to delve more deeply into the intersection of adaptive filters and partitioned convolution / frequency delay lines, I can recommend G.P.M. Egelmeers' PhD thesis:  https://pure.tue.nl/ws/files/1510206/448298.pdf.  Just beware, you're jumping into the deep end now!  Have fun. 8)
 

Offline rsridharTopic starter

  • Contributor
  • Posts: 13
  • Country: us
Re: Best ADC for low latency, audio frequency range
« Reply #22 on: July 18, 2018, 03:18:33 pm »
Sound and vibration are; from a signals standpoint, ideitical (same freq range).  But the extension Im gunning for here is for MIMO control; esentially using actuators to cancel out vibrations in solid structures. This is something my company does, but not in realtime (block based).  In audio, this would amount to controlling the SPL at certain points in space, which may not be too useful since every other point will have sound.  But because of the way structures vibrate, cancelling the vibration (modeshapes) in a MIMO fashion will make the whole body rigid at that frequency.

Actually, MIMO ANC systems are frequently used, for exactly the reason you state, that a SISO system can only control the SPL at a single point in space (actually a small region dictated by the acoustic wavelengths of the noise spectrum).  With additional speakers and microphones you can extend "decent" noise cancelation over a larger volume.  I was under the impression that MIMO ANC systems are standard in luxury cars, although I have no direct experience in that area (not automotive ANC systems, nor fancy cars  :-DD).

Quote
My ultimate goal is exactly what you said.  If this project works, Im hoping to add it to my company's dynamic signal analyzer and have it automatically update the filter taps based on the realtime FRF measurement.

If you would like to delve more deeply into the intersection of adaptive filters and partitioned convolution / frequency delay lines, I can recommend G.P.M. Egelmeers' PhD thesis:  https://pure.tue.nl/ws/files/1510206/448298.pdf.  Just beware, you're jumping into the deep end now!  Have fun. 8)

My company actually makes an acoustic controller which is used in high intensity acoustic tests (where they point loud horns at a spacecraft to ensure it can stand the acoustics of launching into space).  Our specialty is vibration control, and mimo vibration control though.  Doesnt get used much though; we really only have it because its esentially just a GUI wrapper over our vibration controller.

Thanks for sharing.  Ill definitely look into this as I progress on this project.  Im still relatively new to hardware/fpgas so Im guessing it will be a few months before I can even get a prototype working.  Then Ill get into the efficiency of the algorithm.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8646
  • Country: gb
Re: Best ADC for low latency, audio frequency range
« Reply #23 on: July 18, 2018, 06:56:20 pm »
As you said the (N-1)/2 delay comes from linear-phase filters, where the amount of signal in the filter window is balanced around the group delay point. Most FIRs don't have the group delay point bang in the middle, but they don't have it an one end, either.

Ah, I think I understand what you're saying now.  I would argue that this is not algorithmic delay, because whatever delay is induced by the filter is *supposed* to be there.  When such a filter is implemented on a DSP with what I am calling "zero latency," the input/output relationship perfectly matches a textbook signal flow diagram (often a box with a capital H in it): no latency is added by the details of the algorithmic implementation.
The usual term for this type of delay in DSP circles is algorithmic delay. In this case, if you choose to use a straightforward convolution for the filter, you get this much delay, which no form of implementation can get below. Of course, many implementations introduce another level of algorithm (e.g. bunching samples for efficient processing on many programmable DSPs) with its own algorithmic delay.
 

Offline fonograph

  • Frequent Contributor
  • **
  • Posts: 369
  • Country: at
Re: Best ADC for low latency, audio frequency range
« Reply #24 on: July 18, 2018, 07:26:55 pm »
What kind of FIR filter have shorter preringing than 2 sample at 48 KHz samplerate and audio frequencies? Becose its FIR filter,you must wait the whole lenght of pre ringing,and that can I believe in your case and large bit depths like 16 or more bits be very long.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf