AN1660
AN1660
FIGURE 2: TRADITIONAL
SINGLE-PHASE AC
INDUCTION MOTOR
TOPOLOGY
Topology
A three-phase inverter can be used as a substitute to
the permanent capacitor as seen in Figure 3.
Note: Six PWM signals are used to drive the connected squirrel cage PSC motor.
Symbol Description
At Time-Varying Waveform
Am Waveform Magnitude
Note: VU and VW are each 90 degrees out of
VDC Direct Current (DC) Offset
phase from the middle winding, VV.
Equation 3 shows the individual inverter phases after Phase VV is considered the neutral one. Each winding
applying the general representation of a time varying has VV as its reference.
sine wave.
As Figure 5 shows, the peak voltage is much lower The resultant waveform across the motor does not
than the original 311V. After substituting values into utilize 100% of the input DC bus voltage.
Equation 1 from Equation 3 and locating where the Space vector PWM is therefore used to recover this
maximum voltage occurs in the auxiliary and main missing percentage of voltage; however, this strategy
waveforms, the peak voltage evaluates to ------
1 V DC, or
only works for three-phase motors that have each of
2
70% less than that of connecting the motor directly to a their windings 120 degrees out of phase from one
another. Another strategy that can be used is to add the
220 VRMS source with capacitor. The two resultant AC
third harmonic to the sine wave so that close to 100%
waveforms across the motor’s stator are only utilizing of the DC voltage can be utilized. Please see AN955 for
70% of the available DC supply. Figure 6 shows the more details on sine PWM generated phases with 120
three phases from Equation 3 alongside the two-motor degree phase shift. The software included with this
waveforms from Equation 1. inverter board contains a look-up table with the modi-
fied values.
Figure 7 shows the current through the windings.
Introduction
This section explains the scientific comparison
between the PSC run method versus the inverter
method with no run capacitor. Table 1 shows a
summary of the tests conducted.
TABLE 1: SUMMARY OF TESTS
Test Purpose
Torque To characterize the effects of Variable Frequency Drive on the motor’s torque.
Acceleration and Speed To identify which method turns the motor shaft the fastest and how quickly the load will
accelerate.
Efficiency To compare the real component of the output power to the input power and to measure the
power factor and other inefficiencies.
These three tests cover the largest design
considerations in motor control. None of the tests
require a special setup from the other tests. Each
analysis in the three separate tests uses the same
subset of data.
Equipment
Table 2 lists the equipment used during the tests.
TABLE 2: CURRENT THROUGH COILS USING A CURRENT PROBE
Purpose Model
Three-Phase Power Analyzer Yokagawa WT1806
Braking Source (Dynamometer) Magtrol Hystersis 715-D
Programmable Controller (Dynamometer) Magtrol DSP6001
PC Control Testing Software (Dynamometer) Magtrol M-TEST7
1800w AC Power Supply California Instruments 2001RP
A single motor from WEG was used during the
experiment. Its nameplate readings can be seen in
Table 3.
TABLE 3: MOTOR NAMEPLATE READINGS
Property Value
Size 1/4 HP
Type One-phase ACIM
Poles 4
Frequency 60 Hz
Voltage 220V
Current 1.2A
Run Capacitor 12 uF
Speed 1645 RPM
Main-Winding Resistance 13
Auxiliary-Winding Resistance 13
Test Setup
The entire test setup can be seen in Figure 8.
Power
Analyzer
Programmable
Controller Power Supply Motor Board
Data Logging
HD Hysteresis Dynamometer
Note: A Hall effect sensor measures the shaft speed. The programmable controller
applies the test setup from the M-TEST 7 software to the dynamometer and
reads the applied torque. All other readings are performed by the power
analyzer and logged.
The input to the system is single-phase, two-wire All tests lasted under 60 seconds because of the risk of
(1P2W) voltage at 220V, 60 Hz. The power analyzer is damaging the insulation of the motor as a result of large
also configured for 1P2W on its single element input. prolonged currents in the stator.
The output from the power analyzer is fed into the two
Note: Please refer to the motor manufacturer’s
terminals on the inverter. The inverter has an optional
recommendations on the subject of
voltage doubler that is not used during the tests since
prolonged stress testing (locked rotor).
the input voltage is greater than 115V. Three wires are
then connected to the motor windings as seen in The inverter board’s properties for the entire test
Figure 3. duration are listed in Table 4.
The PC interface runs the M-TEST software which TABLE 4: INVERTER BOARD
configures the programmable controller and hence, the MODULATION PROPERTIES
dynamometer. When a test is running, the
Property Value
programmable controller adjusts the dynamometer to
apply a specific braking force. Before initiating a test, Switching Frequency 7.82 kHz
the motor is brought up to its maximum free running Sine Table Look-up Values 64
speed. When the maximum speed for a specific
Dead Band 420 ns max.
frequency is reached, the test begins. The duration of
the test depends on the starting speed of the motor. When the test is complete, the power analyzer and
The M-TEST software runs a dynamic ramp test with motor feedback readings are consolidated into a
inertia cancellation on the motor. A ramp test spreadsheet and plotted with MATLAB®.
decrements the motor speed in steps of 50 RPM until it
reaches a minimum of 150 RPM. A single locked rotor
reading is extrapolated using 20 data points.
The input voltage is first doubled if the jumper is DC bus voltage. As the motor spins, the microcontroller
inserted for 115V systems with a 220V motor. monitors the speed and current limit settings, as well as
the feedback current, to ensure overcurrent protection.
Note: Please see Table 20 for configuration
settings. Incorrect jumper settings may
cause the board to malfunction.
It is then rectified to a DC bus voltage. This DC voltage
is then used in a flyback converter to generate two 15V
DC regulated supplies. Each 15V power source is then
down-converted to 5V from a linear regulator. The user
interface uses optocouplers as isolation for safety
issues. The printed circuit board has a clear indicator in
silkscreen that designates what is safe to touch.
PIC16F1509 has six PWM lines driving the
three-phase inverter, which are connected to the motor.
The modulated sine wave is created from the rectified
VDD 1 20 VSS
RA5 2 19 RA0/ ICSPDAT
RA4 3 18 RA1/ICSPCLK
PIC16LF1508/9
MCLR/VPP/RA3 4 17 RA2
PIC16F1508/9
RC5 5 16 RC0
RC4 6 15 RC1
RC3 7 14 RC2
RC6 8 13 RB4
RC7 9 12 RB5
RB7 10 11 RB6
main.c modulate.c
It consists of state machine and global ISR flags. The It calculates the adjusted sine wave when given a Volt
PWM routine is given priority. No blocking code other and phase parameter and it saves all 64 values in a
than this routine is within the ISR. All other interrupts pre-filled buffer. The soft-start routine pace of
are serviced outside of the interrupt vector to give increment is limited by how fast this routine can
precedence to the modulation routines. complete, since the voltage and phase parameter often
demo_board.c change. When the motor is steadily running, the buffer
will not change often, since the two inputs are typically
This file acts as a facade to the main.c file. A facade constant.
is a software design pattern that provides a unified
interface to multiple complex subsystems. In essence, pwm.c
it alleviates the complex logic from the main.c file. The This does the actual loading of the PWM registers from
majority of the methods called from the main loop to the phase structure. The CLC is configured here to
this file are abstracted away to other files. generate three complementary PWMs.
bsp.h soft_start_stop.c
The board specific header file contains all hardware This file contains math-intensive operation methods.
definitions. This is referenced in most other files. Before doing a soft-start/stop, the speed POT position
common.h is measured. This position divided by the number of
steps for any given sequence, SOFT_START_DURA-
This file is the only file that should be modified to TION, will be added every SOFT_START_DELAY.
fine-tune the general settings, such as switching Figure 35 shows a flowchart for the while(1) loop in
frequency, timer intervals, trip points, etc. Any other main.c.
modifications to the system may require adjustments
elsewhere. This file is included in every source file.
generio_io.c
This file handles all user interface components, such as
buttons, switches, auxiliary I/O and potentiometers.
The ADC files are also referenced here for multiplexing
purposes.
Start
Main Loop
Idle
No
Is SW1 or SW2
pressed?
Yes
Calculate
Modulation Buffer
No
Is SoftStart
finished?
Yes
Yes
No
Is there an
ŽǀĞƌcurrent
condition?
No
Is SWϭ or SW2
pressed?
No
Any auxiliary
No
interrupts?
Yes
Calculate phase
Write modulation
Has TMR2 rolled values from pre-
Yes values into PWM
over? calculated
registers
modulation buffer
No
No
Increment the
Has TMR1 rolled Uime-based
Yes
over? variables
No
ISR Exit
The deltaPhase value is adjusted accordingly to the Essentially, every increment of deltaPhase will adjust
voltage parameter. The voltage parameter is derived the modulation frequency by 0.244 Hz. Changing the
directly from the ADC reading of the speed POT. This PWM frequency will result in a different resolution.
variable is added to the frequency variable, phase To find the Table Pointer delta value that will provide a
value, every TMR2 overflow to get an adjusted 60 Hz modulation frequency, use the formula in
modulation angle value. Equation 10.
MOTOR FEEDBACK
The only feedback to the system is the small RC
feedback network that is connected in between the
motor and GND. This network provides a small voltage
reading that is proportional to the current in the motor,
as seen in Table 18.
TABLE 18: MOTOR FEEDBACK SETTINGS
Name Description
CURRENT_TRIP_V In Volts, when generating a Fault condition. Use this setting if the user wishes
to reallocate the current trip POT to some other usage.
CURRENT_TRIP_AVG Number of ADC measurements to average for the current trip. Make this a
multiple of 2 for code speed.
Figure 39 shows a thermal image of the inverter when Notice how the IGBTs and NTC are the hottest
running the motor at 220V 60 Hz with no load. components on the board. The IGBTs are rated up to
150°C and the NTC up to 200°C. The other parts that
FIGURE 39: INVERTER BOARD DRIVING are warm include the linear regulators, flyback
MOTOR WITH NO LOAD converter and diode bridge. This design ensures that
under full load, none of the components will be
performing out of specification. The designer may wish
to optimize some of the parts for his/her application,
such as the IGBTs and diode bridge. This section will
explore design limitations and optimizations that can be
made.
The ripple current rating is a direct correlation with its Table 20 shows when to connect to the jumper.
Equivalent Series Resistance (ESR). Current passing TABLE 20: JUMPER SETTINGS
through the capacitor will cause a voltage drop across
its internal resistance which then causes the capacitor Input Voltage Motor Rated
Jumper In (W1)
to heat up. Too much heat dissipation will prematurely (V) Voltage (V)
damage the capacitor. 9 115 230
The amount of ripple voltage on each of the capacitors 8 115 115
should be carefully monitored when the motor size is 8 230 230
increased and the V/f profile is modified.
The ripple current is related to the ripple voltage. Given WITHOUT VOLTAGE DOUBLER
the input frequency, capacitor bank size and load When the voltage doubler is not engaged, the effective
current, Equation 11 outlines the magnitude of ripple capacitance of the two large capacitors in series
voltage. creates a total capacitance as shown in Equation 12.
calculations.
Current (A)
Where:
AN1660
Non-Isolated R1
+5V
Isolated
0R
P1
AGND DGND 1
Vpp/AUX0
2
VPP/MCLR R2 U1 R3 P2
VDD Garage Light
3
GND 1 Garage Light
PGD/Ramp
4
ICSPDAT 510R 510R 2
5
PGC ICSPCLK AUX4 ED1514-ND
6 ACPL-217-500E
NC
PICKIT2 DGND
DGND
+5V VR1 D1
C24 VIN
1
+5V 3 +15V
VOUT
2
750813144
GND
10uF 25V C2 TAB(GND)
4 C1 STTH1L06A R4
C5 C6 R5 C4 C3
0.1μF 1.0uF 10uF 25V MCP1703T-5002E/DB 0.1μF
820R 47uF 35V 470pF 47R VR2
10 T1 9 D2 1 C9
VIN
3 +5V ISO
VOUT
+5V R6 2
GND
+5V DGND
R7
STTH1L06A C7 4 10uF 25V
C8 TAB(GND)
NTC1 DGND C10
+Vbus 0.1μF MCP1703T-5002E/DB
U2 47R 470pF 47uF 35V 820R
7 8
1 20
VDD VSS 1
2 19 F1
RA5 RA0/PGD PGD/Ramp R10 R11 2 HOT C12 R8 R9 C11
3 18 MF72-010D11
1
P3 100K 270K
MOV-07D471K
Remote Learn RA4 RA1/PGC PGC D3 560uF 250V 820pF 2KV
4 17
Vpp/AUX0 RA3/MCLR RA2 CLC1 1 NEU
5 16 4.7K 4.7K
VR3
Open/Close Door PWM1 RC5 RC0 CLC2 3 2 ISOGND
MOV
6 15
Garage Light RC4 RC1 PWM4 W1
7 14 GBU10M-BP
PWM2 RC3 RC2 Speed 2
8 13 R13
Isense RC6 RB4 SDA R12 4
9 12 C13 100K
4
RC7 RB5
10 11 560uF 250V 330R
CLC3 RB7 RB6 SCL
PIC16F1509-E/SO
AUX1
STTH1L06A
R14 R15 +5V
AUX2 5
DGND D4
AGND
1K 1K R36 AUX3
D6 D5
LED2 LED2
1K AGND
R16
D10 U3 30.9K
DGND C14 1 8 R17
+Vbus EN/UV S
1.0uF 2
BP/M S
7 6.04K
3 6
NC S
DGND 4 5
D S
LNK625DG
IRG4BC20KDSTRLP
AGND
IRG4BC20KDSTRLP
IRG4BC20KDSTRLP
Q1 Q2 Q3 AGND
+5V ISO
S0
P4 +5V
M1
+5V ISO Remote Learn
1
M2
2
M3 C20
3 C21
1.0uF
IRG4BC20KDSTRLP
1.0uF B3S-1002
IRG4BC20KDSTRLP
ED1644-ND R20
IRG4BC20KDSTRLP
Q4 +5V
Q5 Q6 DGND ISOGND 10K
Remote Learn R23
U4 ISOGND S1
16 1
Open/Close Door
R21 1K Start/Stop Motor
15 2
R19 R24
Isense 390R 14 3
Isense
160K R18 R22 1K
C22 13 4 B3S-1002
CFRMT107-HF
R26 1.0uF
5.1K R27 R25
R28 R29 R30 R31 R32 R33 0.22R D11 10K 12 5
20R 20R 20R 20R R34 10K
20R 20R DGND Speed 11 6 390R
ISOGND
R35
AGND 390R 10 7 CCW CCW
DGND PGD/Ramp Speed
9 8 390R POT1
+15V R38 390R ACPL-247-500E POT0 2K
DGND 2K
ISOGND 3386P-1-202TLF
3386P-1-202TLF
11
10
19
16
13
18
15
12
2014 Microchip Technology Inc.
+15V
+5V Curent Pinch
VCC
HO1
HO2
HO3
VS1
VS2
VS3
LO1
LO2
LO3
U5
ISOGND
IRS2334SPbF
HIN2
HIN3
COM
C18 C19
LIN1
LIN2
LIN3
VB1
VB2
VB3
20
17
14
U6 R45 1
16 1 AUX0
+15V 2
DGND Vpp/AUX0
15 2 510R
R47 3
R46 6.8K
14 3 AUX1
D7 4
R44 510R
DGND 13 4
AUX1 5
CLC2 STTH1L06A R48
5.1K 12 5 AUX2
CLC3 D8 6
R40 510R
CLC1 AUX2 11 6
R49 7
STTH1L06A
PWM1 R42 10K 10 7
AUX3
D9 AUX3 8
PWM2 R43 510R
10K 9 8
PWM4
STTH1L06A 390R ACPL-247-500E
DGND
AN1660
REFERENCES
1. Speed Control of 3-Phase Induction Motor
Using PIC18 Microcontrollers, Padmaraja
Yedamale, AN843, Microchip Technology
2. AC Induction Motor Fundamentals, Rakesh
Parekh, AN887, Microchip Technology
3. V/f Control of Three-Phase Induction Motors
Using PIC16F7X7 Microcontrollers, Rakesh
Parekh, AN889, Microchip Technology
4. Determining MOSFET Driver Needs for Motor
Drive Applications, Jamie Dunn, AN898,
Microchip Technology
5. IGBTs vs HEXFET® Power MOSFETs for
Variable Frequency Motor Drives, Ajit Dubhashi
and Brian Pelly, AN980, International Rectifier
6. Bidirectional VF Control of Single and
Three-Phase Induction Motors Using the
PIC16F72, Padmaraja Yedamale, AN967,
Microchip Technology
7. An Introduction to AC Induction Motor Control
Using the dsPIC30F MCU, Steve Bowling,
AN984, Microchip Technology
8. Induction Motors Fed by PWM Frequency
Inverters, WEG
9. Application Note for Inrush Current Limiters,
EPCOS
10. Induction Motor Speed Torque Characteristics,
Yaskawa Electric America, Inc
11. Gate Drive Optocoupler Basic Design for IGBT/
MOSFET, AN967, Microchip Technology
12. Bidirectional VF Control of Single and Three-
Phase Motors Using the PIC16F72, Padmaraja
Yedamale, AN967, Microchip Technology
13. Efficiency Improvement of Permanent-Split
Capacitor Motors in HVAC Applications Using a
Two-Phase Asymmetrical Inverter, Anderson, K.
14. LNK623-626 LinkSwitch-CV Family Data Sheet,
Power Integrations
15. VF Control of 3-Phase Induction Motor Using
Space Vector Modulation, Rakesh Parekh,
AN955, Microchip Technology
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
== ISO/TS 16949 ==
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.