Simulation SPWM Microcontroller
Simulation SPWM Microcontroller
Abstract— This paper proposes a dynamic system based on that is the speed can be changed through sliding s , power
microcontroller, that generates a three-phase SPWM command, supply frequency f and the number of pole pairs p .
with variable frequency which is needed to an inverter designed
to operate at U/f = const. It is presented a original simulation The maximum speed of synchronism ( n0 ), is imposed on
system, whose implementation and testing has allowed the
establishment of directions of action necessary for the design of
the frequency of the rotor voltage f . On the other hand the
the software for programming the microcontroller. In the national electricity supply is concern on ensuring a constant
research carried out has always been analyzed how external frequency (50 Hz).
commands can be sent to the microcontroller. There are
considered as essential three external prescriptions: the
The above clearly highlights the need of using static
frequency of the three-phase sinusoidal voltage, the maximum converters to generate supply voltage of another frequency.
voltage to the inverter output and the multiplication factor for Due to the superior performance that can offer, lately most
frequency of the triangular wave used to generate SPWM researches were directed towards the achievement of vector
modulation. control of induction motors. Control processes based on the
principle of field orientation allow the control of the torque
Keywords— PWM-sinusoidal, U/f=const., microcontroller,
with high performances (small inertia, well-damped).This
simulation.
advantage is balanced by the need to purchase complex and
expensive electronic equipment.
Currently, the most common method of speed control of an
I. INTRODUCTION induction motor remains changing the frequency of the supply
The issue itself, the realization of electrical drives based on voltage. Adjustment range is very wide; the yield is good and
the use of static converters today is no longer a novelty. the mechanical characteristics are rigid. Practical realization of
Regarding however the design and implementation of concrete the change of the frequency involves motor voltage supply
systems based on power electronics, the last period showed a from sources with variable frequency, which can be: electric
special trend. This is due to the growth of the performances of rotary converters or frequency static converters. Assuming that
these drives compared to conventional drives, due to special the supply voltage U 1 = ct. , it follows that, at frequency
monitoring and control possibilities they offer. f < f N the resulting flow increases, causing the saturation of
Static converters consisting of semiconductor devices the machine. Therefore, for speeds less than the nominal value,
(static switches) and auxiliary components (coils, transformers, it changes both the voltage and the frequency, maintaining a
capacitors, etc.) are used to modify one or more parameters of constant ratio U 1 f . Using this classical control method
the supply with electricity of a consumer. (scalar) it has the advantage of a lower cost price of the
Viewed from the perspective of electrical drives, the equipment and it is preferred for smaller installations, without
asynchronous motor is the cheapest motor, with the lowest outstanding dynamic demands.
consumption of copper, but much more difficult to control Always, when we want to achieve an inverter for an electric
compared to the DC motor. This explains the need for further drive we will start from energy consumption needs that the
research in the field of electrical drives with induction motors. installation presents. They are the ones that determine
Three-phase asynchronous motor has a rigid natural constructively the force assembly. Many manufacturers of
mechanical characteristic. The expression of its speed is: electronic components provide either discrete components or
integrated power modules as three-phase bridges, single phase
60 ⋅ f bridges or half-bridges that encompasses multiple devices
n = n0 (1 − s ) = (1 − s ) (1)
p (IGBT, MOSFET). Also, there are available numerous types of
integrated drivers that can operate power switching devices.
For example CI-IRS23365DM can command optimally up to 6
Annex 2 shows all the impulses generated for the required the increase over 50Hz the pulses are generated considering a
frequency of 50Hz. In Fig.3 are compared the control impulses constant output voltage, while at 30Hz the control pulses at the
from the phase R at 30Hz, 50Hz and 60Hz (command + in blue output of the inverter shall provide a voltage having the set
color and command – in magenta color). It is noted that after value of 60% from the one at 50Hz.
Fig.3. Control pulses on phase R
The only impediment was given by the fact that this type of
IV. EXPERIMANTAL RESULTS microcontroller is set from factory a frequency of the system of
The results and observations obtained from simulations 1MHz, and the program contains many instructions. Internal
allowed the development of the program that has been operations related to these instructions (over 160 lines of code)
implemented in the microcontroller. For testing we used a summarizes a lot of working time at a frequency of 1MHz and
microcontroller type ATMEGA328, from an Arduino Uno this has imposed limitations on the increasing the frequency of
board. We have chosen it due to the easy way we can make the triangular wave. For example, the simple addition of two
changes in the program. terms of 8-bit requires a time of about 4μs [6].
The results obtained and presented in the oscillograms from In Fig. 4. are presented the oscillograms of pulses provided
the following figures confirmed that the software is working by the microcontroller for 25Hz, 40Hz, 50Hz and 60Hz. The
correctly and that the microcontroller can generate the desired first three signals are controls on the positive side of the three
control pulses. phases (R+, S+, T+), and the fourth signal presents the control
pulses on the negative side of the R- phase.
25 Hz 40Hz
50Hz 60Hz
Fig.4. Pulses generated at different frequencies