Once again, I am asking for your valuable know-how.
Goal:
Voice-controlled, dimmable LED ceiling lamp. Powered from 230 V house electrics.
Question:
What is the best/safest/most elegant way to power the MCU and to obtain the 10 V PWM
Parts:
Node MCU, Meanwell LCM 25 (LED Driver), 18 W LED Panell, (PSU for MCU and 10 V PWM --> This Question)
Additional Info:
The LCM 25 takes 0 to 10 V or 10 V PWM
It shouldn't get hot. If there are parts with furniture certification, it would be even better.
Schematic and idea:
I have added a power-point sketch (I am sorry). The red boxes are on the 230 V AC side, the green ones on the DC side. The blue lines represent the PWM signals (of course there would be + and -). The red and black lines are the + and - supply lines. In this schematic, I would propose to use a buck converter (230 AC to 10 DC). I am not sure yet how to do the 3.3 V to 10 V PWM conversion (i.e. with a gain or a mosfet).
Any suggestions to change/complete it are welcome.
If you need any additional information, please let me know.
To create a 10 volt PWM I would start with a 10 volt powersupply, a logic MOSFET transistor.
To power the MCU, use a 3.3 volt stepdown converter from the 10 volt.
I believe the Mean Well power supply has 10V built-in because it can be dimmed with "resistance".
You can make a transistor or [u]MOSFET driver[/u], and just connect the MOSFET''s drain to the PWM input. The MOSFET doesn't have to handle any current or "power" so any "logic level" N-channel MOSFET will work. (This is an inverting circuit so 0% PWM is 100% brightness, etc.)
It's all up to what supplier You have. Regarding the reply from @DVDdoug I wonder if just the MOSFET would do. You need to dig up more infor about that Mean Well power supply. I bought a little powersupply, that has a range of voltage from 4 to 24 volt, 1.5 amp from Ebay.
gian131294: @DVDdoug Wouldn't there be a short if the mosfet is at 100%
Yes, there would be, and that's fine.
Those dimmers can also be controlled with a (100k) potentiometer.
And that can be 0-100k.
There has been at least two Meanwell dimmer threads last week.
In there are the answers you seek.
Hint: a 10cent opto coupler with one 1k resistor is all you need, and potentially safer than a mosfet.
Leo..