That's standard binary from 0 to 5 . Either some 3/4bit BCD -> octal/decimal decoder + your diode logic, or some logic directly. Since designing the logic gates circuit can be quite complex, I would take the BCD -> decimal decoder. You may find some with non-inverted output to avoid the additional output invertors.
Or a trivial code in chinese mini arduino for 2 USD 🙂
Or a trivial code in chinese mini arduino for 2 USD 🙂
Same principle, but that circuit uses BCD to 7-segment decoder, a different IC. You would need BCD to decimal + the diodes. But I did not see any decoder with non-inverted output (while it may likely exist).
IMO the easiest way would be using the cheapest arduino nano with USB serial port for 3USD free shipping from Aliexpress, coding a trivial loop which reads the input pins and based on their value (a few ifs) setting the output M0/M1 pins. There are myriads of examples of such a simple loop online. Programming arduino is trivial with the Arduino IDE and a USB cable. You would just need to measure if 5V or 3.3V arduino were to be used. IMO this would be much easier and faster than hacking logical circuits and diodes.
IMO the easiest way would be using the cheapest arduino nano with USB serial port for 3USD free shipping from Aliexpress, coding a trivial loop which reads the input pins and based on their value (a few ifs) setting the output M0/M1 pins. There are myriads of examples of such a simple loop online. Programming arduino is trivial with the Arduino IDE and a USB cable. You would just need to measure if 5V or 3.3V arduino were to be used. IMO this would be much easier and faster than hacking logical circuits and diodes.
Last edited:
Arduino is an option but I'm worried about noise. The reason I didn't use the OLED display is that it raises 3rd order harmonic by ~5dB. I can't explain why does this happen.
Searching for a decoder I found the one attached. 8 non-inverting outputs -only 6 needed- and 3 inputs, exactly as many as needed. Do you think this would work? Or 4 inputs to 10 outputs -that is decimal isn't it- is mandatory?
Apologies for my naive questions.
Searching for a decoder I found the one attached. 8 non-inverting outputs -only 6 needed- and 3 inputs, exactly as many as needed. Do you think this would work? Or 4 inputs to 10 outputs -that is decimal isn't it- is mandatory?
Apologies for my naive questions.
Attachments
DIY soundcard V.2 build log entry #1.
Single PCB this time, I'm planning to keep it small... and simple. Almost eurocard dimensions -164x98mm- made to fit in the carcass of a Behringer UMC202HD.
The proven circuit together with all possible upgrades occurred to me so far. Progress depends on time and budget. It won't be anytime soon, for sure. Wish me luck!
Single PCB this time, I'm planning to keep it small... and simple. Almost eurocard dimensions -164x98mm- made to fit in the carcass of a Behringer UMC202HD.

Attachments
It's true that I don't remember ever using output "Right". However, I regularly use both inputs for impedance measurements with ARTA Limp and phase linearity with ARTA Steps in "Dual Channel" mode, that's why this button in the center of the soundcard. I have to find out how it's done in REW.
Sure, dual channel is needed, but "Channel 1" and "Channel 2" would make more sense to me than "left" and "right".
Engineer wise, that would be the correct thing to do and it could be addressed on the front panel, but since it's going be used with frequency analyzer software that assume ordinary soundcards, I still would have to remember which channel is right and left to assign them.
And there I was , assembling my new soundcard with great care to detail!
Yeah... But the DC converters were in a different mood. Those SIP4 boosters can be switching at frequencies over 200kHz but for the lower power at 1W. At 3W used here they were ringing at 50kHz spreading havoc all over the place. They were taking down -actually up and down repeatedly- the usb microcontroller. The DIYINHK module proved bullet proof! Unfortunately, I can't tell the same for a precious CS5381... By the time I figured all this, the board had ended up like this
I have already redesigned the PCB for new and better DC converters but before ordering, I will build a functional prototype on this one, no matter how it will look.
Now , the good news! I have verified communication between UCB and ADC/DAC! There's not much to show before the analog buffers are built, but the noise levels are promising!
Moreover, the CS5381 lends naturally M0/M1 combination to work directly with the DIYINHK module. It requires just two wires and auto sampling rate is a fact. No binary decoders, no diode networks. 👍
Yeah... But the DC converters were in a different mood. Those SIP4 boosters can be switching at frequencies over 200kHz but for the lower power at 1W. At 3W used here they were ringing at 50kHz spreading havoc all over the place. They were taking down -actually up and down repeatedly- the usb microcontroller. The DIYINHK module proved bullet proof! Unfortunately, I can't tell the same for a precious CS5381... By the time I figured all this, the board had ended up like this
I have already redesigned the PCB for new and better DC converters but before ordering, I will build a functional prototype on this one, no matter how it will look.
Now , the good news! I have verified communication between UCB and ADC/DAC! There's not much to show before the analog buffers are built, but the noise levels are promising!
Moreover, the CS5381 lends naturally M0/M1 combination to work directly with the DIYINHK module. It requires just two wires and auto sampling rate is a fact. No binary decoders, no diode networks. 👍
Last edited:
Currently, it looks like this.
Quick and dirty soldering, everything is on except the DC converters. The USB module will be sitting directly on pin headers. No more weird ribbons, only two cables for power supply and sampling rate. A missing copper trace from the negative rail regulator to the input opamps resulted to a fried positive regulator. 🤔 Fortunately, the opamps survived. The input stage is copied from the previous version and works as it should. The output stage on the other hand, is experimental and it doesn't beat the humble audio codec straight away. But it is designed to allow some trimming and I'm going to work on this now. Searching for DC converters, I found the XP Power IMM05 but using two of them for +/-15V makes price and space occupation similar to the Mean Well DKM10E-15 used already in the first version and it's great. I won't post schematics before I have the finals. I think I'm close.
Quick and dirty soldering, everything is on except the DC converters. The USB module will be sitting directly on pin headers. No more weird ribbons, only two cables for power supply and sampling rate. A missing copper trace from the negative rail regulator to the input opamps resulted to a fried positive regulator. 🤔 Fortunately, the opamps survived. The input stage is copied from the previous version and works as it should. The output stage on the other hand, is experimental and it doesn't beat the humble audio codec straight away. But it is designed to allow some trimming and I'm going to work on this now. Searching for DC converters, I found the XP Power IMM05 but using two of them for +/-15V makes price and space occupation similar to the Mean Well DKM10E-15 used already in the first version and it's great. I won't post schematics before I have the finals. I think I'm close.
- Home
- Design & Build
- Equipment & Tools
- DIY soundcard intended for measuring amplifiers