This is a simple demonstration circuit for generating PWM to control speed of a DC Motor or Dimming DC LED lights that operate at 12V or Higher. Initially the circuit may take some time to charge the capacitor and then 1st OpAmp will generate Triangular wave, and 2nd OpAmp Is used as Comparator to generate Square Wave. You can adjust PWM Duty Cycle using potentiometer