Triangle and PWM Generator
Triangle and PWM Generator
Triangle and PWM Generator
AIM:
1) Design a triangle wave generator.
2) Create pulse width modulation (PWM) with varying duty cycle.
COMPONENTS USED:
Op-amp TLE2082
Comparator LM319
Resistors - 1KΩ, 8.2 kΩ, 10 KΩ
Trimmer - 100KΩ, 1MΩ
Capacitors – 10nF
Breadboard
OBJECTIVES:
1) Calculate the capacitor value required to achieve 30kHz switching frequency in the circuit shown below
(assuming the trimmers are set to 0)
(R ¿ ¿ 2+ R3 )
F= ¿
4 R1 ( R 4 + R5 )C 1
(R ¿ ¿2+ R 3)
C 1= ¿
4 R1 (R 4 + R5) F
10∗103
C 1=
4∗8.2∗103∗103∗30∗10 3
C 1=10 nF
Using the above values for resistors and capacitor, following circuit has been assembled and the output
triangle wave is obtained as shown
1
F=
T
1
F=
35 µs
F = 28.57 MHz
2) Calculate the range of frequencies that could be achieved with the circuit below.
Minimum Frequency:
Equation for the Frequency of the triangular wave: -
( R ¿ ¿2+ R 3)
F t= ¿
4 R 1 ( R4 + R5 )C 1
( 10∗103 )
F min=
4∗8.2∗103∗{ 100∗103 +103 }∗10∗10−9
F min=301 Hz
Minimum Frequency obtained through practical implementation can be calculated from below figure:
1
F=
T
1
F=
3.2m s
F = 312.5 Hz
Maximum Frequency:
Equation for the Frequency of the triangular wave: -
(R ¿ ¿ 2+ R3 )
F= ¿
4 R1 ( R 4 + R5 )C 1
F max=3.07 MH z
Maximum Frequency obtained through practical implementation can be calculated from below figure:
1
F=
T
1
F=
4.5 µs
F = 0.22 MHz
3) Draw a schematic of the triangle wave circuit (pictured below) connected to an LM319 comparator so the
triangle wave can be compared to a DC signal. Ensure you show component values and IC pin numbers
4) Take an oscilloscope screen shot of the DC crossing the triangle wave and PWM output for a single duty
cycle.
5) Comment on why the theoretical frequencies calculated above could not be achieved.
The Exact values of the components (resistors and capacitor) used in the circuit cannot be
implemented practically. There will be slight deviation from the true values. Loses in each component due to
heating and resistance offered by capacitive element are all neglected. Because of these factors, theoretical
values could not be achieved.