The circuit above shows a pulse width modulator. The input is compared with a triangular waveform. Use the (fixed frequency) oscillator you made earlier in
this experiment to generate the triangular wave. Use an LM311 comparator with dual supplies. LM311 has an open collector output. Be sure to connect a load resistor to bias the output transistor in the IC. Verify the operation by monitoring the output waveform and varying the dc input.