I'm building a project with a high-power 10W RGB LED controlled by PWM from a microcontroller. Right now I'm using a wall wart to power the LED, and powering the MCU through my computer's USB.
My question is: what are the best practices for powering the MCU and LED from just one wall wart that plugs into the final enclosure? I don't want the final box to have two power lines going into it since that strikes me as ugly and I want to eventually show off the final product.
I want just one wall wart that splits its power inside the box to provide anywhere from 6 to 12V (ESP32 regulator accepts 6-12V) with at most 400 mA to my MCU, and another line or lines going to the RGB LED to power the Green+Blue channels at 3.5V and ~500mA and the Red at 2.5V and ~700mA. Something like a 9V, 1.5A wall wart would provide plenty of power for the whole thing.
I'm asking this now because I'd like to understand what sort of Buck converter/switching/linear power supply I would need to design/buy right now that will integrate with the single power source.
Strangely, I can't find any example on Google of finishing a project like this, so if anyone knows of a resource with an example or education on this, I'd appreciate a link.
EDIT: I was thinking of an LED like this one. Except RGB, and not RGGB. I'm open to LED suggestions.
Based on this article on wall warts it seems risky to use them because they're often unregulated.
After looking around some, I found this board mountable AC-DC converter at the right power and with the right over voltage/over current/short circuit protections. This seems like a good solution for a safe final product and I could plug the mains directly into the enclosure and into this power supply.