mfa298 wrote:umisguy wrote:it's not coming off the GPIO , it's coming from the main leads from the power bank , and the reason for the capacitor and resistor is the power bank could not supply the 5 volts ~1.13 amp power to charge the capacitor on top of everything else running on the pi , including the LCD panel and usb wifi adaptor ...
That's not the problem anyway, I don't need more than 400 miliamps to the amplifier. The problem is that if the amplifier is attached to the same power pack (battery pack USB charger ) , I get humongous amounts of noise (hums and frequency shifts in hums etc that sound like RF / electronic interference , possibly on the common negative 5v throughout the system)
First off you need to determine where the noise is coming from. The best way is likely to be starting off with the bare minimum connected (power pack and amplifier) and then add components (Pi, then wifi, screen etc.) and determine when the noise occurs. Some alternate tests to prove the noise source may be useful (if you get noise with PSU, Amp and Pi also try with a different PSU ideally mains PSU with linear regulator rather than a switching regulator).
Using a resistor and large capacitor seems like you're trying to fix the wrong problem. You would likely do better with a smaller capacitor and no resistor. If nothing else the resistor is converting a fair chunk of your battery packs energy into heat without doing anything useful with it.
In terms of dealing with the noise you probably want an inductive component in there rather than a pure resistor. Capacitors will pass high frequency AC and block DC, Inductors will do the opposite by blocking high frequency AC and passing DC. With a suitable LC circuit you can block the AC components from passing the filter (the ferrite beads you often see on signal cables are then to add inductance blocking unwanted high frequency on parts of the conductor).
using the amp without the pi powered, using the amp on the same power pack but nothing else powered on --- 0 or near 0 noise.
using the amp with the pi powered , but the audio input wires not attached yielded 0 or near 0 noise.
using the amp without the resistor or the capacitor , but attached to either the 1amp or 2.1 amp USB 5v leads on the power pack still produces noise with the pi on, but not with the pi off. The nature of the sound of the noise is most likely the typical noise people on youtube talk about when "attaching power to the pi and amplifier on the same rail" --- I'm just uncertain how to seperate the 2 while still using the same power pack as it is meant to be portable (think pocket size)
I have also run the amp on a wall plug with 5 volt output and it produces near 0 or 0 noise, even with the pi on (with seperate power source) , and I have run the amp powered by one 5 volt power source and connected it to the line out from my laptop , yielding ideal results.
The Screen is not something I want to disconnect from the pi as it attaches to ~12 GPIO pins and is powered via GPIO 3V3, an it seems like all I need to do is somehow separate the pi's power from the amp's power, but I don't know how to do that while having only a single power switch and within a reasonably small form factor casing. I suppose I could use a small-medium cellphone lithium ion pack and piggyback it off the main pack to keep it from discharging without recharge... I'm not precisely sure how I'd be able to do anything with that though. It sounds like it'd take more space and possibly not be any better solution than building a small power supply separation circuit --- I just have not as yet found enough data on how to properly make one with minimal expenses (I'm trying to limit my parts sourcing to desoldered diodes, resistors, capacitors , and whatnot from a dead stereo system, and whatever I have laying around)
I hope I've answered your questions. All assistance is appreciated so thank you for even asking the questions you've asked. Same goes to everyone else so far.