• Welcome to ASR. There are many reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured for free!

Introducing DSPi | A powerful, user friendly and open source DSP for less than a cup of coffee

I think it's a good idea for @Kingsnake to make sure his boards work first if he ordered them - just to ensure the files I posted at Github are what I think they are. The gerbers came from JLCPCB (the last build I did) but the pick and place and bom were generated by the design app when I posted the Github files.

As for the additional testing and stuff... I did a bunch of tests but only saved the usual characteristic tests. I stopped the test at 0.9VRMS because

a) the usual voltage test level is spec'ed at -1 dBFs (I used -1 dBV)
b) I was worried about DSPi and Windows clipping the signal since essentially all volumes have to be set full on to hit 2VRMS
c) the QA403 test box has a hard input limit of 1VRMS at the lowest noise - to measure 2V raises the measurement noise 6dB and lowers the measured SN ratio and the board is so good that it's hitting the QA403 noise floor. I can't accurately test at 2VRMS.

I think the frequency response is down about 1-1.5 dB at 20KHz per TI's spec. I went back and forth about using a different output filter and did end up improving the quality but left the bandwidth at the TI spec. Also, changing their internal digital filter takes I2C initialization which I wasn't going to do. I may be wrong about this but consider it inaudible either way. You can desolder the output cap if you want no external output filter.

Mark
Thanks a lot for the details; I have a better understanding of the ins and outs now.
In any case, I’ll wait to see what others do with it. There’s no rush on my end.
Like others accustomed to the "nanodigi," I was planning to use an external DAC per channel (Toslink to RCA or XLR, such as the SMSL PS200 PRO, SU1, or SU2, etc.). But obviously, if there’s an alternative that offers comparable performance, is easy to integrate, and costs less, that’s always preferable...
 
I connected another WM8782 ADC chip with an I2s bus in SLAVE mode to the DSPi and again I couldn't get it to work. Previously I connected a PCM1808 chip and I couldn't get it to work in SLAVE mode with the DSPi either. I tested it in SLAVE mode with an ESP32C3 using a diagnostic program and it worked without any problems. I managed to get the PCM1808 chip on I2S to work with the DSPi only in MASTER mode. I'm attaching photos of the WM8782 PCB.
 

Attachments

  • 20260821_142809.jpg
    20260821_142809.jpg
    192.6 KB · Views: 108
  • 20260821_142801.jpg
    20260821_142801.jpg
    254.4 KB · Views: 114
I connected another WM8782 ADC chip with an I2s bus in SLAVE mode to the DSPi and again I couldn't get it to work. Previously I connected a PCM1808 chip and I couldn't get it to work in SLAVE mode with the DSPi either. I tested it in SLAVE mode with an ESP32C3 using a diagnostic program and it worked without any problems. I managed to get the PCM1808 chip on I2S to work with the DSPi only in MASTER mode. I'm attaching photos of the WM8782 PCB.
Could you please attach screenshots of your I2S and master clock configuration? I have just tested one of these PCM1808 modules (thanks to @Kingsnake) and it works correctly in slave mode.

Here is my configuration:

1787334329341.png
1787334446660.png
1787334345879.png


1787334580191.jpeg
 
TAS5828M and WM8782 connected to the I2S bus, same wire colors on the bus.Amplifiers using a USB source work correctly as SLAVE
 

Attachments

  • 20260821_204103.jpg
    20260821_204103.jpg
    247.6 KB · Views: 88
  • 20260821_204157.jpg
    20260821_204157.jpg
    55.4 KB · Views: 91
  • I2S Configuration.png
    I2S Configuration.png
    97.9 KB · Views: 74
  • I2S Input.png
    I2S Input.png
    85.4 KB · Views: 79
  • 20260821_205505.jpg
    20260821_205505.jpg
    235 KB · Views: 90
TAS5828M and WM8782 connected to the I2S bus, same wire colors on the bus.Amplifiers using a USB source work correctly as SLAVE
In these photos, master clock is not connected to the PCM1808.
 
In SLAVE mode, BCLK - GPIO 14, LRCLK - GPIO15, SDIN- GPIO6,GPIO7,GPIO8 from the amplifier and WM8782 DATA 0 GPIO1 are connected. In SLAVE mode, GPIO13 to WM8782 MCLK? .In this configuration, I have humming and cyclic noise, and I hear some music noises. And so it repeats cyclically .It started playing normally only after I saved the settings for Source I2S :D
 
Last edited:
In SLAVE mode, BCLK - GPIO 14, LRCLK - GPIO15, SDIN- GPIO6,GPIO7,GPIO8 from the amplifier and WM8782 DATA 0 GPIO1 are connected. In SLAVE mode, GPIO12 to WM8782 MCLK?
Your master clock is configured on GPIO 13. So, GPIO 13 should be connected to MCLK on the ADC board. That is with the ADC in slave mode and DSPi in master mode.
 
But when I switch between Master Volume and User Volume, I also start to hear the sound as if it were clipping, and sometimes the clipping goes back on. Sometimes, after re-recording, it calms down.

I thought that in Slave mode, you don't connect the MCLK to the ADC because the TAS 5828M doesn't have an MCLK.
 
But when I switch between Master Volume and User Volume, I also start to hear the sound as if it were clipping, and sometimes the clipping goes back on. Sometimes, after re-recording, it calms down.

I thought that in Slave mode, you don't connect the MCLK to the ADC because the TAS 5828M doesn't have an MCLK.
The TAS has an onboard PLL and does not need a master clock but the same is not true for the ADC, which does need a master clock.
 
The line input on the WM8782 works but somehow it is unstable in the line input mode after I2S, the master volume does not work, something is unstable in the connection with the system because it works like a retuned radio when it loses the signal
 

Attachments

  • 20260821_232106_resized.jpg
    20260821_232106_resized.jpg
    239.4 KB · Views: 74
  • 20260821_232129_resized.jpg
    20260821_232129_resized.jpg
    208.2 KB · Views: 69
The line input on the WM8782 works but somehow it is unstable in the line input mode after I2S, the master volume does not work, something is unstable in the connection with the system because it works like a retuned radio when it loses the signal
This is almost always caused by an intermittent dupont wire. They're notoriously unreliable! When driving a device from the master clock, the connection needs to be very solid.
 
In DSPi we can choose Fs 128 or 256, I am attaching a table of divider frequencies with a 24.576 crystal for the WM8782 ADC in master or slave mode.
Master/Slave,FSAMPEN,IWL (Word Length) settings are tri-state outputs 1= DVDD,0=GND,Z=not connected to anything

First, I don't touch the volume on the DSPi, I just adjust the DAC on the TAS5828M. The occasional crackling sound, like from an analog board, disappears when I hold the RCA input of the WM8782 with my hand. When the crackling becomes more severe, I switch to the USB input and back to I2S, and everything is fine. Admittedly, it's not a board yet, and the grounding is poor, as are the wires. When playing from USB, the sound is clean and clear. :)
 

Attachments

  • M_S.png
    M_S.png
    10.6 KB · Views: 92
  • MCLK.png
    MCLK.png
    22.5 KB · Views: 86
  • SETUP.png
    SETUP.png
    38.3 KB · Views: 102
  • FORMAT_IWL.png
    FORMAT_IWL.png
    6 KB · Views: 75
  • M_S_selection.png
    M_S_selection.png
    17.4 KB · Views: 104
  • DSPi komplet.png
    DSPi komplet.png
    1.1 MB · Views: 110
Last edited:
So I'm trying to flash v1.1.5 onto a rp2350 from a mac mini. When I drag and drop the uf2 onto the pico, the pico ejects itself. When I reconnect it hasn't taken the DSPi uf2. I'm clearly doing something wrong but cant figure out what. I've tried deleting the two files that appear on the pico, makes no difference.
 
Rebooted mini and now it behaving. Ignore last msg :rolleyes:
 
Oh no it isn't. The pi is a 2350 (pico 2) and will accept a 2040 DSPi uf2 but not a 2350. Attempting the latter causes an error msg an turns it off before it can be ejected. I've tried on both a Mac Mini running Tahoe 26.5 and also on an old iMac running Big Sur. Same difference :confused:
 
For those reading, we did eventually find a solution to the Finder issue that @JaMmy ran into. Finder under macOS sometimes doesn't want to flash Picos due to its metadata storage functionality clashing with the UF2 flashing mechanism. If you run into this problem, the solution is to write the UF2 manually using rsync via terminal.

In other news, I am happy to announce that MicroSRC will soon be available. This is a firmware for the Pico 2 that compliments DSPi and implements a highly performant ASRC with both I2S and SPDIF input support.

1787445404199.png


Audio performance through this firmware is equivalent to that of the popular SRC4193 but for a fraction of the cost. This effectively enables multiple SPDIF devices to be mixed via the I2S inputs and for any I2S device to work with DSPi without the need for the latter to operate in slave mode.

Unlike DSPi, the MicroSRC firmware won't be FOSS but it will be given to all existing project supporters as a free perk and a thank you. :)
 
Last edited:
Wow, that is something spectacular! ;)
(because it's red... haha)
 
Last edited:
Hi Troy

First off let me just say I'm in awe of this project. Such amazingly fast progress and ground breaking functionality. I wonder if it can be applied to the project I'd like to build. I have a subwoofer that I'm very happy with, but but it has no DSP and is wired connection only. I'd like to make it wireless and also app[y DSP to deal with room modes etc. Do you think it would be possible to employ 2 Pico 2 W boards to form a wireless bridge between the amplifier and the subwoofer, using bluetooth audio stack? It feel like all the pieces are almost there as you are working on bluetooth source. The missing piece seems to be bluetooth output, which could also be used for bluetooth headphones etc.
I came across this project that seems to be looking at that part. https://github.com/wasdwasd0105/USBPods-Pico2W.

So do you think this could be on the roadmap, assuming there's sufficient CPU budget left to achieve it? It would make my day for sure.

Thanks

Steve
 
If you are using the same standard (ideally high SQ) BT codec on both ends

only the receiver needs to be a Pico.

Make sure to still leave a wired option in case you find there are variability issues on wireless.
 
only the receiver needs to be a Pico.
On the source end the input will be optical - no wireless option available - so I was thinking of using a pico to create the wireless link.
 
Back
Top Bottom