PWM Power LED dimmer:
![](https://cdn.hackaday.io/images/original/1686571516239932370.gif)
Quick Tour Video:
Operation Principle:
![](https://cdn.hackaday.io/images/original/5685261516236318567.gif)
When output is 1 (high) capacitor C charges through resistor R.
When C voltage reaches the HIGH THRESHOLD, gate out inverts & falls to logic 0.
Now capacitor C discharges through resistor R.
When C voltage reaches the LOW THRESHOLD, gate out inverts & rises to logic 1.
This sequence repeats & generates a 50% duty cycle square wave output ( at a frequency of around 70KHz)
Variable Duty Cycle:
![](https://cdn.hackaday.io/images/2751061516240065651.png)
By separating the charge & discharge paths with a resistor and a diode, we can alter the DUTY CYCLE that is, the ON time vs the OFF time.
Replace resistors with a potentiometer, and you have a continuously variable duty cycle multivibrator .
Circuit Diagram:
![](https://cdn.hackaday.io/images/9291251516237696833.png)
Circuit Operation Details:
![](https://cdn.hackaday.io/images/4971911516237811713.png)
![](https://cdn.hackaday.io/images/5878971516237827446.png)
![](https://cdn.hackaday.io/images/4053431516237839171.png)
![](https://cdn.hackaday.io/images/3449841516237849855.png)
![](https://cdn.hackaday.io/images/2040171516237861636.png)
![](https://cdn.hackaday.io/images/1071831516237871332.png)
![](https://cdn.hackaday.io/images/9269921516237880357.png)
The specific FET and supply for the LEDs will depend on the required current-voltage of the led array. Supply can be a constant current source or constant voltage one with a small value series resistor, and with an output voltage slightly above the total led forward voltage drop.
Nice, I see you solved the zero problem as well.