ESP32 handheld music player PCB - can someone look this over before I order?

Dec 01, 2026 Last reply: 6 hours ago 3 Replies

First reply

ebarlow

I'd hold off on ordering til you've had another look at the USB side. You've built a hub with a programming chip and a card reader behind it, all feeding an ESP32 module that can't speak native USB, so that whole branch only exists to get code onto the chip. If you genuinely…

Read the full reply

I've been working on a handheld music player around an ESP32-WROVER-IE and I think I'm at the point where another set of eyes whould help. I've run my own checks a few times but I keep second-guessing myself, so honest feedback welcome, even the brutal stuff, before I send this off for fabrication.



The main bits: USB-C goes into a USB2514B hub, with a CP2102N for programming and a GL823K SD card reader hanging off it. Audio is a NAU88L21 headphone codec, plus a DRV2605L for haptics and a TMAG5273 hall sensor that reads the scroll wheel. The screen is a 2.8 inch SPI display on a 40-pin FPC connector, and there's a microSD slot as well. Power side is what I'd most like scrutinised. A BQ25628 charger handles the 1-cell LiPo and makes SYS at 3.0 to 4.4V from USB or the battery, then a TPS63802 buck-boost turns that into 3.3V, since SYS wanders above and under 3.3V depending on charge state. A TPS7A20 LDO gives clean 1.8V for the codec's analog rail. Three TPS22918 load switches kill power to the screen, SD card and USB chips in sleep, the USB one triggered by VBUS. A CN5711 drives the backlight and a MAX17048 tracks the battery.



Anything jumping out as wrong or risky? Genuinely unsure about a few of these choices myself.


I'd hold off on ordering til you've had another look at the USB side. You've built a hub with a programming chip and a card reader behind it, all feeding an ESP32 module that can't speak native USB, so that whole branch only exists to get code onto the chip. If you genuinely need USB host features, switch to an ESP32-S3 module, which has USB built in, and most of that circuitry disappears. If you don't need it, cut it entirely, along with the auto reset and boot circuit, and just break out pins for programming with a debug probe. That's alot of board area, BOM cost and sleep current saved for something that does one job. The battery is the other thing I'd want sorted before fabrication. Right now the back-to-back FETs inside the charger are the only thing standing between the cell and the rest of the board. If they fail closed, you've got nothing downstream. I'd add secondary protection so a single component failure doesn't take the whole handheld with it.

Also worth a check on your own: what ESD protection you actualy have on the type C side and on the codec's jack lines. A handheld gets handled, pocketed and plugged in constantly, and those are the two spots that take the abuse. For a future revision rather than a fix: consider running everything off one rail, there are decent microcontrollers that are happy at 1.8V. And be honest with yourself about the ESP32's idle draw, it eats a battery for breakfast in a device this size. I wouldn't stress about switching converter ripple being audible, that 100kHz-plus stuff is well out of the audio band, and an RC filter gets you smoother supply if it ever bothers you.

The power tree you describe is sensible on paper, it's just a lot of stages for what the board actually needs once the USB question is answered.

The point that landed hardest for me was the sleep current one. I built a little battery gadget once and only thought about idle draw after the fact, then wondered why the battery seemed to vanish overnight. Once I started actually measuring what was still powered in sleep, the fixes were obvious and the battery life doubled. So before you order, I'd write out what your load switches actually kill versus what stays fed, and what the ESP32 itself pulls when it's meant to be sleeping. Also curious how you're handling the hall sensor, is it awake the whole time or switched too?

The load switch for the USB branch caught my eye too, since the USB one is triggered by VBUS rather than the ESP32. Does that mean it turns itself back on whenever a cable's plugged in, even if the board's meant to be asleep? Might be worth double-checking what actually draws current there, sounds like it could quietly undo the sleep savings the other two switches give you.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required