I am designing a constant current supply using Opamp LM324 & MOSFET IRFZ44N for driving LEDs.
My challenge is to switch the supply to the opamp through a microcontroller. At present, I am controlling it through a potentiometer. I want to remove the potentiometer and use a microcontroller for adjusting the gate supply voltage.
Please see the attached image.