Hello, I have a LED that I can manage with Apple Homekit using Nodemcu. This LED is too bright for me. I looked around a bit but couldn't find much of a source. I want to make this LED dimmable using Apple Homekit. There are a few contents, but none of them are detailed. Can anyone help if they've done it before or have any ideas?
The parts I used are;
nodemcu esp8266
LED driver 12v 2a 25w
12v to 5v-3.3v power supply
3.5 meter led strip
Relay
There are TWO ways to dim a led. The first is to reduce the current going to the led. The second way is to rapidly turn the led on and off. By reducing the on time and increasing the off time, your eyes will perceive the led is dimmer.
Which way are interested in going?
OK, you'll need a MOSFET driver. It will "pass-through" PWM and it will dim just like a regular-little LED. (You can leave-out the diode since you have a non-inductive load.)
But, I don't know anything about interfacing with the HomeKit.
The guy in the video I mentioned above did it. The diagram is available below. Will this work for me? He used transistors there, but I didn't understand what he used them for. He used IRLZ44N. I have IRFZ44N. If this mosfet will work for me, how do you recommend I make the connection? Or what do you suggest I do?