PICO DSP

by Ohmic Electronics

An open-source, Arduino-compatible, ESP32-based audio development board

View all updates Aug 12, 2021

First FAQs answered!

by Andy Wilson

Below are some of the FAQs from the first few days of the campaign. If you have any questions about the project don’t hesitate to get in touch! For the next update, we’ll have a look at the MEMs microphone array and how it can be used to change the pickup pattern of the microphones.

Will this device allow me to experiment with different types of filters (low-pass, notch, band-pass, and high-pass)? Does the device have the horsepower to create a real-time spectrum analyzer?

The ESP32 is a powerful and flexible microcontroller with a dual core architecture, which allows running different processing threads on each core. Regarding filtering, you could code your filter in C or C++. There are many ways to do this, for example using the Espressif DSP library or using Faust. There are also some example spectrum analyzer projects online you can look at. For the display there are a number of options including using an I2C display or a custom LED display.

What are the DSP capabilities? Can this be used to make a parametric EQ? How good?

The MCU is an ESP32 Pico D4 chip which is clocked at 240 MHz and has FreeRTOS on both cores, so different processing threads can be run on both cores. The ESP32 offers plenty of computational power to run most “standard” DSP algorithms and can run up to 145 sine waves in parallel for a block size of 128 or 256 samples, as discussed in this Faust research paper. Whether a parametric EQ can be made, yes, it is possible, but would depend on the type of filter implementation and how many frequency bands are desired. Here is an Espressif example for a 10 band EQ.

What are the audio quality specs in terms of noise?

In terms of the audio quality, THD or THD & N, the datasheet for the audio codec specifies for the DAC SNR 98 dB, THD -84 dB (‘A’ weighted @ 48 kHz) and for the ADC SNR 95 dB, THD -84 dB (‘A’ weighted @ 48 kHz). There isn’t a THD & N measurement for the "whole system measurement" or the "Codec plus MCU on the PCB" as yet because I don’t currently have access to an APx Analyzer or similar audio analyzer for this measurement. If I can source one to take an accurate measurement of this, I’ll post an update.

Did you consider the needed connections (usually SDA&SCL) for an I2C display on the breakouts?

The default pins for an I2C display on the Pico D4 chip are actually not specified in the data-sheet (the default is GPIO21 and GPIO22 on other ESP32 chips). I think this may be because on the ESP32, you can assign any of the GPIO pins as I2C. So, in your code, depending on which library you are using for I2C, you can define the pins as shown in this tutorial for using an OLED display with Arduino IDE and re-assigning the I2C pins.

There are 2 x I2C drivers on the ESP32, one is used on PICO DSP for communicating with the audio codec, but the other driver is not used so you could use it for a display or other I2C devices.

Can I use this device as a soundcard or audio device for my PC? My current soundcard is ALC1220.

I haven’t tried it in this application as a PC audio driver, but it’s possible it could work. For a driver for the codec in C++, see the .h and .cpp files in our GitHub repo.

On the PICO DSP, the ESP32 communicates with the WM8978 using I2C and I2S protocols, which may be similar to the ALC1220, these signals are not broken out to the GPIO header however, which could be a problem if you want to route I2S signals directly to the codec. One possible way it could be done, is by using the x2 I2S drivers on ESP32, so you could send the audio data from the MCU on the PC to the GPIO header and then use the other I2S driver on the ESP32 to receive the data. That way, one driver is receiving the input audio data from the PC and the other driver outputs the data to the WM8978 Codec.

Another option can be used achieve the same end result if your PC is networked. PICO DSP has Wi-Fi, so you could stream the audio data over Wi-Fi to it.

I have a turntable with phono/line output, I would like to stream the audio output from the turntable over a Wi-Fi connection, is this possible?

Yes this is possible. If the turntable has a line output (i.e., a built-in pre-amp) you can connect it directly to the line input of PICO DSP. Normal phono output from a turntable would need to be connected to an RIAA preamplifier as usual before going into a mixer or speakers. PICO DSP doesn’t have a built-in RIAA pre-amp, although it may be possible to emulate an RIAA EQ curve in software.

About the Author

Andy Wilson


$9,453 raised

of $9,000 goal

105% Funded! Order Below

Product Choices

$42

PICO DSP Original Edition

A PICO DSP board with 4 MB of flash memory and 8 MB PSRAM. Ships with unsoldered male pin headers, a JST battery connector, and a test firmware application installed.


$42

PICO DSP Strawberry Edition

A PICO DSP board with 16 MB of external flash. Ships with unsoldered male pin headers, a JST battery connector, and a test firmware application installed. Intended for advanced users.


$145

PICO DSP With Eurorack Expansion Module

An Original or Strawberry Edition PICO DSP with a Eurorack modular synthesizer instrument interface. Ships with a Eurorack power cable and a sample oscillator firmware application pre-installed

Credits

Ohmic Electronics

Experimental audio design & practice


Andy Wilson

See Also

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: