Issue link: http://dc.ee.ubm-us.com/i/71837

SPECTRA e FIGURE 2 servo ujJdates. At these points, the encoder i read, along with the phase currents in the motor windings. We use the forward Park and Clarke trans- forms to compute the id and i" from the phase currents in the motor wind- ings and the electrical angle. This information, along with the user con- trol settings, is fed to the PID con- troller and a new (corrected) ir1 and i" are returned. The change in notation indicates that we are actually conu·ol- ling the voltages applied to the phases of the motor, as illu trated in Table 1. These values are then fed to the PWM or analog controller This id and i" are passed through the reverse transforms to give us new values for our phase currents. These values are then fed to the PWM con- u·oller or analog controller, as the case may necessitate. Next month TABLE 1 A B 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 • c 0 1 0 1 0 1 0 1 + - + + + - VA VB vc - . -- . . + + . + + - + . + - . + + possible with three phases. In th is table, the minus signs indicate when the bottom switches are all on; the plus signs mean that the top transis- tors are on. Because there must be at least one minus sign and at least one plus sign in a single row for current to flow, only six of the states are workable. Therefore, to initialize the motor, we must choose one of the remaining six combinations and hold it constant. Under these con- ditions, current is flowing in the wind- ings and the rotor will align with the stator flux. Although this will work on an induction motor, only the number of encoder coun ts per revolution is really required for initialization. Next, we need to know how many encoder counts we have for each elec- trical revolution. If we do not know the number of encoder counts per electri- cal revolution, we may, at this point, ded uce the numbe• · by "stepping" through the six combinations in the table sampling the encoder as we go. Field-oriented control Once we know the number of encoder counts in an electrical revolution and have reset the electrical position and captured the encoder position at that point, we may begin. At this point the electrical angle may be shifted by 90 degrees-this moves the id and iq axes apart. The rotor tends to align itself with the sta- tor flux and the motor turns. We must continually refresh the information about position and cur- rents, however, or the motor will halt. These refresh poin ts are known as 186 SEPTEMBER 2000 Embedded Systems Programming Don Morgan is senior engineer at Ultra Stereo Labs and a consultant with 25 years exjJerience in signal processing, embedded systems, hardwa-re, and software. Morgan has wrotten a book about numerical meth- ods, f eaturing multi-rate signal processing and wavelets, called Numerical Methods for DSP Systems in C. He is also the autho-r of Practical DSP Modeling, Techniques, and Programming in C, published by j ohn Wiley & Sons, and Numerical Methods for Embedded Systems frorn M&T. Resources www. ti.comlsc/ docs Iapps/ digital/ac_indu ction_motors.htmi#App_Notes www.analog. com I industry I motor _con- troll appcodel admc401/ pwm401_1. html Next month , we will look at what is involved in using devices other than incremental encoders to approximate position. We will see how the DSP can calculate position given quadran1re sinusoids (sinusoids that are 90 degrees out of phase) such as one might have with analog encoders and resolvers. esp

- September001
- September002
- September003
- September004
- September005
- September006
- September007
- September008
- September009
- September010
- September011
- September012
- September013
- September014
- September015
- September016
- September017
- September018
- September019
- September020
- September021
- September022
- September023
- September024
- September025
- September026
- September027
- September028
- September029
- September030
- September031
- September032
- September033
- September034
- September035
- September036
- September037
- September038
- September039
- September040
- September041
- September042
- September043
- September044
- September045
- September046
- September047
- September048
- September049
- September050
- September051
- September052
- September053
- September054
- September055
- September056
- September057
- September058
- September059
- September060
- September061
- September062
- September063
- September064
- September065
- September066
- September067
- September068
- September069
- September070
- September071
- September072
- September073
- September074
- September075
- September076
- September077
- September078
- September079
- September080
- September081
- September082
- September083
- September084
- September085
- September086
- September087
- September088
- September089
- September090
- September091
- September092
- September093
- September094
- September095
- September096
- September097
- September098
- September099
- September100
- September101
- September102
- September103
- September104
- September105
- September106
- September107
- September108
- September109
- September110
- September111
- September112
- September113
- September114
- September115
- September116
- September117
- September118
- September119
- September120
- September121
- September122
- September123
- September124
- September125
- September126
- September127
- September128
- September129
- September130
- September131
- September132
- September133
- September134
- September135
- September136
- September137
- September138
- September139
- September140
- September141
- September142
- September143
- September144
- September145
- September146
- September147
- September148
- September149
- September150
- September151
- September152
- September153
- September154
- September155
- September156
- September157
- September158
- September159
- September160
- September161
- September162
- September163
- September164
- September165
- September166
- September167
- September168
- September169
- September171
- September172
- September173
- September174
- September175
- September176
- September177
- September178
- September179
- September180
- September181
- September182
- September183
- September184
- September185
- September186
- September187
- September188
- September189
- September190
- September191
- September192
- September193
- September194
- September195
- September196
- September197
- September198
- September199
- September200
- September201
- September202
- September203
- September204
- September205
- September206
- September207
- September208
- September209
- September210
- September211
- September212
- September213
- September214
- September215
- September216
- September217
- September218
- September219
- September220
- September221
- September222
- September223
- September224
- September225
- September226
- September227
- September228
- September229
- September230
- September231