hn.today

Chasing an audio artifact on power loss

subalpinecircuits.com6 points0 comments
Screenshot of Chasing an audio artifact on power loss

The SA-01 synthesizer produced an audible click or thunk from its PCM5102A DAC whenever power was cut, whether by switch or unplugging USB. Adding the DAC’s recommended mute circuit did not fix it. Oscilloscope measurements showed the spike occurred after the DAC had muted, so the problem was not simply a failure to engage mute. Adding 220 microfarads on a breadboard eliminated the spike; testing showed 100 microfarads also worked. But the next circuit-board revision, which used an extra 100 microfarads of small surface-mount ceramic capacitors, still clicked.

The difference was the capacitors’ effective capacity: ceramic MLCCs can lose 50-60 percent of their rated capacitance under voltage bias, leaving the board with only about 50 microfarads - less than the successful test circuit. Attaching a 220-microfarad electrolytic capacitor to the board’s 3.3-volt analog rail confirmed the fix. The proposed explanation is that cutting power immediately stops the ESP32’s I2S clock, prompting the DAC to mute, but the DAC still needs power afterward to keep its output at zero while stored charge dissipates. Without enough hold-up time, energy from its charge-pump capacitors creates the spike. The DAC’s power-loss protection expects a supply decline lasting at least six milliseconds, whereas this circuit loses power in about one millisecond. The next board will make room for the larger electrolytic capacitor.

Read on subalpinecircuits.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.