Guide · Power-supply noise · Arduino · ESP32 · Raspberry Pi Pico

Works on Battery, Fails on a Charger? The Power-Supply Noise Guide

Works on battery but not on a charger? The same circuit and code behave like two different projects:

🔋 on batteries: works 🔌 on a charger: jumps, hisses, drops out

That difference has a name: power-supply noise. This guide shows how to confirm it in 2 minutes and how to fix it for good.

Ramanu Systems · Pune, India · 4-minute answer, 12-minute deep dive

Quick answer

Batteries give clean, steady power. Phone chargers, laptop USB ports and power banks are switching supplies that add ripple and spikes. On top of that, Wi-Fi, motors and LED strips on the same rail add their own current bursts. Sensors, radios and microphones are sensitive enough to pick this up.

Fix: give the sensitive parts their own clean, low-noise 3.3 V supply, and keep the noisy loads on the main rail.

Find my symptom ↓ Run the 2-minute test

Find your symptom

Pick the card that matches your project. Each one goes to a detailed fix.

⚖️Weight keeps jumpingHX711, NAU7802, ADS1232 load cellsRead the fix → 📡Radio not working or droppingNRF24L01, NRF24L01+PA+LNARead the fix → 🎤Microphone hiss or spikesMAX4466, MAX9814, WLEDRead the fix →
🛰️GPS won’t get a fixGPS receivers detect extremely weak signals. Avoid powering them from switching regulators; a quiet linear 3.3 V supply helps.
📈analogRead keeps jumpingArduino, ESP32, ADS1115, TMP36, pH sensorsRead the fix → 🎵DAC hiss or Wi-Fi whinePCM5102, ESP32 internet radio, Pi audioRead the fix →
❤️ECG signal noisyAD8232 boards. Most noise is 50 Hz mains pickup: run on battery (safer too), keep electrode leads short, and give the analog front end a clean 3.3 V.

Where the noise comes from

Most hobby projects run everything from one rail: the board’s 5 V or 3.3 V pin. The noisiest parts and the most sensitive parts end up sharing the same wire.

Noise sources (phone chargers, Wi-Fi bursts, motors, LED strips) feed one shared supply rail that also powers sensitive parts (load cells, radios, GPS, microphones, ECG). Fix: give sensitive parts their own clean 3.3V
Figure 1. Noisy loads and sensitive parts sharing one rail. The fix separates them.
Noise sourceWhat it does to the rail
Phone and laptop chargersSwitching converters leave ripple and fast spikes on the 5 V output, and the quality varies a lot between chargers.
Wi-Fi and BluetoothThe ESP32 draws short bursts of up to about 500 mA while transmitting, which pull the rail down.
Motors, relays, servosLarge surges when they start, plus brush and switching noise while running.
LED stripsPWM dimming switches large currents on and off hundreds of times a second.

The 2-minute test

Before you change anything else, confirm the supply is the problem. Batteries are electrically quiet, so they make the perfect reference.

Flowchart: power only the sensitive part from AA cells; if the problem disappears it is supply noise, otherwise check wiring, code and grounding
Figure 2. Power only the sensitive part (sensor, radio or mic) from two AA cells, keeping its GND joined to your board. Check its voltage range first: two AA cells give about 3 V, three give about 4.5 V, which is too much for 3.3 V-only parts like the NRF24L01.

The fix: separate quiet power from noisy power

1Add a clean 3.3 V railA low-noise linear regulator fed from 5 V, used only for the sensitive parts.
2Keep noisy loads apartWi-Fi boards, motors and LED strips stay on the main supply, or get their own.
3Join grounds at one pointShort, direct ground wires, so motor and LED currents don’t flow through the sensor’s ground.

The clean rail we designed for this

TrueVolt LN-7A2033 · Clean power for sensors, radios & audio

Put it between any 5 V source and your sensitive parts. Three pins, no code.

  • 7 µVrms noise and 95 dB ripple rejection at 1 kHz (genuine TI TPS7A2033)
  • 300 mA: sensors, radios, GPS, mics and ADCs together
  • Ferrite filtering, Samsung 1206 capacitors, aluminium PCB
  • Reverse-polarity and reverse-current protection
  • Designed & made in Pune, India
That’s the practical answer.Engineers who want to compare supply options, read on.

For engineers: choosing a supply for sensitive circuits

Supply optionNoise on outputStrengthsWeak points
Board 3.3 V pinWhatever the board’s regulator and loads addAlready thereShared with the MCU and radio; limited current (about 50 mA on an Uno)
AMS1117 module≈100 µV (10 Hz–10 kHz)Cheap, 800 mA≈1.1 V dropout, ~5 mA quiescent, modest ripple rejection
Buck converter moduleSwitching ripple, often tens of mVEfficient at high currentThe noisiest option for sensors unless followed by an LDO
BatteriesVery lowQuiet, isolatedVoltage falls as they discharge; they run out
Low-noise LDO (TPS7A2033)7 µVrms (10 Hz–100 kHz)95 dB PSRR at 1 kHz, 140 mV dropout300 mA limit; dissipates (Vin−3.3 V)×I as heat

For high-current systems, the common professional pattern is a buck converter for efficiency followed by a low-noise LDO for the sensitive rail. The buck does the bulk conversion; the LDO cleans up what’s left.

What PSRR means in practice

Power-supply rejection ratio is how much of the input noise a regulator blocks. 95 dB means ripple at 1 kHz is reduced about 56,000 times. PSRR falls at higher frequencies for every LDO, which is why good modules add ferrite beads to catch the MHz switching hash from chargers.

What a cleaner supply won’t fix Ground loops (for example hum from a USB DAC connected to an amplifier) need isolation, not a better regulator. Radio interference picked up through the air needs shielding and layout. Wiring, code and mechanical problems need their own fixes. The 2-minute AA-cell test tells you which kind of problem you have.

Frequently asked questions

Why does my Arduino project work on battery but not on a charger?

Batteries give clean DC, while phone chargers and laptop USB ports are switching supplies that add ripple and spikes. Sensitive parts like load cells, radios and microphones pick up that noise. Power them from a dedicated low-noise 3.3 V regulator and keep noisy loads on a separate rail.

Is laptop USB power noisy?

It can be. Laptop USB power passes through the laptop’s own switching converters and shares ground with everything inside, and it changes when the laptop’s charger is plugged in. Many makers see their readings change when the laptop starts charging.

Are phone chargers bad for electronics projects?

They are fine for powering microcontrollers, but their output ripple and switching spikes vary widely between brands. For sensitive analog, radio or audio parts, add a low-noise linear regulator after the charger.

Will a capacitor fix power-supply noise?

A capacitor helps with short spikes and current bursts, but it does little against low-frequency ripple or a weak, current-limited source. A low-noise regulator plus a local capacitor handles both.

Should I use a buck converter or an LDO for sensors?

An LDO for the sensitive parts. A buck converter is efficient but leaves switching ripple. For high-current systems, use a buck converter followed by a low-noise LDO.

Is the AMS1117 a low-noise regulator?

No. It’s a general-purpose regulator, fine for powering microcontrollers. Its datasheet output noise is around 100 µV and its dropout is about 1.1 V, while a dedicated low-noise LDO like the TPS7A2033 is specified at 7 µVrms with 140 mV dropout.

What is the best power supply for noise-sensitive sensors?

A dedicated low-noise 3.3 V linear regulator, fed from 5 V and used only for the sensitive parts. For example, the Ramanu TrueVolt LN-7A2033 (TI TPS7A2033, 7 µVrms, 95 dB PSRR at 1 kHz, 300 mA) turns noisy USB or charger power into a clean rail for sensors, radios and microphones.

Fix it today

Make your project work on any charger

One small module, genuine TI inside, made in India. Cheaper than one failed demo.

© Ramanu Systems · Precision electronics modules, Made in India · Regulator figures from the Texas Instruments TPS7A20 and AMS1117 datasheets. ESP32 transmit current from Espressif guidance. Found an error? Tell us and we will fix it and credit you.

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top