Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
106
KRAIG
WWW.ROBOTIX.IN
TOPICS
1. Pulse Width Modulation
2. IC 555
PWM
MOTIVATION
PULSE WIDTH
MODULATION
PWM
PARAMETERS
FREQUENCY
If the frequency of the PWM signal is too low, then the continuous
ON-OFF will be visible as jerks.
However for high enough frequencies, the observed effect is that of
a time averaged signal
The working frequency for a motor drive is in the range of kHz
(thousands of times per second)
DUTY CYCLE
Many digital systems are powered by a 5-Volt power supply, so if
you filter a signal that has a 50% duty cycle you get an average
voltage of 2.5 Volts.
Other duty cycles produce any voltage (in discrete steps
depending on the resolution) in the range of 0 to 100% of the
high voltage.
AN EXAMPLE
If we closed the switch connecting the battery and lamp for
50ms, the bulb would receive 9V during that interval. If we
then opened the switch for the next 50ms, the bulb would
receive 0V. If we repeat this cycle 10 times a second, the bulb
will be lit as though it were connected to a 4.5V battery (50%
of 9V). We say that the duty cycle is 50% and the modulating
frequency is 10Hz.
HOW TO SUPPLY
PWM?
Most robots use a microcontroller to enable PWM. But
alternatively, a much simpler IC called the 555 Timer
can be used to generate PWM
This is a very widely used 8 pin IC, whose usage is
described in the following slides.
555 TIMER IC
The schematic pin diagram of the 555 IC is as
follows:
All details on the working of the IC are given in
its datasheet (available online). We will walk you
through the essentials here
ASTABLE MODE
OF OPERATION
The 555 timer has different modes of operation,
the most useful of which is the astable mode of
operation in which the output of the IC is
pulsating.
The PWM
parameters
(frequency and duty
cycle) depend on the
values of R1, R2 and
C.
PWM
PARAMETERS
FOR 555 IC
LOW DUTY
CYCLES