Friday, May 4, 2018

More Measurements of MOTU Microbook and Millet's Soundcard Interface

I've got some progress playing with ARTA and harnessing Windows:

  1. Figured out how to operate the Microbook on Windows at 96 kHz sampling rate—just use ASIO drivers instead of WDM. I guess, that's actually MOTU's fault—their WDM driver only allows selecting 96 kHz mode for playback, but not for recording.
  2. Learned about averaging option in ARTA when doing spectrum analysis measurements—it helps to "thin out" plotting of the noise level. On the graphs from the previous post the noise level was depicted rather thick making it harder to get the figure in dB.
  3. Learned about "two channel mode" for frequency response measurements. In this mode one channel is used as a "reference", and this allows "subtracting" the transfer function of the sound card while measuring the frequency response of the device under test through the second channel of the card.
  4. And the frequency response can be measured even better with STEPS—another program from the ARTA package that uses modulated sine signals instead of periodic noise (although, this measurement takes substantially more time.)

I tried following the measurement procedures of NwAvGuy in his posts about audio interfaces and headphone amplifiers. He used Prism dScope, and it's interesting to compare its capabilities with the ones of my hobbyist tools.

MOTU Microbook IIc Loopback

Once again, I retested the loopback between Microbook's unbalanced line output and balanced line in. I used this combination because the devices that I plan to test have unbalanced (RCA) inputs, hence unbalanced line out needs to be used. While Millet's Soundcard Interface has balanced connections to the sound card. So the output needs to be unbalanced, and the input balanced.

Another reason is that the balanced line input has more headroom, and it's impossible to overload it while driving from the unbalanced out.

THD

I started with THD. It can be measured with ARTA and STEPS. With ARTA, it's only possible to test one frequency at a time. Here are measurements at 0 dBFS for 20 Hz, 1 kHz, and 20 kHz. All the measurements were done with 96 kHz sampling rate:

As I mentioned above, I started using averaging as it thins down the noise plot, so we can see the noise floor more clearly.

The balanced input has 10 dB of headroom, so any distortion products that we see are likely caused by the line output. It's also interesting that all graphs show a small noise bump between 2 and 3 kHz.

This is full noise profile obtained with STEPS. There I had to limit the test signal to -3 dBFS because otherwise it was overloading the output:

This agrees with the results from ARTA—the level of distortions is lowest at the midrange, slightly higher at bass frequencies, and raises steadily at high frequencies.

Noise

For measuring noise I used NwAvGuys technique of playing a very low level test signal—1 kHz at -115 dBFS:

Starting from 400 Hz the level of noise is mostly below -140 dBFS. The strange peak between 2 and 3 kHz can be seen again.

IMD

I used both CCIF and SMTPE methods, as ARTA provides both. CCIF at 0 dBFS was giving a lot of distortions which were gone at -1 dBFS, but I decided to stay at -3 dBFS for consistency with other measurements:

SMTPE IMD at 0 dBFS (not shown) is also a bit worse than at -3 dBFS but not so radically as with CCIF test signal.

Frequency Response

ARTA and STEPS show a bit different curves:

As we can see, STEPS curve has less steeper rolloff at high frequencies. The STEPS manual says that FR measurements done with its method are more precise than the measurements using periodic noise. If we zoom in the STEPS curve we can see a small bump of the antialiasing filter, but it's smaller than at 48 kHz sampling rate—it wasn't even visible on the previous graph:

To me, the FR measured by STEPS is more realistic. It also looks similar to what John Reekie published in HiFiZine.

What I Did Not Measure

NwAvGuy also provided measurments for inter-channel crosstalk and DAC jitter. ARTA doesn't provide a measurement mode for the former, so I've attempted to measure crosstalk by cris-crossing the output lines. This way any inter-channel leaking of the test signal would show up on the measured channel. But the results are very different between ARTA and STEPS so I decided to study more about how to perform it correctly.

As for jitter, ARTA does measure it, but I'm not sure how to measure jitter for 96 kHz sampling rate. Usually jitter is measured with a sine signal of 1/4th of the sampling rate. But for 96 kHz this would be 24 kHz, and as as we have seen from THD measurements Microbook has somewhat high distortion at high frequencies. So I will also read more about how to perform this measurement correctly.

I also did not attempt doing time domain measurements, e.g. the square wave test. Will try next time.

P. Millet's Soundcard Interface

And now some re-measurements of my Soundcard Interface (SCI), this time made at 96 kHz sampling rate and with both ARTA and STEPS, so they are directly comparable to the MOTU loopback measurements.

For the measurements, the left channel of MOTU's unbalanced line output was connected to the SCI's BNC input, grounded. The SCI input sensitivity was set to 2V setting. SCI was powered from an USB power bank to avoid creating a ground loop.

THD

Same method as was used for MOTU loopback:

As we can see from the RMS figures, SCI attenuates the signal by almost 6 dB. It could be the reason why the bump between 2 and 3 kHz originally seen on MOTU loopback measurements is almost gone. If so, then it must be an artifact of MOTU's line in.

Here is a full THD profile obtained with STEPS:

The differences THD between MOTU loopback and SCI are quite small (which is good!), see the summary table at the end of the post.

Noise

I also measured noise by sending 1 kHz test signal at -115 dBFS:

Although, I forgot to zoom the graph in before taking the hard copy. But even at this scale, it can be seen that comparing to MOTU loopback, it is higher by about 5 dB starting from 200 Hz. Overall, the profile is quite even, and there are no problems at 60 Hz.

IMD

The signal level was at -3 dBFS to avoid any distortions from the MOTU's out:

Frequency Response

I used both ARTA and STEPS in two channel mode. The reference channel was a direct loopback from MOTU's line out to in, thus the obtained frequency response is not affected by MOTU's not so ideal characteristics. ARTA and STEPS have produced quite similar curve for SCI's FR, so here is the one from STEPS as it is less fuzzy:

Measurements Summary

So let's compare the numbers from MOTU loopback and SCI measurements:

MOTU SCI
Frequency Response 20 Hz to 20 kHz +/- 0.98 dB +/- 0.06 dB
THD 1 kHz 0.00058% 0.00067%
THD 20 Hz 0.0015% 0.0048%
THD 20 kHz 0.035% 0.025%
IMD CCIF -3 dBFS 0.022% 0.016%
IMD SMTPE -3 dBFS 0.0048% 0.0036%
Noise (unweighted) at 96 kHz SR -101.3 dBFS -96.5 dBFS

As we can see, the main drawback of SCI is the increase of the noise floor by about 5 dB. Note that the high noise figures are mostly due to the low frequency range. Above 200 Hz both MOTU and SCI are quite good. Although, specialized measurement frontends like affordable Quant Asylum QA401 have much more even noise floor across the entire measurement range.

Monday, April 23, 2018

Making friends with Windows and ARTA

New Laptop

The Macbook Air I was previously using for my personal projects is now retired. I have brought it to the office for playing music from local files and streaming services through equalization and crossfeed plugins. That's an interesting topic on its own, and I will do a post about it some time later.

I decided that my new laptop needs to run Windows, because it seems to be the operating system of choice for audio engineers. Indeed, on Mac I had to use FuzzMeasure and REW which are designed primarily for acoustical measurements. Whereas for PCs there are plenty of software packages for electrical audio measurements that work with regular sound cards. Potentially, one can run them on Mac via emulation, but my attempts of trying that usually resulted in crashes and hangs.

While looking for Windows laptop I faced the harsh truth—Macbooks are such a good laptops that finding a matching Windows machine is a challenge. The usual weak point is quality of screens and touchpads. After considering several cheaper laptop models I decided to bite the bullet and buy Lenovo X1 Carbon, 5th generation. I have a 4th generation Carbon as company-provided Linux laptop, and I almost enjoy it for its small weight and durability. "Almost" due to the touchpad—it's not very good. In fact, I prefer to use the "red dot" joystick controller instead.

In comparison with the 4th generation, its successor adds a high resolution screen, USB-C ports, and newer Intel chipsets. The touchpad is also a bit better. And the laptops are now available in silver body color in addition to the classic black.

Here it is. It is even lighter than Macbook Air, and the screen is better—the bezels are very thin, and the resolution is impressive 2550 x 1440 on a 14" diagonal (the 27" monitors I have at my office use the same resolution). The IPS matrix provides very wide viewing angles. 5th gen Carbon even beats Apple laptops in connectivity as it has both USB-A and USB-C type ports, and HDMI.

From the hardware design point of view the only annoying thing is the absence of a notch on the lower part of the body, which makes it hard to open the laptop's lid using one hand only—the habit I earned over the years of using MB Air. In fact, opening the lid even using two hands is not that comfortable because the the material that the body is made of is a bit slippery.

But the most annoying feature in the new laptop is the operating system. Carbon comes with Windows 7 Pro preinstalled and I decided not to upgrade it to Windows 10 yet because I was hoping that I could use my old E-MU cards: Tracker Pre and 0404 (they are not fully USB Audio compatible, and Creative Labs eventually has stopped releasing new drivers for them.) Windows 7 feels complicated and cumbersome even compared to modern Linux graphical desktops, let alone Macs.

Speaking of E-MU drivers, Creative Labs has abandoned them in beta status for Windows 7 64-bit, and it really shows itself. I can configure the cards, but when trying to use audio analyzer apps the system hangs.

Windows Audio Analyzers

I tried ARTA, AudioTester, and the package from Virtins. AudioTester looks a bit outdated, and it wasn't stable enough. The MultiInstrument package from Virtins seems to be designed more like an oscilloscope replacement. ARTA appeared as the best choice—it was easy enough to figure out how to make the measurements I needed even without the manual, and when I looked into the manual I was pleasantly astonished that descriptions of all measurements are accompanied with the underlying DSP theory.

The only thing I haven't yet figured out completely (and it seems more like a problem with Windows 7 rather than with ARTA) is how to use my MOTU Microbook IIc with 96 kHz sampling rate. So by far, I was making all my measurements in 48 kHz mode.

Some Measurements

MOTU Line Out to Line In Loopback

I started with a simple loopback from MOTU's unbalanced Line Out to its balanced Line In. I used unbalanced out because this is the out I can use throughout the entire experiment (not all amplifiers have a balanced line in.) I shorted the balanced cold input (ring on TRS) to the ground—this was resulting in less noise than leaving it floating. The laptop was running on battery. This is how THD, IMD, and Frequency response (FR) graphs of the loopback connection look like:

This is what I was expecting. The FR has slight bass rolloff and a small bump from the antialiasing filter—the same thing I observed on Mac with FuzzMeasure. The levels of noise and distortions are very low which confirms that this MOTU card is a good choice for hobbyist measurements. The 2nd and 3rd harmonics can be seen on the THD graph, but their level is very low.

Soundcard Interface Loopback

Now these are measurements of a loopback through P. Millet's Soundcard Interface (SCI). I have connected MOTU's unbalanced line out to SCI's input, ground referenced. SCI's input range was set to 2 V. I powered SCI from the second USB-A port of my laptop. Potentially, this could introduce a ground loop noise, but it didn't—the ground loop noise usually looks like a spike at 60 Hz as we will see later.

Here the overall noise floor has raised by about 10 dB, but it's interesting that the 2nd and 3rd harmonics have disappeared. Since the input level is the same, perhaps they were resulting from a slight overloading of MOTU's Line Out. The frequency response didn't change compared to MOTU loopback.

From these measurements I can conclude that Mr. Millet has created a highly transparent device. Hopefully, my extensive efforts on making a properly shielded and grounded case also have helped.

The next thing I have tried was using different power sources for the SCI: a USB power bank, the USB-C ports of laptop, and a multi-voltage switching power supply. The power bank is as clean as USB-A, and for the last two sources the results are below:

As we can see, the USB-C port indeed creates a ground loop (note the spike at 60 Hz and its harmonics), and the wall power supply is the worst.

SPL Phonitor Mini

Next step—try SPL Phonitor Mini. I have connected MOTU's unbalanced Line Out to Phonitor's unbalanced inputs, then connected the dummy headphone load I've made a long time ago to Phonitor's output via my T-Cable. Then using a BNC to banana males I have connected needle multimeter probes to the T-Cable's outlet. This way I have created a parallel connection for the Soundcard Interface to the dummy load.

I have set the dummy load to 33 Ohms, and turned up Phonitor's volume until the reading on the SCI was showing 1 V. The signal level in ARTA for the 1 kHz sine was showing the same RMS value as in my previous experiment. So now we can directly compare to SCI's loopback.

The level of noise remains the same—I think, Phonitor's noise level is lower than SCI's. There are more harmonics seen, this is expected for a power amplifier, so the overall THD numbers have raised. The frequency response didn't change compared to original MOTU Loopback measurement which means Phonitor has a flat response.

MOTU's Headphone Output

Now if we want to distinguish between a good and a bad headphone amplifier, let's measure the headphone output on the MOTU Microbook. Here we see much more distortions. Also, even on the maximum volume, MOTU's headphone output could only deliver 0.65 V into the same 33 Ohms load, whereas Phonitor while delivering 1 V wasn't even in the middle of its volume knob range.

So here we can see a rolloff of high frequencies and more distortions. Also, for some reason there is some noise at 60 Hz, with harmonics, although SCI was powered from a power bank, so there was no loop connection through laptop's USB ports, and the laptop was on battery power.

Conclusions

I don't regret I've switched to a Windows laptop from a Macbook because indeed there are far more audio engineering applications. I have only done very simple tests so far, and I'm excited about the possibilities this setup had opened.

Monday, April 9, 2018

Peter Millet's Soundcard Interface, Part 2

Lots of things happened while assembling my Millet's Soundcard Interface. First, I discovered that the voltage mode switch can be restricted to the required 4 positions by inserting small metal bits that came with it into the holes around the shaft. This is where they need to go:

If you misplace the bit, use a magnet to pull it out. After inserting the bits, cover the front side of the switch with the metallic sticker that came with it.

While finding the right places for the bits I was turning the unit on and off frequently and managed to break the power switch. I had to solder the switch out—tough task, as it has 8 pins in total, and then solder back a replacement. Fortunately, the board continued to work as before.

By this time, Mumetal sheets have arrived and I started covering the inside of the box with them. As a reminder, Mumetal is an alloy that offers shielding from magnetic fields. There was one problem—there are round mounting studs on the inside of the box so I had to make holes in Mumetal. Doing that with a drill has turned out to be impossible—the metal is very thin, and the drill was just tearing it.

I've found that the diameter of the mounting studs is the same as in a standard paper puncher. However, the holes had to be done very far from the edges. So I had to cut the Mumetal sheet into smaller pieces:

This, of course had made the coverage to be non-continuous. In order to restore it, I glued strips of Mumetal over the stitches, and then made solder connections between the strips and the sheets under them (I used an old style lead solder for that.)

This way, I've got a solid shield with close to zero resistance which made an excellent chassis ground. One thing that was left to do is to connect the board's signal ground to it. As a connection point, I've chosen one of the outbound ground legs of the Murata DC/DC converter—so the connection is as close to the power input as possible. It is also convenient that the converter is on the edge of the board, so I could use a very short wire between the it and the side wall of the box:

I've checked that there is indeed a low resistance path between the balanced input ground pins and the Mumetal walls. Note that all this shielding didn't help to bring down the "zero level" of the device as I was hoping.