I would like to use this schematic:
to create a square-wave generator but I would like to modify it by getting an output that runs from 0 to +5V, as well as changing the signal so that I can change the duty cycle of the pulse(PWM).
Should I replace the resistor R2 with a variable resistor so that I can get the PWM signal? If not, what would be the correct approach?
