cleaning up 5v usb power

modified a guitar looper in order for it to take a USB cable that would

1
take midi controls via pro micro arduino
(achieved that through vital support on this forum. thanks paul!)

2
power the looper via 5V coming from the usb port

unfortunately though, the 5v usb power introduced a lot of hiss to the audio signal. don't know how to approach this, but tried this today:

cut an usb cable and spliced in 5v from a battery, while arduino data still came from the usb port. this turned out to remove 80-90 % of the noise.

so, if in principle i just have to cleanup the 5v from the usb, how would i go about this? is there a ready made solution (like a small boost converter)? can i follow a schematic and build something from scratch?

I would suggest a power supply like this that is already cleaned up for audio
https://www.guitarcenter.com/Throne-Room-Pedals/2000mA-9V-DC-Right-Angle-Power-Adapter.gc

I play with Software Defined Radio and finally abandoned switching power supplies altogether in favor of a linear (transformer-based) supply. That may be overkill for your needs, but you might want to Google "linear power supply" and look at some of the products available and their specs.

CrossRoads:
I would suggest a power supply like this that is already cleaned up for audio
https://www.guitarcenter.com/Throne-Room-Pedals/2000mA-9V-DC-Right-Angle-Power-Adapter.gc

When I click on the link I get :

=====================
Dear Customer,

Based on your location, we are unable to take you to the Guitar Center website at this time. For more information regarding the new GDPR regulations, go to The History of the General Data Protection Regulation | European Data Protection Supervisor.

We apologize for any inconvenience and look forward to serving you again soon.

=====================
and following that link I get told by the EUROPEAN DATA PROTECTION SUPERVISOR that I am not allowed to access the Guitar Center because I'm not in a location allowed by EU regulations. Last time I looked, the UK was still in the EU !

you need vpn for gc website, but use this link (same product)

CurtCarpenter:
I play with Software Defined Radio and finally abandoned switching power supplies altogether in favor of a linear (transformer-based) supply.

so, if i understand correctly, it's better to ceate linear 5V fresh from the 230V socket, rather than filter out the 5V already present in the usb cable. found a product that does just that (too expensive dor what it does)

https://m.thomann.de/be/aqvox_usb_low_noise_power_supply_a.htm

but I was actually looking for something like this, which could be implemented inside a usb dongle

i wonder what how - in terms of performance - this two different solutions differ from one another

You have a problem here with ground layout. You can use an inductor and capacitors to filter the 5 V, but the ground connections must be laid out in a certain manner.

Paul__B:
but the ground connections must be laid out in a certain manner.

hey paul

thanks! could you pls give me a few keywords/principles for the ground layout. is there a set of rules for (audio) ground connections?

It basically means making sure no section of the ground wiring is carrying both your audio signal and current to a digital device.

I would suggest making a diagram of how you propose to connect things, and we can criticise that.

orinocopaul:
but I was actually looking for something like this, which could be implemented inside a usb dongle

Filtering the 5V USB power supply line | Andys Workshop

i wonder what how - in terms of performance - this two different solutions differ from one another

Wow -- that is an impressive result orinocopaul, and without spending some significant money I'm not sure you'll get much improvement over it with a linear supply. I'm going to have to try that filter myself -- and thanks for the link to the article.The BLM18PG221SN1D is available from several distributors, and isn't expensive at all.

One thing you might want to test is what happens if you load one or more of your other USB ports at the same time as your filtered port. If you try it, I hope you'll share the results. Definitely a good find -- thanks again!

stowite:
and following that link I get told by the EUROPEAN DATA PROTECTION SUPERVISOR that I am not allowed to access the Guitar Center because I'm not in a location allowed by EU regulations. Last time I looked, the UK was still in the EU !

Maybe that's your problem... I can open the link just fine, and get a price in my local currency (HK$ - never been in the EU, even when it was still a UK colony).

finally understood what was meant by ground layout. thanks paul!
replicated a filtering scheme using caps + ferrite inductor. however, i did not get to the point of hearing its effect: once I plugged in the audio output jack, ground was passing through as well and looping back through pc > usb and so on. ordered an usb isolator. waiting too see what that does to the noise.

meanwhile here is my diagram. it's working fine.

the only problem occurs if I connect both the usb cable and the ac adapter. (even though the barrel connector interrupts usb ground). this happens regardless to the 5V looping through the amp. somehow:

groundless 5v from usb + 9V AC freezes the looper after half a minute of so...

orinocopaul:
even though the barrel connector interrupts USB ground

What does that mean?

meaning that the ac adapter barrel is brake-before-make type of connector (see diagram). i guess in order not to drain the battery

used the usb port from a unplugged laptop and the noise wasn't that bad. turns out the issue is more about ground loops rather than 5v filtering

Ah, sorry! I was thinking of an Arduino UNO, not your circuit (because this forum makes circuits difficult to see! :roll_eyes: ).

But you have it right - the grounding is generally the more important matter where there is a problem with interference.