Fading LED Contest
More efficient LED dimming
There is nothing special about the integrator, a low leakage capacitor is needed.
The op-amp comparator has much higher input current as the inputs are not at the same voltage. The tiny capacitor on the positive feedback is to speed up the switch between states.
The switch mode LED dimming, measures the current with a sense resistor (R1) and the voltage developed is amplified 25 times to give the negative input (NE) to the comparator. The control input (CTRL) is divided by 4 to give the positive input (PO) to the comparator. The comparator is given hysteresis equivalent to plus/minus 0.5 mA, but this is nearer 1 mA in simulation. This comparator has a 'floating' output transistor and the emitter-follower output is used, so the inputs are swapped.

Updates from the author