Dealing with DC offset in measurements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Reet
    Senior Member
    • Dec 2007
    • 524

    Dealing with DC offset in measurements

    DC offset in measurements can be very frustrating, I thought I'd open this topic to determine best practices and ask what the recommended solutions are.

    Equipment here is a Motu M4 interface, and sine sweep measurement in ARTA. Motu claims "DC coupled TRS input" so it tends to include more low frequency noise than other AC coupled equipment.

    For the following measurements, I measured with amp, mic, and loopback jig connected to amp output, however no speaker connected to measurement is just background noise. Dual channel sine sweep shows increasing noise towards​ low frequencies, and DC offset is obvious in the impulse view:
    Click image for larger version  Name:	image.png Views:	24 Size:	109.6 KB ID:	927888

    Increasing time scale on the impulse to 2.5s to show the entire measurement, we can see that it is not strictly a DC problem, but a very low frequency wandering noise:
    Click image for larger version  Name:	image.png Views:	20 Size:	22.9 KB ID:	927889

    Single channel measurement of just the mic input, shows no low frequency / DC problem, which is expected:
    Click image for larger version  Name:	image.png Views:	20 Size:	123.3 KB ID:	927890

    Single channel measurement of the reference channel, shows the low frequency problem clearly:
    Click image for larger version  Name:	image.png Views:	20 Size:	11.9 KB ID:	927891

    Zooming out on time scale of the reference input, shows the low frequency information in the reference channel input:
    Click image for larger version  Name:	image.png Views:	20 Size:	9.0 KB ID:	927892

    VituixCAD only shows response down to 5Hz, but using ARTA we can show down to 0.5Hz, to see that there is very low frequency content in the measured signal, even though it starts to roll off at 20Hz:
    Click image for larger version  Name:	image.png Views:	20 Size:	30.1 KB ID:	927893


    Given this low frequency problem with dual channel measurements, the options I have in mind would be:
    • Use "DC offset" checkbox in VituixCAD IR to FR processing, when using sine sweep meausurements
    • Use PN noise measurement instead of sine sweep, to inherently high pass the measured signal.
    • Use multiple measurement averaging to lower noise floor
    • Place a capacitor on the reference channel input to AC couple it.(?)
    Any other ideas, opinions, recommendations are welcome.
    Last edited by Reet; 16 January 2023, 02:13 Monday.
    https://discord.gg/h5SuNKDJfx
  • Nil L
    Member
    • Jul 2021
    • 50

    #2
    The REW author suggests using the 'High Pass Filter' checkbox before measuring in the 'Sound Card' window.

    Comment

    • Reet
      Senior Member
      • Dec 2007
      • 524

      #3
      To be honest I don't have this problem at all with REW, whether high pass is used or not. It may be something about REW's inherent window limiting when using "loopback as cal and timing reference". Additionally, the old REW method of using the loopback channel as timing only, resolves any DC offset since there is not channel normalization. In any case, the high pass feature has very little effect on overall response anyway, providing only 3dB attenuation at 2Hz.Click image for larger version  Name:	image.png Views:	0 Size:	25.1 KB ID:	927907
      https://discord.gg/h5SuNKDJfx

      Comment

      • Reet
        Senior Member
        • Dec 2007
        • 524

        #4
        DC offset is may not be the most accurate description of the problem, DC is only part of the picture, really I am looking to address the high noise floor at low frequencies with a true dual channel measurement. In the measurements above, noise floor at 20Hz is a good 10dB higher in the dual channel measurement vs single channel.
        https://discord.gg/h5SuNKDJfx

        Comment

        • Nil L
          Member
          • Jul 2021
          • 50

          #5
          Originally posted by Reet
          DC offset is may not be the most accurate description of the problem, DC is only part of the picture
          This is true. For a solution, I think you need to follow the tail of the step response. That is, seeing how far the tail differs from zero, apply an adjustment at the beginning of the impulse response. The 2 Hz high pass filter should affect exactly the end of the step response. But I can't check it now.

          Comment

          • Reet
            Senior Member
            • Dec 2007
            • 524

            #6
            I’m still trying to comprehend what the cause is for high noise low frequency noise in dual channel measurement with ARTA especially. Individual measurement of each channel does not show any cause for concern. First thought would be that the noise at each input is not common mode, but even then I would expect a noise increase in the order of 3dB, not 10dB+ and not frequency dependent.
            https://discord.gg/h5SuNKDJfx

            Comment

            • Reet
              Senior Member
              • Dec 2007
              • 524

              #7
              Here's a simple comparison of just background noise floor, measured in ARTA using sine sweep as the test signal, vs PN noise as the test signal, with low frequency cutoff of 20Hz.

              Clearly, the low frequency noise floor is an issue inherent to the sine sweep test signal.
              Click image for larger version

Name:	image.png
Views:	182
Size:	32.3 KB
ID:	927924
              https://discord.gg/h5SuNKDJfx

              Comment

              • Nil L
                Member
                • Jul 2021
                • 50

                #8
                Originally posted by Reet

                Clearly, the low frequency noise floor is an issue inherent to the sine sweep test signal.
                There are noises that the sound card picks up, from the fact that there are switching power supplies around, mains interference, or something else.

                Comment

                • Reet
                  Senior Member
                  • Dec 2007
                  • 524

                  #9
                  Originally posted by Nil L

                  There are noises that the sound card picks up, from the fact that there are switching power supplies around, mains interference, or something else.
                  For above test, reference channel level was set about -10dBFS, SNR on reference input is very high, clean signal. Mic input measuring background noise only, in this case it is mostly my PC fans, however this is only true when using PN noise as the test signal, yellow trace in my previous post. I can easily show that the Motu M4 has a very low noise floor, with no influence from mains interference or other nearby electrical noise

                  Perhaps this is more of a question for the ARTA developer, as to why there is such a difference in noise floor between the different signal methods.
                  https://discord.gg/h5SuNKDJfx

                  Comment

                  • Nil L
                    Member
                    • Jul 2021
                    • 50

                    #10
                    Originally posted by Reet
                    Perhaps this is more of a question for the ARTA developer, as to why there is such a difference in noise floor between the different signal methods.
                    I once asked myself similar questions when I started working with ARTA. But in parallel, I did something in REW. Then the desire to do something in ARTA completely disappeared. Because REW gives all the possibilities better visually, more precisely, more conveniently. Plus constant development.

                    Comment

                    • Reet
                      Senior Member
                      • Dec 2007
                      • 524

                      #11
                      Only recently has REW offered a true dual channel measurement capability, and even then is still requiring some bug fixes. Maybe next version will be perfect in this regard. Personal preference, but I'm not a huge fan of REW's UI. Too much flipping back and forth between windows and tabs to get the information I need. I also don't agree with the way phase is represented in REW, it's quite annoying to have to shift the measurement to t=0 to remove time of flight from the measurement from the phase data. But, I guess every software has it's pros and cons, and John Mulcahy has been open to new ideas and changes, as long as the implementation isn't overly complex. It sounds like he has a lot of features on the long term to-do list.

                      For now, I will just make a point to use PN noise signal with ARTA for maximum SNR,
                      https://discord.gg/h5SuNKDJfx

                      Comment

                      • Reet
                        Senior Member
                        • Dec 2007
                        • 524

                        #12
                        The ARTA developer unfortunately has not provided much constructive feedback on this matter. Until proven otherwise, I've decided that ARTA has a bug with what it's doing for response normalization in a dual channel sine sweep measurement.

                        Last comparison, remove the mic from the equation. Here is a loopback measurement, through my amp and ARTA jig, but no mic connected, measurement input is open circuit.
                        Cyan - Dual channel sine sweep, open input, reference -10dBFS
                        Yellow - Single channel sine sweep, open input for noise floor of equipment only
                        Green - Dual channel periodic noise, open input, reference -10dBFS
                        Yes, that’s a 30dB+ difference at 20Hz​

                        Click image for larger version  Name:	image.png Views:	0 Size:	35.3 KB ID:	928087
                        https://discord.gg/h5SuNKDJfx

                        Comment

                        • Reet
                          Senior Member
                          • Dec 2007
                          • 524

                          #13
                          The worst part of the dual channel sine sweep is that the noise floor result is not consistent, you can run the same measurement 10 times and get 10 different results, while any other measurement method is very consistent. I've verified my Motu is not at fault either, same behaviour can be observed with my PC onboard audio, and it's easy enough for anyone here to try for themselves.
                          https://discord.gg/h5SuNKDJfx

                          Comment

                          • Nil L
                            Member
                            • Jul 2021
                            • 50

                            #14
                            I have two questions for you.
                            1. When an inductor, capacitor or resistor is soldered onto the board, does it make a difference for you whether to solder the beginning or end of the passive element to the plus (input)?
                            2. Draw, please, how the measuring circuit of a full two-channel measurement looks like.​

                            Comment

                            • Reet
                              Senior Member
                              • Dec 2007
                              • 524

                              #15
                              Originally posted by Nil L
                              I have two questions for you.
                              1. When an inductor, capacitor or resistor is soldered onto the board, does it make a difference for you whether to solder the beginning or end of the passive element to the plus (input)?
                              Huh?
                              Originally posted by Nil L
                              2. Draw, please, how the measuring circuit of a full two-channel measurement looks like.​
                              Here's a schematic for a simple dual channel measurement jig, which can be used with ARTA, REW, or SoundEasy.

                              https://discord.gg/h5SuNKDJfx

                              Comment

                              • Reet
                                Senior Member
                                • Dec 2007
                                • 524

                                #16
                                On this DC offset problem, I posted in the ARTA thread at DIYAudio, and Ivo (ARTA developer) was able to reproduce the problem with one of his audio interfaces, so it is being looked into. Solution for now is to avoid sine sweep for both high noise floor and poor repeatability, periodic noise works very well.
                                https://discord.gg/h5SuNKDJfx

                                Comment

                                • Nil L
                                  Member
                                  • Jul 2021
                                  • 50

                                  #17
                                  The cirquit for a full two-channel measurement is the one that Kimmo got from REW help, which he provides in his REW measurement manual. Yes?

                                  Comment

                                  • Reet
                                    Senior Member
                                    • Dec 2007
                                    • 524

                                    #18
                                    Click image for larger version  Name:	image.png Views:	0 Size:	8.8 KB ID:	928414

                                    For the jig, amp output connects to jig input, jig reference output connects to audio interface input.

                                    For analysis of audio interface only for this thread topic, "semi-dual" configuration is used, so reference loopback is just patch cable from interface output to input:
                                    Click image for larger version  Name:	image.png Views:	0 Size:	25.7 KB ID:	928415

                                    These images in VituixCAD measurement guides are all copied from the ARTA manual, btw.I use different resistor values than ARTA manual, but that's of no significance here.

                                    https://discord.gg/h5SuNKDJfx

                                    Comment

                                    • Nil L
                                      Member
                                      • Jul 2021
                                      • 50

                                      #19
                                      Thank you. I doubted. But it turned out I always used a fully dual-channel measurement.

                                      Comment

                                      • Reet
                                        Senior Member
                                        • Dec 2007
                                        • 524

                                        #20
                                        Not that it matters much, but if REW has been your software of choice, previous versions with "loopback as timing reference" as the only option throws away most of the benefit of a full dual channel measurement, since the loopback is used for a timing reference only. In this case you might as well use simple patch cable "semi-dual" configuration in that scenario, which is what previous REW measurement guide had detailed.
                                        https://discord.gg/h5SuNKDJfx

                                        Comment

                                        • Nil L
                                          Member
                                          • Jul 2021
                                          • 50

                                          #21
                                          I took measurements with a loop, but from one output of the sound card there was a Y-cable to the amplifier and to the input of the card. Whereas many use two card outputs - one for the loop, the other for the amplifier. Several drivers belonging to one speaker were measured. Then I took measurements with acoustic synchronization of the same drivers. Both options loaded into VituixCad. I didn't notice the difference. Therefore, I still do not understand why loop synchronization is needed. Unless John changed something in the processing of measurement data in the latest versions.

                                          Comment

                                          • Reet
                                            Senior Member
                                            • Dec 2007
                                            • 524

                                            #22
                                            "Semi-dual".
                                            https://discord.gg/h5SuNKDJfx

                                            Comment

                                            • Reet
                                              Senior Member
                                              • Dec 2007
                                              • 524

                                              #23
                                              New ARTA release fixes this problem for the most part.
                                              February, 2, 2023; ARTA software version 1.9.6 is published.
                                              • Measurement with swept-sine signal in dual channel mode is improved by better control of sub-audio noise.
                                              • Several small bugs are corrected
                                              • This version no longer works in Windows XP

                                              Note: To download ArtaSetup196.exe you will have to choose left download menu, then twice choose See more and Keep options.
                                              Microsoft just need few days to approve download.

                                              Ivo​
                                              https://discord.gg/h5SuNKDJfx

                                              Comment

                                              Working...
                                              Searching...Please wait.
                                              An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                                              Please push the back button and reload the previous window.'
                                              An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                                              Please push the back button and reload the previous window.'
                                              An internal error has occurred and the module cannot be displayed.
                                              There are no results that meet this criteria.
                                              Search Result for "|||"