CMG - Motor
CMG - Motor
I. Introduction
Training systems for the 21st Century (TS21) at JSC will provide a simulation-based training for crew
members, instructors, and flight controllers on the operation of FOD (Flight Operations Directorate) sup-
ported spacecraft including the International Space Station (ISS), Robotics, ISS Visiting Vehicles and other
future NASA owned crew transport like MPCV (Multi-Purpose Crew Vehicle). TS21 products include the
simulation architecture and math models for the space environment, robotics, and vehicle subsystems.1 The
6-dof state (position and attitude) of the space station is one of the most fundamental components for all ISS
operations. The ISS Attitude Determination and Control Officer (ADCO) has overall responsibility for the
integration of all Guidance, Navigation and Control (GNC), including propulsive and CMG attitude control.
The ADCO works in partnership with Russian controllers to manage the station’s orientation, controlled by
the on-board Motion Control Systems. They also plan and calculate future orientations and maneuvers for
the station.
The CMG cluster mounted on the ISS is a set of 4 spinning wheels gimballed to provide long-term
attitude control as well as to store momentum. A CMG is a momentum exchange device consisting of a
mechanical momentum wheel assembly with supporting gimbals (inner/outer) and electronic equipment.
The spin-wheel assembly consists of a flywheel, a spin-motor, and a hall resolver to sense rotor speed.
∗
Lead Software Engineer, Training systems for the 21st Century (TS21), Lockheed Martin, Houston, Texas, 77058, AIAA
Member
†
Senior Engineer, Training systems for the 21st Century (TS21), GHG Corporation, Webster, Texas, 77598.
1 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
Gimbal motion control allows the CMG cluster to manage the angular momentum and to precisely position
and/or point the ISS. For attitude control, the gimbals respond to angular rate commands sent from the GNC
flight software (FSW) resulting in reaction torque on the spacecraft structure. The electrical assembly (EA)
provides control and monitoring capabilities of the IG, OG and wheel spin functions of the mechanical
assembly. The EA also communicates with the GNC FSW through commands and telemetry. For instance,
the EA receives and executes commands from the GNC FSW and relays, feedback and sensor information,
including Built-In-Test (BIT) data, temperatures, motor currents, rotor unbalances, and rotational speeds.2
The main component within the inner gimbal assembly of a CMG is the flywheel which rotates at a
nominal speed of 6600 RPM, supplying an angular momentum of about 3500 ft-lb-sec. Gimbal motion
results in torque reaction to the CMG mounting ring and then to the spacecraft. A special wheel braking
mode allows power generated by the spin motor to be injected into select areas of the power bus internal to
the EA. The power supply proper (DC to DC converter), provides power mainly for the spin motor PWM
circuit card and the spin motor timing and control circuit card. The spin motor PWM circuit card provides
excitation to the two-phase brushless DC motor. This motor provides drive torque to the flywheel, which
will reach and maintain a nominal speed of 6600 rpm. The spin motor timing circuit uses the hall resolver
sine output to control the wheel speed through the phase/frequency detector in the speed control loop. The
hall resolver sine and cosine outputs are used for commutation, digital wheel speed determination, and fault
isolation.2
Reference 2 presents a thorough treatment of CMG mechanical assembly, Reference 4 discusses in
detail the CMG dynamics and control and Reference3 specifically covers the dynamics and control of a
double gimbaled variable speed CMG. Simulation of flywheel electrical system for aerospace applications
is presented in Reference 5. A tutorial style overview of the basic concepts underlying the hardware de-
sign and simulation development of electromechanical motion control systems and spacecraft applications
is presented in Reference 6. This reference presents various electromechanical motion devices, torque ex-
pressions, mechanical systems and their electrical analogs, drive electronics and topologies and control
techniques.
This paper simulates a two-phase brushless DC motor with PWM voltage drive to control the flywheel
speed of a CMG. Incrementally, the basic working principles of a single-phase, followed by a two-phase
brushless DC motor and then the CMG spin motor electromechanics are presented. To simulate a two-phase
brushless DC motor, the spin motor system’s electro-mechanical equations of motion are developed for
the root-mean-square (RMS) currents and wheel speed. A stable solution method is discussed to solve a
system of first-order equations for the wheel speed and the sine and cosine currents. A proportional voltage
controller is presented which adjusts the PWM voltages depending on several modes to control wheel speed,
drive currents and desired torque. Also, the CMG spin motor model can directly provide electrical power
use and thermal power output to other ISS spacecraft subsystems. Finally, the simulation results and how
these influence the overall performance of the system are discussed.
4 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
where Kt = 2N lBR is defined as a motor constant (Nm/A) and is unique to each motor. Consequently, the
mechanical power output Pm is given as
Pm = Tm ω (5)
Ignoring the frictional losses in the motor, if Tm is the usable torque output generated by the motor then the
electrical power input, Pe , will equal to the mechanical power output, Pm , which leads to
Vbemf i = Tm ω (6)
which further yields Ke = Kt . It is useful to know that the two constants are equal to each other only in SI
units when Kt is given in Nm/A and Ke is in V/rad/s.
Figure (3) shows an electrical model of a DC motor and a direct application of the Kirchhoff’s voltage
law to this armature circuit yields
di
V = iRm + Lm + Vbemf (t) (7)
dt
where Lm is the inductance in H and Rm is the resistance in Ohms.
2
Tave = Kt (ic + is )peak (18)
π
that ic and is are the peak values of our sine and cosine currents. But from AC circuit
It is realized √
analysis, ipeak = 2irms . So using the RMS currents for average torque
√
2 2
Tave = Kt (ic + is )rms (19)
π
Plugging in this torque into the dynamics equation 9 (with viscous drag) gives
√
dω 2 2
Jm = Kt (ic + is )rms − Bm ω (20)
dt π
where Jm is the wheel inertia and Bm is the viscous drag constant.
C. Solution Method
The dynamic variables that are solved for are the sine and cosine currents (Is and Ic ) as well as motor
speed ω. Therefore, the state vector x is
x = (Ic , Is , ω) (21)
And a set of first-order differential equations for currents and speed where the motor constants and state
variables have been converted to their effective RMS values is
dIc 1
= (Vc − Ic R − ωKe ) (22a)
dt L
dIs 1
= (Vs − Is R − ωKe ) (22b)
dt L
dω 1
= (Ic Kt + Is Kt − ωB) (22c)
dt Jm
8 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
For a numerical solution, the derivatives in Eq.(22) are approximated as first-order difference equations
and rewritten them as
∆t
Ic1 = Ic0 + (Vc − Ic1 R − ω1 Ke ) (23a)
L
∆t
Is1 = Is0 + (Vs − Is1 R − ω1 Ke ) (23b)
L
∆t
ω1 = ω0 + (Ic1 Kt + Is1 Kt − ω1 B) (23c)
Jm
where the subscripts 1 and 0 denote new and previous values. Applying naively a simple Euler method to
the above equations and assuming all quantities on the right side are previous values, quickly yields unstable
currents and speeds and eventually blowing up to very large values. Here is a case of a big motor driving the
heavy wheel with huge inertia thus creating an ultra-stiff set of differential equations. This is illustrated by
comparing the time constants in the electrical and mechanical equations. Using the parameters from Table 1,
the electrical time constant τe ≈ 0.6ms is roughly 8 orders of magnitude separating the mechanical inertia
time constant τm ≈ 139000s. The electrical system responds similar to a woofer in a home speaker system
whereas the mechanical system would take days to spin down on its own. Consequently, to solve for the
three states, an implicit Euler integrator is used for two coupled equations. Therefore, the solution to this
problem is of the form
x1 = x0 + ∆tf (x1 , y1 ) (24a)
y1 = y0 + ∆tg(x1 , y1 ) (24b)
Where the derivative functions contain the new values of the states. Writing the system of equations Eq.(23)
in matrix form gives
Ic0 + Vc ∆t
a 0 b Ic1 L
0 a b Is1 = Is0 + Vs ∆t (25a)
L
c c d ω1 ω0
R Ke −Kt B
Where a = 1 + L ∆t, b= L ∆t, c= Jm ∆t and d = 1 + Jm ∆t. Solve for the new states by inverting the
above matrix:
−1
Ic0 + Vc ∆t Ic0 + Vc ∆t
Ic1 a 0 b L f e −b L
Is1 = 0 a b Is0 + Vs ∆t = g e f −b Is0 + Vs ∆t (26a)
L L
ω1 c c d ω0 −c −c a ω0
bc 1 1
where e = a, f = d − e, g = ad−2bc = af −bc . An efficient 2-step algorithm for calculating new states is:
∆t
Ic0 = Ic + Vc (27a)
L
∆t
Is0 = Is + Vs (27b)
L
ω0 = ω (27c)
and
Ic = g(f Ic0 + eIs0 − bω0 ) (28a)
Is = g(eIc0 + f Is0 − bω0 ) (28b)
ω = g(−cIc0 − cIs0 + aω0 ) (28c)
∆ω = ω − ω0 (28d)
9 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
The external driving voltages are Vc and Vs which are also the control variables. The change in wheel speed
∆ω is a useful quantity.
D. Power Calculations
The spin motor is activated by an electrical power supply which feeds the PWM circuit driving the
motor. The power used is converted to mechanical spin of the wheel, to resistance losses in the windings as
heat, and friction in the bearings. With the currents estimated earlier, it is straightforward to calculate the
power use (IV ). A good estimate of the total power used is derived by converting the state equations 22 into
power equations. Multiplying each electrical equation by its corresponding current yields
dIs
Is L = Vs Is − RIs2 − ωKe Is
dt (29)
dIc
Ic L = Vc Ic − RIc2 − ωKe Ic
dt
Then multiplying the mechanical equation by the speed ω
dω
ωJm = ωKt (Ic + Is )rms − Bm ω 2 (30)
dt
As shown in section 3., the motor constants Kt and Ke are equivalent when expressed in the same units.
Thus, ωKt Is,c = ωKe Is,c . Summing the two electrical Eqs (29) and substituting in the motor constant terms
from the mechanical equation 30 and assuming that the currents are slowly changing ( dIdts,c ≈ 0) yields
dω
Ptotal = Vc Ic + Vs Is = Rm (Ic2 + Is2 ) + Bm ω 2 + Jm ω (31)
dt
Separating the equation into thermal and mechanical parts gives
Even though the wheel contains large energy, mechanical power is used only when the speed is changing,
which happens slowly. If the speed is decreasing, the spin motor can be used as a generator to supply power,
now a negative quantity, back into the driving system. This self-powering mode is used during the braking
mode of the ISS CMG. The thermal power Pth is always positive and represents the heat generating losses in
the motor. This can be used to heat the motor structure and thus provide readings for a temperature sensor.
Because the state equations are originally derived in terms of the effective RMS values of the currents
and voltages, the power equation constructed above represents the average power used in the motor. even
though sinusoidal changes in power are being neglected, there is another effect caused by the sinusoidal
nature of the electrical quantities. In a simple LR circuit model of the spin motor, the inductance causes
a phase change of the winding current relative to the driving voltage. This phase difference between I(t)
and V (t) results in less power being used in the motor. Consequently, the power should be modified by the
power factor equation
Pave = Irms Vrms cos θ (33)
Any nonzero phase angle will reduce the computed power. From elementary circuit theory, the phase angle
between driving voltage and current in an LR circuit is arctan ωL
R . Using the impedance triangle in the
complex plane, an expression for cos θ becomes
1
cos θ = q (34)
ωL 2
1+ R
10 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
This power-factor is best used when the motor is in a non-steady-state mode, either increasing or decreasing
its speed. When in constant speed mode the power factor is close to unity and could be neglected. For the
ISS CMG, it is found that the power-factor resulted in a more realistic power usage value when in spin-up
mode.
Vs = RIs + Ke ω (35a)
Vc = RIc + Ke ω (35b)
Bm ω
Is + Ic = (35c)
Kt
Combining the electrical equations (35a and 35b) and taking the differentials gives
A. Nominal Mode
The nominal mode is the most often used control mode where the ISS flight software commands the
CMG to spin at one of 16 pre-defined speeds ranging from 6270 to 6930 RPM with 6600 RPM being the
nominal speed. Using Hall effect sensors the control circuit determines the speed error and converts this
error to control current for the PWM drive. A simple proportional controller could be constructed using
speed error as the error signal like the following equation
ω
∆V = Gp (1 − ) (37)
ωcmd
This method results in the currents not correlating with the speed change duration as on the ISS CMG. A
better method is to use a current limiting controller which acts similar to the real CMG’s current control as
follows
∆V = Gp (Ilim − |Ic,s | , with the sign of(ω − ωcmd )) (38)
The Ilim value is the nominal spin motor maximum current of ≈ 1.63A. The absolute value of the sine or
cosine current is used so that the speed error provides the sign change for spin-up or spin-down. Finally, the
11 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
proportional gain Gp is tuned so that the wheel spin-up or spin-down durations between the nominal set of
speeds matches the real CMGs. These times are roughly 3 min for spin-down or 5 min for spin-up. This
model uses different gains for up-and-down speed changes.
For all control modes, once the motor attains a speed within 0.5 RPM of the commanded speed, the
control voltages are immediately set to the steady-state voltage appropriate for that speed. From the steady-
state equations (35a-35c), the steady-state voltage Vss becomes
Rm Bm
Vss = ( + Ke )ωcmd (39)
2Kt
B. Spin-up Mode
One of the basic duties of the spin motor controller is to spin-up the wheel from a dead stop to its
operating speed of 6600 RPM in approximately 7 hours. Figure 6 shows a plot of current versus RPM for
this spin-up mode.
dIc dIs
d(Vs + Vc ) = R( + )dω + 2Ke dω (40)
dω dω
Assuming both sine and cosine drives operate identically allows to combine and simplify further to a single
voltage control law for spin-up condition
∆I
∆V = (R + Ke )∆ω (41)
∆ω
12 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
∆I
where ∆ω =constant is the slope of the curve in Figure *. During spin-up, using Eq. 38, the driving voltages
are incremented as Vc1 = Vc0 + ∆V and Vs1 = Vs0 + ∆V . For starting from rest (ω = 0), an initial voltage
is needed to supply the starting torque; the smallest voltage step value for the CMG PWM power supply is
3.41 Volts.
2. Maximum Torque Control
The current plateau in the spin-up curve is modeled assuming the motor has reached some limiting
maximum torque. Considering the original mechanical state equation Eq. 22c and substituting a torque
value τmax for the motor currents term yields
dω
Jm = Kt (Ic + Is ) − Bm ω = τmax − Bm ω (42)
dt
Solving for dω gives
(τmax − Bm ω)
dω = dt (43)
Jm
Combining all three steady-state equations (35a-(35c) that includes electrical and mechanical models gives
rise to this single expression
R m Bm
Vc + Vs = ( + 2Ke )ω (44)
Kt
Once again assuming that both the drives operate equally (Vs = Vc ) and taking the differentials for Eq. (44)
yields
R m Bm
dV = ( + Ke )dω (45)
2Kt
Now plugging in Eq. (43) into Eq. (45), the voltage differences become
1 Rm Bm
∆V = ( + Ke )(τmax − Bm ω)∆t (46)
Jm 2Kt
This control law is invoked during spin-up when the motor electrical torque exceeds the maximum value
τmax such that the condition Kt (Ic + Is ) > τmax is satisfied. The ISS CMG spin motor exhibits a τmax range
of 37 to 39 oz.in. The 2 spin-up voltage control laws above will drive the wheel to 6600 RPM in seven hours
which is the average of the true range of 6 to 8 hours.
C. Braking Mode
Another dynamic mode of spin-motor operation is the method used to spin-down the wheel to a lower
speed. This mode, called active braking, inserts a number of large parallel resisters into the motor drive
circuit to dissipate the back EMF current and slowly reduce wheel speed. There are two types of braking;
normal and hard. They are distinguished by the amount of torque applied by limiting the motor current.
Here, as in the spin-up mode, it can be viewed as another torque limiting control function which now
decrements the driving voltages. Using the same maximum torque control function as before but with sign
changes to slowly reduce driving voltages and reflecting the fact that now the system drag aids in slowing
of the wheel, the change in voltage is expressed as
1 Rb Bm
∆V = − ( + Ke )(τb + Bm ω)∆t (47)
Jm 2Kt
where Rb contains the winding and braking resistances of approximately 80 Ω. And τb is either the normal
braking torque of 15 oz.in or the hard braking value 37.5 oz.in.
When the wheel is in braking mode some of the back EMF voltage can be used to generate internal
power to keep the power and PWM control circuits of the spin motor activated. This generator mode is
13 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
required if external power is lost or a power supply has failed and the CMG can still be used to supply
steering torque to the ISS down to a predetermined wheel speed. This mode continues until the wheel has
slowed to 3600 RPM when the controller either continues with normal braking, or, if continued internal
power is needed, switches to hard braking to supply more back EMF. In either case, when the wheel has
reached 1300 RPM the motor torque ceases and is put into the coasting mode where the freewheeling rotor
is slowed down by friction only.
D. Coasting Mode
The wheel enters the coasting mode if one of these two conditions are satisfied:
1. Spin motor is disconnected.
2. Spin motor is turned off and the wheel is not on internal power (wheel speed is < 1300 RPM).
The coasting mode simply sets the sine and cosine drive voltages to zero so that the wheel follows the natural
dynamics (Eq. 22c) for spinning down to a full stop.
V. Simulation
This section presents numerical simulations illustrating the behavior of a CMG spin motor’s electro-
mechanics, the voltage controller’s performance for several modes of operation and how well the results
matched with the real CMGs. Different wheel speed modes i.e, nominal, spin-up, braking and coasting are
verified in this simulation. For each mode, how the wheel speed changes with time is shown and specifically
for spin-up mode the current and power usage is illustrated. Table 1 provides the simulation parameters and
their values.
Table 1: Spin Motor Design Parameters
The nominal speed mode tests the voltage controller’s performance by increasing the speed from 6600
RPM to 6810 RPM. Figure 7 shows the speed increase which the controller achieved in 17 min. The spin-up
test is the most critical and sets up the conditions to speed up from rest (0 RPM) to 6600 RPM. As shown
in Figure 8, the controller performed well spinning up to 6600 RPM in 7 hrs (the real CMGs spin up in 6-8
hrs), which also implies that the RMS assumption is reasonable. The braking test turns off the spin motor
power supply which sets the simulation mode to braking. Figure 9 shows that the spin-down to 1300 RPM
happens in 7.8 hours during which CMGs are also powering the SM, IG and OG control cards using the
back EMF. When the speed drops below 1300 RPM, the CMGs transition to coasting mode and turn off the
power to the SM, IG and OG control cards which results in slower spinning down of the wheel. Figure 10
shows the results for the coasting mode only which is set by turning off the voltage supplies to the CMGs
and disconnecting the spin motor. Coasting is a slow operation which can take up to 200 hours for the CMG
to completely spin-down to rest.
The simulation results illustrate the interaction between the electrical system and the load dynamics
and how these influence the overall performance of the system. The heat generated ends up in the thermal
14 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
Figure 7: Nominal Speed Increase Test
VI. Conclusion
This paper presents simplified electromechanical motor and voltage controller models to simulate a
PWM two-phase spin motor drive mechanism and its control cards. The basic principles of single-phase
and two-phase brushless DC motors are discussed. And implicit Euler integrator is used to solve for the two
phase currents, voltages, wheel speeds, torques and power with respect to time. Then the various spin motor
voltage controllers are discussed for different wheel modes; nominal, spin-up, braking and coasting. The
most interesting aspect of this work is that the results compare similarly to real CMG data which will aid the
flight controllers with realistic training on the TS21 GNC-CMG simulation. The simple electromechanical
and voltage controller models derived in this paper can be reused in other applications which use either a
15 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
Figure 9: Braking Test
VII. Acknowledgments
The authors of this paper would like to thank the Johnson Space Center engineering directorate under
the Training Systems 21 contract. We also acknowledge the GNC flight controllers and trainers at JSC for
providing valuable feedback.
References
1
The Simulation and Graphics Branch, ER7, NASA, JSC, Houston, TX, http://er.jsc.nasa.gov/ER7/.
2
”ADCO Console Handbook,” International Space Station Attitude Determination and Control Officer (ADCO), Mission
Operations Directorate Systems Division, JSC-36410, Johnson Space Center, NASA, Houston, TX, March 15, 2013.
3
Stevenson, D., and Schaub, H., ”Nonlinear Control Analysis of a Double-Gimbal Variable-Speed Control Moment Gyro-
scope,” Journal of Guidance, Control, and Dynamics, Vol. 35, No. 3, May-June 2012.
4
Schaub, H., and Junkins, J. L., Analytical Mechanics of Space Systems, 2nd ed., AIAA Education Series, AIAA, Reston,
VA, Oct. 2009, pp. 178-188, 408-430.
16 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
5
Troung, V. L., Wolff, J. F., and Dravid, V. N., ”Simulation of Flywheel Electrical System for Aerospace Applications,” AIAA,
Paper 2000-2908, 2000.
6
Rodriguez D. F., ”Electromechanical Motion Control Systems in Spacecraft Applications,” AIAA, Paper 2006-7291, 2006,
San Jose, California.
17 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS