In order to get the PWM signal out of a sawtooth (ramp up/down) I usualy use an operational amplifier and set the reference value with a potentiometer. This is how I can then modify the PWM by turning the potentiometer.
Is it possible to get a PWM signal out of a triangle signal using operational amplifier in a similar way?