I like your idea of using two optoisolators acting as a current mirror.
D-ctrl voltage (referenced to Gnd2) now follows the input PWM-derived voltage closely. A maximum D-ctrl voltage of 2.5V corresponds to a 75% duty cycle of your 3.3V PWM input signal.
The optos might need to be a thermally-coupled matched pair.
An advantage of the higher LED current is that the opto transistor minimum Vce is reduced, giving a lower D-ctrl voltage for better dimming.
The circuit can be modified to overcome any change in the 10uA current, by reducing resistor values drastically, thus swamping the 10uA current so that it becomes insignificant, as below :-if that Dim Control current varies, then both my R1 and R2 need to change.
D-ctrl voltage (referenced to Gnd2) now follows the input PWM-derived voltage closely. A maximum D-ctrl voltage of 2.5V corresponds to a 75% duty cycle of your 3.3V PWM input signal.
The optos might need to be a thermally-coupled matched pair.
An advantage of the higher LED current is that the opto transistor minimum Vce is reduced, giving a lower D-ctrl voltage for better dimming.
Last edited: