Hey folks, newcomer here after being a reader for a few years 👋
I’m working on small DIY DAP (imagine if iPod Shuffle and Shanling M0 had a baby) and after 1st prototype I’m trying to squeeze the best possible performance from the limited PCB space / orientation and will appreciate your help
I did split design into multiple PCBs and arranged them into C-shape - you could see high freq. and audio parts + dimensions marked on the images attached:


I don’t have any experience designing top-notch audio PCBs (or low noise analog in general), so all extra opinions/thoughts are very welcome, but my main questions are:

In overall I want to create end game portable DAP with buttons 😄 So any drops of wisdom from you folks will really help to make it happen! 🙌
I’m working on small DIY DAP (imagine if iPod Shuffle and Shanling M0 had a baby) and after 1st prototype I’m trying to squeeze the best possible performance from the limited PCB space / orientation and will appreciate your help
I did split design into multiple PCBs and arranged them into C-shape - you could see high freq. and audio parts + dimensions marked on the images attached:


I don’t have any experience designing top-notch audio PCBs (or low noise analog in general), so all extra opinions/thoughts are very welcome, but my main questions are:
- I’ve used PCM5102A to just have I2S sound output - but does it make sense to use smth better? I’ve heard that biggest contributor to noise will be the rest of the design and getting better DAC with lower noise floor is not really worth it since the rest of the design won’t be able to go that low.
- What is the best amplification option to squeeze in here considering it will be for headphones only? I don’t drive anything demanding, but having some margin for the future will be useful.
- Any recommendation on analog parts (i.e. using smth else than mlcc caps, any specific manufacturer e.t.c.)? Any examples of best in class PCBs of similar size to learn from?
- If I will route audio signal from amp to jack on another PCB via headers - could that introduce significant extra noise?
- Is common PCB stackup S-G-G-S is okay or I could get extra shielding by using G-S-S-G? Considering that on DAC PCB below analog signal it will be mostly G-G-S-G since I doubt I would need 2 layers for analog part and will just pour 2nd signal as well.
- Will making PCB 0.8mm introduce some extra coupling that will be critical compared to 1.2mm stackup?
- Should I put some shielding on PCB with MCU? Like the ones that could be usually seen on ESP32 modules or on XIAO boards - thin metal enclosure wrapping top layer components to limit noise coupling to DAC PCB. Or it’s just way too far to influence another PCB?
- I plan to use connected ground planes - i.e. no separation between analog and digital. Or it’s a good idea to split them and then connect using ferrite beads and other voodoo magic?
- LDOs are the best choice for portable analog power source, right? Since buck & switching will introduce more noise.
- Using same LDO for DAC and MCU DVDD is okay, right? Only AVDD should have separate LDO to decouple from digital noise.
- Should I do vias stitching if I don't have any wireless onboard? Could that help shield any external noise or it's not an issue unless I add bluetooth.
- I have another option of stackup where PCBs will be on top of each other (”Parallel Stackup” image) - will that couple way too much noise from digital PCB?

In overall I want to create end game portable DAP with buttons 😄 So any drops of wisdom from you folks will really help to make it happen! 🙌
Last edited:
Looks like you are going about this is maybe not such a good way. Seems like there are a lot of assumptions baked into the questions you are asking, but the questions you aren't asking are perhaps the more telling.
How about this instead, show us the just the dac board schematic, and the rough proposed layout of devices that will go on the dac board including the location where power comes in to the board? How would you propose to connect the dac board ground plane to the ground planes of the other boards? Why or why not use any power planes?
Then consider in more general terms how you will isolate the dac both electrically and mechanically from the MCU. How will you manage both radiated and conducted EMI/RFI coupling from the MCU/display/digital storage, etc., to the sensitive analog dac circuitry (also considering that in dacs, clocks are included as sensitive analog circuitry).
Also, please describe your plans for how this will be powered, batteries recharged how and how often (with a wall wart?), data transferred to/from a PC or any other external devices. That's just in case any external connections could introduce noise/interference into the sensitive dac circuitry.
Then once some of the more sensitive circuitry has been thought through sufficiently, the start working from the dac board needs towards more detailed planning of coupling/interaction with the digital circuitry.
Just some thoughts for your consideration, is all.
How about this instead, show us the just the dac board schematic, and the rough proposed layout of devices that will go on the dac board including the location where power comes in to the board? How would you propose to connect the dac board ground plane to the ground planes of the other boards? Why or why not use any power planes?
Then consider in more general terms how you will isolate the dac both electrically and mechanically from the MCU. How will you manage both radiated and conducted EMI/RFI coupling from the MCU/display/digital storage, etc., to the sensitive analog dac circuitry (also considering that in dacs, clocks are included as sensitive analog circuitry).
Also, please describe your plans for how this will be powered, batteries recharged how and how often (with a wall wart?), data transferred to/from a PC or any other external devices. That's just in case any external connections could introduce noise/interference into the sensitive dac circuitry.
Then once some of the more sensitive circuitry has been thought through sufficiently, the start working from the dac board needs towards more detailed planning of coupling/interaction with the digital circuitry.
Just some thoughts for your consideration, is all.
Last edited:
Thanks for the reply Mark! I indeed likely have a lot of wrong assumptions about analog electronics since I coming from the low freq. digital world.
Here is the schematic, but as I did mention it's just a placeholder I've created to finalize software part for the mainboard and to see how it would feel to use in real life - so it's pretty basic and does not even have it's own LDO or any kind of amplification and just drives headphones directly from PCM5102.

I do plan to potentially move connector closer to the digital part and LDOs will be put close to DAC IC as well.
Grounds between PCBs connected via headers that connect boards together.
I didn't think any power planes were necessary - whole device will draw max 1 amp in total so I just routed power using thick enough traces on signal plane.
Power-wise it will be mainly from 14500/10440 battery and won't be used during charging so extra noise during charging is not an issue.
There is no display, so the only high freq part besides MCU is SD card and they are both about 10mm away from DAC PCB, but I'm not sure if that's far enough so no significant coupling will happen? But I'm not sure if that will have a major effect if I will stack PCBs on top of each other instead.
On data transfer - well, I'm thinking about adding a possibility to use it as USB DAC, in that case connection will be made via mainboard that has USB connector, but I'm not really sure if that's the feature I would add since my main usecase is listening on the go.
Does that make sense? If I'm missing smth or things are still not clear - please let me know 🙏
Here is the schematic, but as I did mention it's just a placeholder I've created to finalize software part for the mainboard and to see how it would feel to use in real life - so it's pretty basic and does not even have it's own LDO or any kind of amplification and just drives headphones directly from PCM5102.

I do plan to potentially move connector closer to the digital part and LDOs will be put close to DAC IC as well.
Grounds between PCBs connected via headers that connect boards together.
I didn't think any power planes were necessary - whole device will draw max 1 amp in total so I just routed power using thick enough traces on signal plane.
Power-wise it will be mainly from 14500/10440 battery and won't be used during charging so extra noise during charging is not an issue.
There is no display, so the only high freq part besides MCU is SD card and they are both about 10mm away from DAC PCB, but I'm not sure if that's far enough so no significant coupling will happen? But I'm not sure if that will have a major effect if I will stack PCBs on top of each other instead.
On data transfer - well, I'm thinking about adding a possibility to use it as USB DAC, in that case connection will be made via mainboard that has USB connector, but I'm not really sure if that's the feature I would add since my main usecase is listening on the go.
Does that make sense? If I'm missing smth or things are still not clear - please let me know 🙏
Attachments
Power (and ground) planes are mainly for low noise and low inductance.
https://www.amazon.com/High-Speed-Digital-Design-Handbook/dp/0133957241
https://www.amazon.com/High-Speed-Digital-Design-Handbook/dp/0133957241
A few words about dacs, if I may.
Master clocks should be located pretty much next to the dac chip, even if the particular dac chip doesn't use the MCLK signal. At least you can de-jitter the I2S signals that drive the dac using a reclocking technique. Jitter is a type of analog noise that can cause noise and distortion effects if not reasonably minimized; it is one of the two critical reference signals needed by any DAC or ADC. Same thing for Vref (aka AVCC, or whatever its called in a particular dac), which is the other critical reference signal needed by a dac. In addition, no part of the dac should be on the same voltage regulator as the MCU. Dac voltage regulators should be on the same board and ground plane as the dac chip.
The MCU should be behind isolator chips so that it can send isolated I2S to the dac (and isolated I2C, if needed). Also, isolated MCLK signals can be sent from the dac board to the MCU to act as a reference for the MCU.
Ground planes are necessary for controlled impedance transmission lines of RF signals. Power planes are useful for keeping power rails low impedance and with low voltage noise. Current flows in ground planes are something that should be considered since most unwanted stray coupling when using ground and power planes is magnetic, not electrostatic.
Also, output stages should be located on the same ground plane and same PCB as the dac chip. There should be a clear uninterrupted ground plane path between any I/V opamps (if used) and the dac chip.
There is more about clock switching, powering, bypassing, buffering, etc., but at least the above is maybe some stuff to start thinking about. Also, there is some explanation of a pretty well working clocking scheme shown at: https://www.diyaudio.com/community/threads/general-purpose-dac-clock-board.413001/post-7975729
Master clocks should be located pretty much next to the dac chip, even if the particular dac chip doesn't use the MCLK signal. At least you can de-jitter the I2S signals that drive the dac using a reclocking technique. Jitter is a type of analog noise that can cause noise and distortion effects if not reasonably minimized; it is one of the two critical reference signals needed by any DAC or ADC. Same thing for Vref (aka AVCC, or whatever its called in a particular dac), which is the other critical reference signal needed by a dac. In addition, no part of the dac should be on the same voltage regulator as the MCU. Dac voltage regulators should be on the same board and ground plane as the dac chip.
The MCU should be behind isolator chips so that it can send isolated I2S to the dac (and isolated I2C, if needed). Also, isolated MCLK signals can be sent from the dac board to the MCU to act as a reference for the MCU.
Ground planes are necessary for controlled impedance transmission lines of RF signals. Power planes are useful for keeping power rails low impedance and with low voltage noise. Current flows in ground planes are something that should be considered since most unwanted stray coupling when using ground and power planes is magnetic, not electrostatic.
Also, output stages should be located on the same ground plane and same PCB as the dac chip. There should be a clear uninterrupted ground plane path between any I/V opamps (if used) and the dac chip.
There is more about clock switching, powering, bypassing, buffering, etc., but at least the above is maybe some stuff to start thinking about. Also, there is some explanation of a pretty well working clocking scheme shown at: https://www.diyaudio.com/community/threads/general-purpose-dac-clock-board.413001/post-7975729
Last edited:
Now I will add one more little thought: High speed digital design and dac design are not exactly the same thing. Dacs usually work at lower clock frequencies and have sensitive analog circuitry that is not exactly the same as in high speed digital. With high speed digital we are trying to minimize or prevent data bit errors; with dacs we are trying to minimize analog RF errors which are much, much smaller than would cause a data bit error (at least at the clock frequencies typically used in audio dacs). Also for dacs, IME, linearity of certain aspects of power delivery and timing circuitry can make an audible difference in performance, and do so in ways high speed digital is mostly pretty indifferent to, and or for which high speed digital needs to be optimized in different ways.
So, if you like we can discuss a little more about what I see as some of the important differences between the two approaches.
So, if you like we can discuss a little more about what I see as some of the important differences between the two approaches.
Last edited: