I just finished a compact Zynthinan build using a GY-PCM1502 DAC module and it’s working great! Now I want to add a stereo audio input and wonder if anyone has done this before or has suggestions for hardware. I can always just switch over to using a HiFiBerry DAC+ADC but I’d like to know first if there is an ADC that can be easily used with the 5102. I hope to make this self-contained and not use an external USB sound card.
Excuse me if this has already been addressed but I wasn’t able find anything in a search. Thanks for any suggestions.
Hi @soundscape! Welcome to ZynthianLand. I think you will find the inhabitants mostly harmless.
The PCM1502 is a DAC, i.e. audio output only. Zynthian uses Jack Audio Connection Kit (JACK) for its audio interface layer. JACK depends on a single audio interface for its timing. Adding a separate ADC would not work (well) with JACK as there would be two, unsynchronised audio interfaces and JACK would be configured for just one of them. It is technically possible to use a JACK extension to add more audio interfaces but this adds processing overhead because JACK needs to samplerate convert for the other interfaces. (Zynthian headphone output is done this way.) I too started with a similar DAC and worked for some time without audio input but then got a Zynthian with input and output and haven’t looked back! I would recommend connecting an audio interface / soundcard that provides the quantity of inputs and outputs you require. That can be via the I2S interface, e.g. HifiBerry or via USB, e.g. UCM1820. (Note that I give the Behringer example because I have one and it adds lots of inputs and outputs.)
Hi @riban ! Thanks for the quick reaction. I was afraid that would be the case. Since I want to make it all work inside the box that I’m building, I’ll try the HiFiBerry route. The UCM1820 is great, but I only need one stereo input/output and want to make this compact. I did consider using the Behringer UCA222 but that has too much undesireable latency. Thanks for saving me hours (days, months) of time screwing around with something that I would probably never get to work well!
You mentioned a “compact” Zynthian, for a minimal cost and size design I have used the “Audio Injector Zero” which uses an 8731 portable consumer product Codec with builtin headphone driver (There is a Zynthian driver for it) , while not studio grade the 24 bit snd specs look OK. The standard size Injector has RCA connectors and 2 potentiometers mounted on board, the zero has external connectors providing more flexible mounting options. (They have a crystal so jitter may not be too bad) https://www.audioinjector.net/
Waveshare has a similar board with a chip that driver speakers, on Amazon for $21.90, (I can’t say if Zynthian knows it) seems to be Alexa box oriented, It has a pair of microphones, and perhaps lacking input connectors,.
Hi @maxmaxis ! Thanks for your help. I considered the Zero Soundcard as an altenative and placed an order for one earlier this week but don’t know how long it will take to arrive in the US. It will be nice if it works becasue it is so compact. The one on Amazon looks like it will be more work than I want to get into. I don’t see any way to inject the audio short of intercepting the traces to the microphones and dealing with a probable impedance mismatch. Then the outputs will need to be attenuated. Can possibly work, but it’s not an easy solution. I think it may be best to just order the HiFiBerry for $50 and be done with it! Amazon.com
I really do appreciate your help!
I’ve made a test a while ago but I didn’t get it to work together as expected (input interface was not seen). These two boards don’t come with any built in crystal so it could have been some clock sync problem.
Haha! It’s tempting to think about building this, but my family would never forgive me for the time it would take … When you add in freight, time spent and frustration, the HiFiBerry seems like the most cost effective solution!
Yes, the Daisy does have considerable resource, but much of it is beyond my programming skills. I have been able to load up some of their examples and make small mods, but programming anything from scratch on it is above my pay grade! I even built a [PedalPCB] Terrarium interface (Terrarium - PedalPCB.com) but got lost trying to program some of the controls. Lots of potential.