diyAudio

diyAudio (https://www.diyaudio.com/forums/index.php)
-   Equipment & Tools (https://www.diyaudio.com/forums/equipment-and-tools/)
-   -   DIY soundcard intended for measuring amplifiers (https://www.diyaudio.com/forums/equipment-and-tools/363385-diy-soundcard-intended-measuring-amplifiers.html)

MagicBus 22nd November 2020 01:06 PM

DIY soundcard intended for measuring amplifiers
 
4 Attachment(s)
I've been working on this for about a year and still incomplete but almost done. I couldn't hold myself to post some first pics.



Actually, it has been quite some time I'm fooling around low cost soundcards trying to modify them for improved performance. What strikes me is that although manufacturers don't hesitate to use top class chips, the overall performance is compromised by design. For example the power supply even if it's not the USB Vbus, it will be just a small external wall wart. Another problem is the necessity for a user friendly front panel which leads to a messy PCB layout. And then it comes the copyright war forcing companies to adopt proprietary solutions especially in the software domain, causing even instability issues in some cases. Most of the time I came to think what if app notes were followed to the letter but this would take a complete redesign from scratch. Eventually it happened.:)



I rush to catch up any queries. This is not meant to be a giant killer. In fact, I deliberately stayed within limited bandwidth and dynamic range to avoid meeting spooky shadows. The target was the low to mid cost commercial soundcards. That said, it costs more than a Focusrite Scarlet to build :o and one might think that it doesn't manage any better. But all these products need some kind of input protection and usually adding that will also add THD+N. So, my soundcard is ready to accept an amplifiers output, the loop measurement are taken on these inputs and the total cost is much less than a soundcard-input interface combo.:up: And it's mine, which is priceless...


About specifications: Two channels -stereo- full balanced I/O. Input impedance 100k. Input sensitivity for 0dBFS 1,5Vrms differential. Input protection for 400VDC. Also it should be OK for 100Vp AC but I haven't tested that. Output can drive most usual loads with a max 2,6Vrms differential. Full duplex up to 192kHz/24bit, but usable only at 48kHz with ARTA, REW and the alike.


Still on the bench, I expect a little more improvement when I put it in the box. I verified that at least for the 50Hz noise. Lock down delays but it shouldn't take long more. I'll share all schematics and gerber files for anyone who needs something like that and can build it.

Vovk Z 22nd November 2020 01:35 PM

Very well, I think (moreover with high-voltage input capability).

MagicBus 22nd November 2020 03:29 PM

Thanks! A few more general info. The design is based strictly on app. notes and realized with free software. So, there were some restrictions regarding the PCB complexity. That's why I split it to three decks keeping dimensions at 100x100mm to take advantage of the PCB manufacturers' offers. Consequently, the connectors/switches layout is a bit shrunk but I have no problem to use them. I tried to minimize SMD parts only to a few chips. The rest is THT parts. Finally, it needs a USB to I2S input and output converter which is not my design.

knutn 22nd November 2020 04:35 PM

Which inputs and outputs are available?

MagicBus 22nd November 2020 04:58 PM

I assume you're asking about the USB interface and that's a good question. I'm using a DIYINHK module that I purchased in the early summer. I can't find the exact model in their catalogue but its pretty similar to this only mine has a "B" type USB port. XMOS Multichannel high-quality USB to/from I2S/DSD SPDIF PCB - DIYINHK When I was searching for this I couldn't find much alternatives, but I remember there was another module from MiniDSP which I can't find now.

MagicBus 22nd November 2020 07:51 PM

So, it might be useful to start from the USB interface. Not much to say about that... Being completely unable to write code I tried to copy a commercial design with no luck. Behringer UMC 202HD for measurements Then I had to find out how to use the DIYINHK module. You can read here for some laughs!:D CS4272 stuck in power down mode The good thing -if at all- is that only I2S is needed, not I2C. That means there are no auto functions, even sampling rate is set manually with a rotary switch. It works fine for me and it makes things a lot easier to cooperate with any USB interface. Commercial or DIY... but I can't help with that.


EDIT: I found the MiniDSP module MCHStreamer - USB Audio Swiss-Army knife - Multichannel PCM/DSD/PDM/ADAT/TDM/SPDIF interface

knutn 22nd November 2020 08:24 PM

That's very good, looking forward to more details.
Do you have any plans to sell the necessary PCBs?

MagicBus 22nd November 2020 08:46 PM

I'll share all details and PCB gerber files to order your copies.

MagicBus 22nd November 2020 10:01 PM

Construction part I: the PSU (lower deck)
 
3 Attachment(s)
As the circuit was growing up, it was clear that the USB Vbus wouldn't suffice. Of course there are DC boosters but the current consumption could not be supported even if two USB ports were occupied. So, I went for a proper linear psu. A 2x12 toroid with magnetic shield to bridge rectifier and capacitor bank. I managed to squeeze some bigger than the original thought at the bottom of the PCB. Then it splits to regulators for 3,3V, 5V +/-8V and +/-12V. Full LT3042/94 job. I can't tell if this is an unnecessary overkill. Maybe plain LM78xx could do it. I just wanted to keep this factor out of the equation. Big words. Those little bugs are said to be very itchy... That's why I didn't use those modules found here and there despite that it would be easier and cheaper. I tried to follow the datasheet recommendations and crossed fingers. If anything else, this thing can measure itself for noise...


The PCB layout seems a bit awkward. That's because I placed each regulator right under the chip it feeds on the next deck to eliminate power rails. It is connected with pin headers. An easy way to align them is to use the long pins type, put them in place -male to the lower deck, female to the next- and press gently the boards to sit on the 12mm metal spacers. Then solder everything and cut the remainings of the pins at the bottom.



I attach the schematic. I used 50ppm metal film resistors and X7R MLCC caps. Two of the regulators are not on this PCB but on the top one. Also attached gerber files.

MagicBus 23rd November 2020 09:28 AM

Construction part II: AudioCodec and buffers (mid deck)
 
7 Attachment(s)
CS4272 configured in stand alone mode. Sampling rate set with a 2pole/4pos rotary switch. Everything is on the schematic. Connects to the USB module with a 2x8 pin header. This is not very straightforward. Use the PCB markings to find your way. I attach a photo of this. Each line needs a gnd pair and the total length should not exceed 10cm. Except the loose wires which are taking M0/M1 to the rotary switch together with 3,3V and gnd and RST to a button , the only things wired off board on the front panel.


The output stage is taken from CS4272 datasheet. I only increased the electrolytic caps C29/30 to extend the low frequency roll off. Then it goes to a 20k pot salvaged from my UMC202. Poor donor... But I'll always remember it as the final and most important step before I jump on this project! For special parts I'll make a small BoM in another post. After the pot there is a necessary buffer and then the balanced drivers. I used THAT1646 but DRV134 will do fine. These drivers are not on this deck but on the top one.


The input stage was the real challenge! Actually, you are looking at the PCB v.3. I tried a few schemes. The opa1632 was there from the beginning. There is an app note on the datasheet right on spot. I just copied that. The problem with ADC buffers are their input or antialiasing caps, a heavy load for opamps. Here's a good read: Op Amps Driving Capacitive Loads | Analog Devices Theoretically, every opamp could be compensated but there will be an impact on performance. OPA1632 does fine in this position. But alone is not able to hold a high impedance attenuator plus overvoltage protection. I tried a few buffers (opamps and INA) with the pots in SE and balanced -U shape if you prefer- configuration. Attached is the scheme that works best. The attenuator is a 4gang pot. I don't like the stepped switches as they won't allow for fine adjustment to 0dBFS.



About the input protection scheme. I hope I did something meaningful here. The incandescent lamps draw 5mA already at 9V. Anyway, they should hold some defense. The input caps are on the top deck. There also diode clamps at the ADC input because the opa1632 can swing a lot more that absolute max. However, there are no current limiters here. I thought the positive rail can do hardly 1V on the diodes and the negative rail sinks to gnd. Please check sanity.:p



Vcom comes from a voltage divider to a DC buffer. Do not use the Vcom from the CS4272 for this job. It doesn't like it at all! Bypass this with 1μF and leave it alone.



Gerber files attached.


All times are GMT. The time now is 07:00 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 17.65%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Copyright ©1999-2021 diyAudio

Wiki