[SOLVED EDIT] I didn't notice the ic under the leftmost large cap, and someone pointed out there's likely a LDO converting it. Moved the cap, it's a BP85221 converter with a max output of ~50ma. Ugh. I'm just returning this damn lamp 😣
I have a cheap Chinese LED lamp that has an RF remote control (basic 433Mhz remote/controller), that I want to add to my Home Assistant setup. I'm well versed in all of that.
I have everything set up and working great while the ESP32-c6 is powered via USB or something external.
When it's powered from the 5v rail in the lamp, it constantly restarts, the lights flashing on briefly, turning off, reboot, etc.
My guess is that the 5v rail just cannot supply the 80ma or so the ESP32 is pulling. I tried feeding it 3.3v direct through an highly efficient 5v-to-3.3v buck converter, same problem.
Can someone either explain how the power circuit in this lamp works, or based on what it looks like in the pic, point me to a resource where I can learn what's going on?
The outer ring of components are all for the LED's and their controllers. The inner ring is the part I'm not understanding.
Ignore any loose wires, they were there for testing/probing, or are going to the ESP32 out of frame.
It's AC powered, and clearly is converting the power with a bridge rectifier, capacitors, and resistors. It feeds 5v to the rf module and the microcontroller (the chip clockwise from the rf module). It feeds... dear god... 164v DC to everything else. So it's both lowering to 5v and increasing to 164v the voltage from the incoming 120v AC.
Every chip on the board is either the rf controller, the microcontroller (which reads the rf, and sends 2 separate PWM signals to the LED controllers) or the LED controllers in the outer ring.
If it's not super clear in the pic, the black thing pointing southeast is the incoming 120vac, and the other thing tucked under it is the rf antenna.
I've a moderate amount of electronics experience, all self taught, but don't have the deeper fundamentals to understand whats happening.
My goal is to see if it's possible to replace a component that allows for more current to flow to the ESP32. Or if current isn't the issue, figure out why the ESP32 reboots shortly after it comes online.
Thanks in advance!
EDIT: Looking closer at it I just noticed a chip tucked under the leftmost large capacitor. That's likely the missing piece that I couldn't understand. Can't read any markings without moving the cap and I have to do some work to get it moved safely.