Sparkfun Thing plus RP2040 ADC noise from SD card

I am writing a program to continuously save 12-bit acoustic recordings from a [microphone using the the RP2040’s in built ADC. The ADC works just fine, however, I have to write buffered acoustic data multiple times per second to the SD card. When the SD card is writing, it creates low level broadband noise on the ADC (see spectrogram image below - the SD card noise are the faint vertical lines).

A few observations.

  1. The noise is present when the microphone is replaced by a resistor. It is also present using different types of microphone.

  2. Connecting the microphone to an external battery (grounds connected) helps but does not get rid of it entirely.

  3. When the board is connected via USB power, then the overall noise in the recordings is greater but the SD card noise is no longer present (or perhaps drowned out by the increase in noise)

  4. The noise only occurs when the SD card is writing.

Has anyone else come across this issue/have any suggestions on how it might be solved. Any help much appreciated.


A spectrogram of the noise on the acoustic recordings. ](https://www.digikey.co.uk/en/products/detail/adafruit-industries-llc/1063/4990762?utm_adgroup=Evaluation%20and%20Demonstration%20Boards%20and%20Kits&utm_source=google&utm_medium=cpc&utm_campaign=Shopping_Product_Development%20Boards,%20Kits,%20Programmers&utm_term=&productid=4990762)

Is the power supply a mean-well type? I’m wondering if it is related to power noise…that’s my first guess, as USB is a regulated supply

The power supply is a 3.3V LiPo so should be fine.