I am working with LED drivers and compatible LED lights. They look somewhat like this:
These come in two versions: (1) Constant voltage type and (2) Constant current type
I am implementing a circuit which is able to dim the light. It involves a mosfet switch which sits between the driver and the LED.
For the driver which outputs constant voltage, the circuit works fine. I am able to vary the brightness of the LED by varying the duty cycle of my PWM signal.
However it doesn't work for the driver which outputs a constant current.
What would be the equivalent method for dimming the LEDs in case of a constant current source?