Unbalanced to Balanced Audio

I pulled this out of the published posts and updated it.

I have been working on updating some wiring at one of out client’s transmitter site. I noticed that an off air monitor feed was going back to the studio on a Barix box, which is fine. It was being fed from a balanced output of a DA to the unbalanced input on the Barix box. This being at the transmitter site, was susceptible to RF noise. I decided to make a passive audio BALUN.

Balanced to unbalanced audio converter

In any case, there are several ways to go from balanced to unbalanced without too much difficulty.  The first way is to wire the shield and Lo together on the unbalanced connector.  This works well with older, transformer input/output gear, so long as the unbalanced cables are kept relatively short.

simple balanced to unbalanced audio connection
simple balanced to unbalanced audio connection

Most modern professional audio equipment has active balanced input/output interfaces, in which case the above circuit will unbalance the audio and decrease the CMRR (Common Mode Rejection Ratio), increasing the chance of noise, buzz, and so on getting into the audio. In this case, the CMRR is about 30 dB at 60 Hz.  Also, newer equipment with active balanced input/output, particularly some brands of sound cards will not like to have the Lo side grounded. In a few instances, this can actually damage the equipment.

A Henry Match Box or something similar can be used.  I have found, however, the active components in such devices can sometimes fail, creating hum, distortion, buzz, or no audio at all.  Well-designed and manufactured passive components (transformers and resistors) will provide excellent performance with little chance of failure.  There are several methods of using transformers to go from balanced to unbalanced or vice versa.

Balanced to unbalanced audio using 1:1 transformer
Balanced to unbalanced audio using 1:1 transformer

Using a 600:600 ohm transformer is the most common.  Unbalanced audio impedance of consumer-grade electronics can vary anywhere from 270 to 470 ohms or more.  The 10,000-ohm resistor provides constant loading regardless of what the unbalanced impedance.   In this configuration, CMMR (Common-Mode Rejection Ratio) will be 55 dB at 60 Hz, but gradually decreases to about 30 dB for frequencies above 1 KHz.

Balanced to unbalanced audio using a 4:1 transformer
Balanced to unbalanced audio using a 4:1 transformer

A 600:10,000 ohm transformer will give better performance, as the CMMR will be 120 dB at 60 Hz and 80 dB at 3 KHz, remaining high across the entire audio bandwidth.   The line balancing will be far better for the high-impedance load.  This circuit will have about 12dB attenuation, so plan accordingly.

For best results, use high-quality transformers like Jensen, UTC, or even WE 111C (although they are huge) can be used.  I have found several places where these transformers can be scrounged, DATS cards on the old 7300 series Scientific Atlanta satellite receivers, old modules from PRE consoles, etc.  A simple audio BALUN can be constructed for little cost or effort and sound a whole lot better than doing it the wrong way.

A brief list, there are other types/manufacturers that will work also:

RatioJensenHammondUTCEdcor
1:1 (600:600)JT11E series804, 560GA20, A21, A43PC600/600
4:1 (10K:600)JT10K series560NA35PC10K/600

Keep all unbalanced cable runs as short as possible.  In stereo circuits, phasing is critically important, so pay attention to how the balanced transformer windings are connected.

Device Under Test; THD at 20 KHz

As for cost; I purchased the Edcor PC10K/600 transformer on eBay for $20.00 and the Hammond 1590B Enclosure was about $9.00. The audio jacks and resistor were in the parts drawer. It took about 20 minutes to layout the holes, drill, mount the audio jacks, and solder the jumper wires. I used a tie-base, wire tie, and some Gorilla glue to hold the transformer down. I used a 1/4 inch TRS jack because the enclosure was a little bit too small for an XLR jack. If a stereo pair needed be converted, it would require two of everything.

Overall, I fun project. The old Simpson 260 is still accurate!

Checking the accuracy of a Simpson 260 on audio frequencies.

GPS controlled clock based on Raspberry Pi

This is an adjunct to my previous post on creating a Stratum 1 NTP time server with a Raspberry Pi. I finished this project about a year ago, and I have to say it has been running flawlessly since then. I thought that perhaps the inexpensive GPS module designed to work with drones might not hold up. But it has.

Midnight in London

Wouldn’t it be nice to use this time source, not just to set hardware clocks but also display the time in varous places? Yes, yes it would.

Since most of my ideas are not original, I figured a quick internet search may shed some light on how to proceed. Keith, G6NHU did exactly this a year ago or so. His project can be viewed here: https://qso365.co.uk/2023/05/how-to-build-a-shack-clock-using-a-raspberry-pi-and-a-7-touch-display/

As I suspected, with a few more configuration steps, this NTP server can display the time on the native HDMI port as well as create a simple web page available on the LAN for any computer to access with a web browser. The web server is Lighttpd, which is a low CPU load, low memory demon, perfect for an older Raspberry Pi 3.

The display I chose is a 7-inch 16×9 non-touch purchased from Amazon for $33.99: https://www.amazon.com/gp/product/B0BGXB2Y67/ (not an affiliate link)

When I created the NTP server last year, I named it ntpserver. The unit runs headless (no keyboard or monitor) so I use ssh to get into the command line. Thus, the first command is:

ssh ntpserver@192.168.1.200

Once in, always do an update:

sudo apt-get update
sudo apt-get upgrade -y

The following programs need to be added to the Pi:

sudo apt install xorg openbox xserver-xorg xinit unclutter lighttpd -y

If the OS is off the shelf Raspian, then Chromium should already be installed, but if not, then add it:

sudo apt install chromium-browser -y

Once that is done, some things need to be configured. Using whatever text editor you like the xserver so that anyone can access it. Open the Xwrapper file:

sudo nano /etc/X11/Xwrapper.config

Then add line:

allowed_users=anybody

Exit and save. Next open the xserverrc file:

sudo nano /home/ntpserver/.xserverrc

Add the following:

#!/bin/sh
#Start the X server session with no power management so the display never sleeps
exec /usr/bin/X -s 0 -dpms -nolisten tcp "$@"

Exit and save. Next open the xsession file:

sudo nano /home/ntpserver/.xsession

Add the following:

#!/bin/sh
#Start Chromium at startup
chromium-browser --start-fullscreen --window-size=800,480 --disable-infobars --noerrdialogs --incognito --kiosk http://localhost

Exit and save. Note the display size can be configured to any screen resolution. This affects the HDMI port, not the web page. The 7-inch Raspberry Pi monitor that I purchased from Amazon has an 800 x 480 screen resolution. If you are using a different screen resolution, change as needed. Next open the clock.service file (it will be created when you save the file):

sudo nano /etc/systemd/system/clock.service

Add the following:

[Unit]
Description=Clock
After=network-online.target
DefaultDependencies=no

[Service]
User=clock
ExecStart=/usr/bin/startx
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Exit and save.

The web page that will be displayed on the HDMI port as well as served to local hosts on the LAN is a java script page. It was originally developed by Nayuki: https://www.nayuki.io/page/full-screen-clock-javascript You can download whatever format you like from that site (I copied the page source) or you can download a 24-hour format from Keith’s site:

cd /var/www/html
sudo wget https://qsl.net/g6nhu/clock/index.html

The colors can be edited:

sudo nano /var/www/html/index.html

The background, foreground, and font type can be changed as desired.

Next start the clock service and reboot:

sudo systemctl enable clock
sudo systemctl start clock
sudo reboot now

Here is a quick video of the web page on my desktop computer. I have the GPS monitor from the ntpserver up and running in the left upper corner. That shows the GPS data going into the Raspberry Pi from the serial port along with some scratchy WWV audio. The actual clock sync is from the 1PPS output of the GPS module.

I could see this being used as an inexpensive master clock system somewhere. With an HDMI splitter (or a better name would be Distribution Amp), this could be sent to many locations.

Now all I need to do is figure out how to get a GPS synced 10 MHz output capable of driving multiple devices.

Audio Bit Rates and Formats

Occasional reader and blogger Robert has broken down all the information on audio bit rates and audio formats.

His work can be found here: Ultimate Guide to Audio Bit Rates and Formats

It is a good read, especially for those that use audio streaming as their main content distribution method.

Streaming-only stations used to be a big thing but have been supplanted by Spotify and Pandora.  I am not a huge fan of either of those services but I do like to listen to podcasts.

Good audio should be near the top of the list for any content provider.  Few things are more annoying than listening to an interesting podcast with low volume, background noise, or other technical defects.

The Sonotube subwoofer

Continuing with my speaker projects; I have finished building a Sonotube subwoofer for my Box One speakers. As I discovered, those speakers miss a significant part of the bottom end. I made up for this by using a Polk Audio PSW-10 subwoofer that was part of my home theater system.

Sonotube subwoofer, downward firing configuration
Sonotube subwoofer, downward firing configuration

I found the PSW-10 was certainly loud enough but lacked definition which became noticeable when the new speakers were installed. Thus, I began thinking about a sealed box subwoofer. When designing the enclosure, there is a good bit of math involved in calculating the box volume.

Sonotube subwoofer, upward firing configuration
Sonotube subwoofer, upward-firing configuration

I now have a bit of a dilemma; should I set the subwoofer up downward firing into the floor or should I set it up upward firing into a dispersion cone?  I have tried it both ways and in the downward firing position, it shakes the floor.  That is a great effect for watching movies like “The Hunt for Red October,” where there is a lot of bass rumbling.  It is also great for blasting some Led Zeppelin or Pink Floyd Dark Side of the Moon.   However, the idea of a sealed subwoofer was to add detail to the bass, and that it does.  The Polk Audio PSW-10 certainly had bass, but it was ill-defined.  The sealed sono-sub has less low, low bass but the bass instruments now sound as good as the rest of the orchestra.  In the upward position, I get clean omni directional bass which sounds fantastic when listening to P.I. Tchaikovsky Concert #1 in B flat minor, opus 23.  That was the idea when I started making this.  Still, blasting Led Zeppelin is fun and I recommend it to everyone.  Decisions, decisions…

After a couple of months of evaluation, I finally decided on the downward firing configuration.  It does add another dimension to watching movies.  Now, I kind of want to get a bass shaker for the floor underneath the sofa.

Piece of left over, 12 inch diameter sonotube
Piece of leftover, 12-inch diameter sonotube

In any case, the technical details for this subwoofer are as follows:

  • Driver: Dayton Audio RSS265HF-4, 10″ subwoofer, 4 ohm
  • Plate Amp: Dayton Audio SA70 70 watt
  • 12″ (30.48 cm) diameter sonotube, 19 3/4″ (50.165 cm) long
  • Miscellaneous pieces of wood, paint, screws, and foam that were laying around

Sonosub driver, Dayton Audio RSS265HF-4 4 ohm aluminum cone driver
Sonosub driver, Dayton Audio RSS265HF-4 4 ohm aluminum cone driver

Sonotube subwoofer foam lining inside of sonotube
Sonotube subwoofer foam lining inside of sonotube

I found a driver that will work well with a sealed enclosure.  This is important because some drivers work better with ported enclosures and some with sealed enclosure.  Another detail is whether or not the driver can be mounted horizontally.  Some driver cones will deform if placed in the upward or downward-firing position.  The Dayton subwoofer selected will not suffer from that.

I used an online calculator called speakerbox lite to calculate the volume of my sealed subwoofer enclosure.  There are several choices for the type of response the designer is looking for.  Initially, I thought about critically damped, but the box volume was 125 liters, which is more than a 12 x 48″ (30.48 x 122 cm) sonotube.  I settled on Bessel-2, which has a box volume of 56.68 liters.  That was easily obtainable with the sonotube I had on hand.

The plate amp is a run-of-the-mill 70-watt Dayton unit.  Truth be told, it runs a little bit hot and I’d consider something else if I were making this design again.

For construction, I carefully cut the sonotube to the right length with a jig saw.  The outside of the sonotube was roughed up with some 220 grit sandpaper before painting it flat black.

The individual pieces were glued together with gorilla glue.  The wood braces on the outside of the sonotube connect with the wood braces on the inside of the sonotube with brass wood screws.  The plywood rounds were cut with a router to a close fit.  Being that this is a sealed design, I took some extra time with a non-silicone-based sealant to make sure that the entire enclosure was tight.  All in all, the enclosure certainly feels tight.

It sounds great and I feel like my subwoofer now matches the quality of the other speakers I am using.