Uncategorized

Reducing sound noise when recording with Pi

Asked 
Active today
Viewed 18 times
0
1

I am sure everyone trying to record sound with a Raspberry Pi has experienced a lot of issues with noise pollution. Although there is any number threads on various forum adressing this I have yet to find any conclusive and comprehensive answers. I have made some basic tests and I thought I would pose the question here to find other ways to improve sound recording.

So far I have traced the main course of noise to the following:

  1. Magnetic / Radio interference (EMI / RFI). This is caused by cables acting like recieving antennas and pick up radio frequencies or magnetic induction from nearby electrical cables and radio sources (wifi, fans in computers, TVs & screens, even the PI’s own wifi). This is typically low frequency buzzing (50-150 HZ), usually associated with powercables, and higher frequency clicking and ticking from other electric equipment like wifi or electrical motors. The best cure I have found so far is to shield the entire soundcard and microphone with tin foil and ground it to the USB ground (the USB contact shield). As seen in picture below it reduces the lower frequencies with about 10db and I have also found it reduces interference by wifi.

(please note that the scale is different on the two pictures, so it looks like the unshielded has less noise but in fact it is more ) enter image description here enter image description here

  1. The USB soundcard itself. Some cheaper USB soundcards seem to generate their own noise frequencies. I have commonly had a cheaper USB cards give me strange spikes in noise at given frequencies, see picture below. I have tried several different usb soundcards and some will produce this strange z-wave. It sounds like a high pitched whining that drowns other sounds. Go with a known brand of USB soundcard! enter image description here
  2. Ground-loops is generally not a problem unless your USB sound card or your microphone is powered seperately. If the power goes RPI-soundcard-Microphone, then so does the ground and a loop is unlikely. Please correct if wrong
  3. The PSU and Pi itself. Once you have removed the outside sources of noise with shielding, what remains is probably coming from the PI itself. Poor power supplies seem to be the main cause here but I have yet to find something that is working. Even official PSUs seem to cause noise. Ferrite beads will help some but they usually capture high frequency noise. The highest peaks of noise is below 1000 Hz.

These tests were performed on a RPI3 A+ with a moderatly good soundcard (approx 12 euro) and a small microphone. I am sure I could improve things with better equipment but then I would probably use a better computer for recordings.

I will try to test other setups and post results here.

But please, any suggestions by yea wise and knowledgeable are very welcome!

Add: Here are two pictures of an unshielded USB card and when it is less than 50cm from a computer screen and a wifi router (again, note difference in scale). Both sounds like ticking noise. enter image description hereenter image description here

  • I appreciate you experiment results very much. I also have noise problems in my projects. (1) I often use Lipo power banks (18650 x 3) 12VDC and step it down to 5V for Rpi and other circuits. (2) I even avoid using switching power supplies (LM2596/LM2941) and use series regulators (7805) and LDOs, (3) I use huge bypass capacitor (electrolytelyte) 10,00 uF), 0.1~1uF tanlum/cermic caps. (4) I also use dedicated/separate PSUs for Rpi and power amps, / to continue, … – tlfong01 4 hours ago
  • (5) Grounding is also very important, I separate my grounds into (a) power ground, (b) logic ground, and (c) audio signal ground, and of course shielded or double shielded AV cableseparate my grounds into (a) power ground, (b) logic ground, and (c) audio signal ground, and of course shielded or double shielded AV cables. I even dedicate the Rpi’s several ground pins into groups, for I2C/SPI/UART/GPIO (audio) etc. Of course I need to use “ground stubs” later. For also signals Audio or I2C etc, I have separate ground lines going with them, / to continue, … – tlfong01 4 hours ago
  • (6) For power amps, I sometimes use differential input D type power amp. (7) I also have digital low/band pass filters (for my EEG/ECG/GPS etc) to try to reduce noise. (8) I use UGreen USB sound cards (OK, they are not very HiFi, but cheap, with button selection of raw/music/gaming band widths. (9) I also try dynamic/moving coil (Sony grade) and cheap pizo microphones. – tlfong01 4 hours ago

2 Answers

0

Answer

(moved from comments, to tidy up later)

I appreciate you experiment results very much. I also have noise problems in my projects. (1) I often use Lipo power banks (18650 x 3) 12VDC and step it down to 5V for Rpi and other circuits. (2) I even avoid using switching power supplies (LM2596/LM2941) and use series regulators (7805) and LDOs, (3) I use huge bypass capacitor (electrolytelyte) 10,00 uF), 0.1~1uF tanlum/cermic caps. (4) I also use dedicated/separate PSUs for Rpi and power amps,

(5) Grounding is also very important, I separate my grounds into (a) power ground, (b) logic ground, and (c) audio signal ground, and of course shielded or double shielded AV cableseparate my grounds into (a) power ground, (b) logic ground, and (c) audio signal ground, and of course shielded or double shielded AV cables. I even dedicate the Rpi’s several ground pins into groups, for I2C/SPI/UART/GPIO (audio) etc. Of course I need to use “ground stubs” later. For also signals Audio or I2C etc, I have separate ground lines going with them,

(6) For power amps, I sometimes use differential input D type power amp. (7) I also have digital low/band pass filters (for my EEG/ECG/GPS etc) to try to reduce noise. (8) I use UGreen USB sound cards (OK, they are not very HiFi, but cheap, with button selection of raw/music/gaming band widths. (9) I also try dynamic/moving coil (Sony grade) and cheap pizo microphones.


References

(1) UGreen USB Sound Card Discussion 1/2

(2) UGreen USB Sound Card Discussion 2/2

(3) Rpi GPIO Push Button Circuit Grounding Problem

(4) Ground loop problems and how to get rid of them Written and copyright by Tomi Engdahl 1997-2013

(5) RpiZero Power Supply through 40 pin Power/GPIO Header or microUSB connector

(6) Why Grounding is used – Epanorama

(7) Using bypass capacitors to reduce voltage spikes and noise causing I2C read/write errors

(8) Clean Power for Every IC, Part 1: Understanding Bypass Capacitors – R Keim 2015sep21

(9) Clean Power for Every IC, Part 2: Choosing and Using Your Bypass Capacitors – R Keim 2015sep27

/ to continue, …


Appendices

Appendix A –

psu4


Appendix B –

psu1


Appendix C –

psu2


Appendix D –

psu3


Appendix E –

psu5


End of Answer


0

Answer duplicated by a careless copy and paste mistake, to delete later. My apologies.

.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: