I am currently working on a LED system prototype using 3W LEDs. I am using these LED drivers but the 700mA variants. It is based off the XL4001E1 constant current chip, datasheet I used for reference can be found here. At page 4 of the datasheet is a schematic for a LED driver application of the component, but I think is only somewhat similar so I am not sure to serve it as basis for the driver module mentioned.
I am also using an ESP32 MCU for PWMing the LEDs since the driver provides PWM functionality. I plan in using a 24v switching PSU for the LED and 5v adapter for the ESP32 where their grounds are common. Schematic provided below:
My questions are:
1.) How come when I turn off the LED system, the LED flickers for a bit before turning off? Is it because of the capacitor discharging at the output of the driver pins as shown in figure 5 of the datasheet? How should I look into fixing this?
2.) Should I probably isolate the MCU from the LED circuit using an optocoupler or should this layout be somewhat acceptable even for long term use?
3.) I am planning to use this design as a customized lighting system in plant canopy. Would this kind of setup be 'ok' for long term use?
I am using high power 3w RGB LEDS, hence, the three parallel LED strips where each color can be controlled using PWM to somehow provide multispectral lighting outputs. The RGB LEDs has forward voltages 2.2V, 3.2V, 3.2v respectively, that can be run at 700mA for max brightness.