<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Norns on 6120's Notes</title><link>https://6120.eu/tags/norns/</link><description>Recent content in Norns on 6120's Notes</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright/><lastBuildDate>Thu, 15 Oct 2026 12:00:00 +0100</lastBuildDate><atom:link href="https://6120.eu/tags/norns/index.xml" rel="self" type="application/rss+xml"/><item><title>Four months chasing noise on my Norns (and a USB audio mod)</title><link>https://6120.eu/posts/norns-usb-audio-mod/</link><pubDate>Thu, 15 Oct 2026 12:00:00 +0100</pubDate><guid>https://6120.eu/posts/norns-usb-audio-mod/</guid><description>&lt;p&gt;It started with a weird noise on the outputs of my DIY Norns (a Raspberry Pi with a DAC board on top). I&amp;rsquo;d heard the hum you get when something isn&amp;rsquo;t grounded properly, and this was a bit different. Here&amp;rsquo;s what it sounded like with the Norns running on a battery:&lt;/p&gt;
&lt;p&gt;&lt;audio controls preload="none" src="https://6120.eu/img/posts/norns-usb-audio-mod/noisebattery.mp3"&gt;&lt;/audio&gt;&lt;/p&gt;
&lt;p&gt;And the spectrum of that recording:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://6120.eu/img/posts/norns-usb-audio-mod/spectrumanalyzenoise.png" alt="Spectrum of the noise, with the biggest peak around 374 Hz and a series of narrow spikes above it"&gt;&lt;/p&gt;</description><content>&lt;p&gt;It started with a weird noise on the outputs of my DIY Norns (a Raspberry Pi with a DAC board on top). I&amp;rsquo;d heard the hum you get when something isn&amp;rsquo;t grounded properly, and this was a bit different. Here&amp;rsquo;s what it sounded like with the Norns running on a battery:&lt;/p&gt;
&lt;p&gt;&lt;audio controls preload="none" src="https://6120.eu/img/posts/norns-usb-audio-mod/noisebattery.mp3"&gt;&lt;/audio&gt;&lt;/p&gt;
&lt;p&gt;And the spectrum of that recording:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://6120.eu/img/posts/norns-usb-audio-mod/spectrumanalyzenoise.png" alt="Spectrum of the noise, with the biggest peak around 374 Hz and a series of narrow spikes above it"&gt;&lt;/p&gt;
&lt;p&gt;The strongest peak sits around 374 Hz, followed by a row of narrow spikes higher up, so it didn&amp;rsquo;t look like mains hum to me.&lt;/p&gt;
&lt;p&gt;I spent about four months on and off trying to figure out where it came from, and it turned out to be power.&lt;/p&gt;
&lt;h2 id="what-was-actually-wrong"&gt;What was actually wrong&lt;/h2&gt;
&lt;p&gt;I had two full builds with a &lt;img src="https://denki-oto.com/pages/shieldxl" alt="shieldXL"&gt; , each a Pi 4B, but on different revisions of the Pi 4B. Both had the noise, and one was a lot worse than the other. The difference came down to the power management chip on the Pi. On a line power supply, the Pi with the MXL7704 chip had the noise and the one with the Dialog chip didn&amp;rsquo;t. On a battery, both had it every time.&lt;/p&gt;
&lt;p&gt;In the end I found two causes, and fixing only one of them didn&amp;rsquo;t change much. That&amp;rsquo;s mostly why it took so long.&lt;/p&gt;
&lt;p&gt;The first was the header pins between the Pi and the DAC board. They had a thin layer of oxidation on them, invisible at a glance but enough to make the contact worse. Cleaning them with alcool helped a bit.&lt;/p&gt;
&lt;p&gt;The second was my power supply. I was running the thing either from a battery or from a wall adapter that couldn&amp;rsquo;t deliver enough current. The Pi pulls more when it&amp;rsquo;s working hard, the voltage sags, and the DAC happily turns all of that into noise on the outputs.&lt;/p&gt;
&lt;p&gt;The kernel was telling me this the whole time, and I didn&amp;rsquo;t pay enough attention to it. &lt;code&gt;dmesg&lt;/code&gt; kept showing lines like these:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Under-voltage detected!
Voltage normalised
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;What finally fixed it was using the Pi 4 with the Dialog chip (revision 1.5), which regulates the current properly, and feeding it with a decent line supply instead of a battery. After that the outputs got quiet.&lt;/p&gt;
&lt;h2 id="skipping-the-dac-altogether"&gt;Skipping the DAC altogether&lt;/h2&gt;
&lt;p&gt;While I was in the middle of all this I wanted a way around the problem. So I wrote a Norns mod that sends the SuperCollider output straight to a USB sound card:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Magicking/norns-usb-audio-mod"&gt;github.com/Magicking/norns-usb-audio-mod&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It started as a small shell script with my card name hardcoded in it. The mod is the cleaned-up version of that. It lists the USB sound cards that are plugged in, and you pick one (or several) from &lt;code&gt;SYSTEM &amp;gt; MODS &amp;gt; USB AUDIO&lt;/code&gt; and connect it with K3. E3 changes the volume on a connected card. The list rescans every couple of seconds, so you can hotplug a card while the menu is open.&lt;/p&gt;
&lt;p&gt;Under the hood it&amp;rsquo;s pretty simple. For each card it starts an &lt;code&gt;alsa_out&lt;/code&gt; process that bridges the ALSA device into JACK, then wires its playback ports to &lt;code&gt;crone:output_1&lt;/code&gt; and &lt;code&gt;crone:output_2&lt;/code&gt;. Disconnecting kills the &lt;code&gt;alsa_out&lt;/code&gt; process and JACK cleans up the connections by itself.&lt;/p&gt;
&lt;h2 id="install"&gt;Install&lt;/h2&gt;
&lt;h3 id="maiden"&gt;Maiden&lt;/h3&gt;
&lt;p&gt;Navigate to the Maiden interface, put &lt;code&gt;;install https://github.com/Magicking/norns-usb-audio-mod&lt;/code&gt; in the console, restart, enable it in &lt;code&gt;system &amp;gt; mods&lt;/code&gt;, and restart again.&lt;/p&gt;
&lt;h3 id="ssh"&gt;SSH&lt;/h3&gt;
&lt;p&gt;Copy the repo to &lt;code&gt;~/dust/code/usb-audio-mod&lt;/code&gt; on your Norns, restart, enable it in &lt;code&gt;system &amp;gt; mods&lt;/code&gt;, and restart again.&lt;/p&gt;
&lt;h2 id="known-issue"&gt;Known issue&lt;/h2&gt;
&lt;p&gt;Sometimes there&amp;rsquo;s a small bug in the sound. If you run into it and find the cause, issues and PRs are welcome, overall it&amp;rsquo;s better than having a constant noisy sound over the analog output when using a battery!&lt;/p&gt;</content></item></channel></rss>