A digital to analog converter?? How do you figure that?
You dont and wouldnt use a DAC to control some 12v led’s, thats silly and wont even work right without extra components.
All you have to do is read the specifications for the Analog to pwm module and it should be pretty obvious, that isnt what those are intended to be used for…
It works by sending 0 - 5v and the module converts that to 0% - 100% pwm, right? To turn the lights on 100% you need to send it 5v. Where and how are you sending it 5v and everything between 5v and 0v from a 3.3v esp32 gpio?
The answer is, you’re not going to… not without a bunch of extra circuits.
The other clue you must have missed is, there arent any current/amp ratings for that module. How much of a load can it drive? 500mAh?, 1Amp?, 2Amp? 10Amp?
It cant, its only meant for converting and sending out data/control signals to whatever device is actually driving the LED’, motor, or whatever. This isnt meant to drive any kind of load.
To drive LED’s from an esp8266/esp32 or any other microcontroller, you just need some mosfets if they use pwm and are NOT addressable led’s.
You can think of mosfets similar to a relay. They can both use a small voltage to control a much larger voltage. Where they differ though is a relay can only turn something On or Off. A mosfet can do that but, it can also be controlled to Open or Close a certain amount based on how much voltage you apply to its base(Just like PWM). For example you can turn something on 50% if you needed where a relay is only 100% On or 100% Off.
Also, you shouldn’t answer peoples questions and tell them what “they need” if you have no idea at all what they need. Are you just trying to get someone to waste their time and money?
Heres a little guide for using mosfets to control lights, motors, actuators, solenoids, etc, etc. Mosfets are used for lots of stuff.
https://www.amazon.com/Anmbest-High-Power-Adjustment-Electronic-Brightness/dp/B07NWD8W26/ref=mp_s_a_1_3?crid=201GES7A9OHUP&keywords=mosfet+module&qid=1707047188&sprefix=mosfet+module%2Caps%2C188&sr=8-3