0% found this document useful (0 votes)
6 views17 pages

CMG - Motor

The document presents a simulation of a two-phase brushless DC motor used to control the flywheel speed of a control moment gyroscope (CMG) for spacecraft attitude control. It discusses the electro-mechanical equations of motion, the stability of the system, and the implementation of an adaptive proportional voltage controller. The simulation results demonstrate the interaction between the electrical system and load dynamics, highlighting the CMG's power consumption and thermal output for spacecraft subsystems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views17 pages

CMG - Motor

The document presents a simulation of a two-phase brushless DC motor used to control the flywheel speed of a control moment gyroscope (CMG) for spacecraft attitude control. It discusses the electro-mechanical equations of motion, the stability of the system, and the implementation of an adaptive proportional voltage controller. The simulation results demonstrate the interaction between the electrical system and load dynamics, highlighting the CMG's power consumption and thermal output for spacecraft subsystems.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Simulation of an Electromechanical Spin Motor System of a

Control Moment Gyroscope

Ravi Inampudi∗ and John Gordeuk†

A two-phase brushless DC motor (BDCM) with pulse-width modulated


(PWM) voltage drive is simulated to control the flywheel speed of a control
moment gyroscope (CMG). An overview of a double-gimballed control mo-
ment gyroscope (DGCMG) assembly is presented along with the CMG torque
effects on the spacecraft. The operating principles of a two-phase brushless
DC motor are presented and the system’s electro-mechanical equations of mo-
tion are developed for the root-mean-square (RMS) currents and wheel speed.
It is shown that the system is an extremely ”stiff” set of first-order equations
for which an implicit Euler integrator is required for a stable solution. An
adaptive proportional voltage controller is presented which adjusts the PWM
voltages depending on several control modes for speed, current, and torque.
The simulation results illustrate the interaction between the electrical system
and the load dynamics and how these influence the overall performance of the
system. As will be shown, the CMG spin motor model can directly provide
electrical power use and thermal power output to spacecraft subsystems for
effective (average) calculations of CMG power consumption.

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.

II. PWM Brushless DC Spin Motor


A. Single-Phase PWM Brushless DC Motor
In order to understand the CMG spin motor dynamics and performance, the interaction between drive
electronics, motor and mechanical load must be represented in sufficient detail. As a prelude, this section
will focus on the basic mechanics of a single-phase PWM brushless DC motor.
1. Brushed vs Brushless DC Motors
A brushed DC motor (BDC) has a stator and is the stationary outside part of a motor which provides a
permanent magnetic field and a commutator is attached to the internal armature shaft that keeps reversing
the current flow direction to ensure that the motor continuous to turn in the same direction. Just as the
rotor reaches alignment, the brushes move across the commutator contacts and energize the next winding.
2 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
More loops are added to the rotor to increase the magnetic field strength. The brushes of a DC motor have
several limitations; brush life, brush residue (debris), maximum speed, and sparks and electrical noise. A
brushless DC motor (BLDC) solves these problems; this brushless motor topology is created by taking a
brushed DC motor and flipping it inside out. So, in a BLDC motor, the brushes are eliminated by moving
the outer permanent magnets to the rotor. Now the rotor is a permanent magnet with shaft coming out and
bearings on either side of it. And the coils are wrapped around the outside of the stator. Then, how is the
motor driven? The trick is to control the current flow to the field coils on the outside with the help of control
drive electronics. The control electronics replace the function of a commutator and energize the proper
winding at the right time. Therefore, the idea remains the same; some how the magnetic polarity of the rotor
coils needs to be changed; in a BLDC motor, instead of mechanical commutators, electronics continuously
change the phase of the stator coils to keep the motor rotating. In this condition, when one coil is energized
the opposite poles of rotor and stator are attracted to each other. As the rotor nears one coil, the second coil
is energized. As the rotor nears the second coil, the third coil is energized. This process is repeated and
the rotor continues to rotate. A brushless motor design with coils on the outside and the permanent magnet
inside has two advantages: first, more windings for the same diameter of the motor means more current can
pass through and hence more magnetic field, so more powerful for the same size. Second, is in terms of
cooling. A brushed DC motor gets hot which limits on how much current is put through them and that limits
on what can done with it. If the coils are on the outside, heat sinks can be put outside of the motor to get
rid of that heat which means increased power density. Also, as brushless motors lack this brush-commutator
interface, they exhibit lower acoustic noise.
2. Feedback Control Using PWM Drive
How do you control torque on a DC motor? How and when are the stator coils energized to obtain a
smooth continuous rotation of the rotor? The parameter that is related to torque is the current. Figure 1
shows a typical negative feedback control system for a single phase DC motor. In a DC motor, commutation
keeps the rotor and stator fields properly aligned. Such a field oriented control is performed in a brushed
DC motor using a mechanical commutator and brushes whereas in a brushless DC motor it is performed
electronically. For both kinds of DC motors, the main ideas of the feedback control are summarized as
follows:
1. Measure the current that is already flowing in the motor. Sample the current using either a shunt
resistor or a Hall effect sensor.
2. Compare the measured speed (current) with the desired speed (current) and generate a voltage error
signal.
3. Amplify the error signal to generate a correction voltage with some type of control algorithm; for
example, using a proportional controller.
4. Modulate the correction voltage on the motor terminals; for example, using pulse width modulation
(PWM) technique.
These four steps are discrete steps in an interrupt service routine (ISR) and the ISR is repeatedly interrupted
at a certain frequency. Over a period, the measured current will converge on to the desired current value.
Also, the motor’s current is controlled through the motor’s voltage. Therefore, voltage is the control variable
and increasing the voltage increases the current to the motor and vice versa. A Hall affect sensor tells the
controller the motor’s position to switch the current to the coils in the right order in order to keep the motor
running in the same direction. As shown in Figure 2, a pulse-width modulation(PWM) is a popular method
of controlling the motor, which converts an analog-input voltage into a variable-duty-cycle drive signal.
Beginning at zero duty cycle (OFF all the time), the duty cycle advances as the motor begins to rotate, until
it’s running at the speed and/or torque required by the application.
3 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
Figure 1: Motor Control Loop With PWM

Figure 2: PWM Pseudo Sine Wave


3. A Single-Phase DC Motor Circuit
Motors do useful work by creating torque exploiting the relationships between electrical current and
magnetic fields. A DC motor is controlled by applying a voltage to the motor terminals and the torque
is generated as a result of current flowing in the rotor coils in the presence of a permanent magnetic field
(Lorentz force). On the other hand, as the rotor’s coil moves through an external magnetic field, an electro-
motive force (back EMF) generates an opposing voltage thus reducing the voltage drop across the motor’s
terminals (Faraday’s Law). The faster the motor spins, the more the back-EMF is generated. Therefore the
back-EMF Vbemf is related to the rotational speed ω as
Vbemf = Ke ω (1)
where Vbemf is in Volts, ω is in rad/s and the speed constant Ke is in V/rad/s. The value of Ke is determined
from the motor properties such as number of windings in the coil, length of the coil, radius of the winding
and magnetic flux density of the permanent magnet. Consequently, the electrical power input, Pe , to the
motor is given as
Pe = Vbemf i (2)
An expression for mechanical power output of the motor, Pm , is derived from the definition of magnetic
force on electric current in a magnetic field. In a DC motor, since the direction of the current i in the wire
of length l is perpendicular to the magnetic field B, then the magnetic force F is
F = ilB (3)
Assuming a rectangular flat coil, an expression for torque is derived as
Tm = (number of turns)(Force/turn)(radius of the coil) (4a)
= N (ilB)R (4b)
= Kt i (4c)

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.

Figure 3: DC Motor Model


Next, assuming that the motor is not connected to any mechanical load and ignoring the friction and
core losses of the motor, direct application of Euler’s torque equation to the armature circuit yields the
mechanical model
dωm (t)
Jm = Tm (8)
dt
Therefore, Eqs. (7) and (8) can be expressed as a set of two first-order differential equations
di 1
= (V (t) − i(t)Rm − ω(t)Ke ) (9a)
dt Lm
dω Kt
= i(t) (9b)
dt Jm
where Rm is the stator resistance and Lm is the stator inductance for the winding pair. Voltage V (t) is the
control variable and once a voltage is applied to the motor, the rotor begins turning and generates a back
EMF. If we assume that the motor is driven by a steady-state voltage V0 , the closed form solutions of Eqs.
(9) for the current i(t) and speed ω(t) are
(V0 − Vbemf ) t
i(t) = (1 − e− τe ) (10a)
Rm
(V0 − Vbemf ) τe t
ω(t) = e− τe (10b)
Kt (τm − τe )
5 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
where τe = Lm /Rm and τm = Jm /Bm are the electrical and mechanical time constants of Eqns. (10).
Also, the solutions are obtained with the inherent assumption that τe << τm . Figure 4 (left side), shows
the current when the switch is closed, is the familiar waveform characterizing the current in any L-R circuit,
with its rise time governed by the time constant τe . Also, the maximum current is nearly equal to RV0m and
is obtained in a very short time after the switch is closed. Now, Figure 4, (right side) shows the current
when the steady-state excitation voltage is replaced with a PWM source. The current rises until the first
ON pulse ends. At the end of the pulse, when the applied voltage abruptly falls to zero (OFF), the current
begins to decay toward zero. However, the next ON pulse will again drive the current upwards, and so forth;
the current to the motor continues to rise. As the motor accelerates, the current waveform exhibits a ripple
which is saw-tooth profile with increasing amplitude. Because torque is directly proportional to current, this
ripple develops a corresponding torque that not only drives but also accelerates the motor. Applied voltage,
switching frequency, and the PWM duty cycle are three crucial parameters that determines a motor’s speed,
acceleration and its torque generation.

Figure 4: Steady-state Excitation (left) vs PWM Excitation (right)

III. CMG Spin Motor Electromechanics


There are four CMGs on board the ISS shown in Figure 5(a) and each CMG has a spin motor which
uses a two-Phase PWM brushless DC motor. Each spin motor consists of a permanent-magnet rotor, a two-
phase-wound stator, and a set of magnetic Hall devices to sense rotor position. The 8-pole brushless DC
motor is pulse-width modulated (PWM) at 50 kHz so as to provide a smooth pseudo-sine wave current to
each of the two phases. Figure 5(b) shows 8-poles in 4 pole-pairs which push-pull on the 8-poles on the
rotor. The two separately excited circuits drive the shaft in quadrature applying their push-pull torques 90◦
apart thus defining the sine and cosine phase drives. Each circuit is driven by its own H-Bridge which is
fed a DC voltage from the ISS power bus (nominally 120 volts) so that if one motor fails the other keeps
providing the needed torque. The sine and cosine coils each apply a torque waveform similar to a rectified
sinusoid with 90◦ related phase. The sum of the two waveforms provides a smoother average torque to the
rotor.
A. Electrical Model
The differential equation for di/dt in Eq. 9a is an explicit function of time and instead of solving for an
exact time solution, the individual sine/cosine waves of currents and voltages or the back EMF and phases
between them are found using simple effective relationships among the RMS currents and voltages. A
simplified model averages the sine wave fluctuations and gives out effective RMS currents and voltages and
in a way it simulates a direct DC model.
√ So, an RMS value is created by taking the peak value of the sine
wave and scaling its amplitude by 2 which eliminated the need to solve for the phase difference as the
phase falls away with an RMS computation. The aim is to generate constant RMS currents and voltages
6 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
a) 4 CMGs b) Spin Motor
Figure 5: ISS CMGs
such that the motor spins at a constant RPM from which we derive the parameters such as resistance of the
motor and the power it uses. As a consequence, the power and resistance becomes the load on the space
stations. Using sine waves with amplitudes relative to the peak value of each quantity and rearranging and
rewriting Ohm’s law gives
dis
L = V sin(ωe t − θ) − Ri sin(ωe t − φ) − Ke ω sin(ωe t) (11)
dt
Since the back EMF peaks when the magnets/coils line up we will call this zero phase. The motor
controller modulates V , ωe and θ to create a smooth push-pull action on the rotor but the current will be at
some arbitrary phase φ. It seems natural that the V would lead the E (advanced timing) and the i would lag
behind E. The equation 11 gives the effective averages of these terms. To simulate a simple effective model
for currents and voltages in the motor, standard root mean square (RMS) values of V and i are used which
is typical in AC circuit analysis.
di Vpeak Lpeak Ke-peak Ke
L = √ −R √ −ω √ = Vrms − Rirms − ω √ (12)
dt rms 2 2 2 2
The effective RMS values are not affected by frequency or phase differences. Rewriting another equation
for the cosine phase gives
dic
L = Vc cos(ωe t − θ) − Ric cos(ωe t − φ) − Ke ω cos(ωe t) (13)
dt
As the RMS equation for cosine is similar to the sine current, it yields a set of two equations
dis Ke
L = Vs − Ris − ω √
dt 2
(14)
dic Ke
L = Vc − Ric − ω √
dt 2
Most of the time Vs will equal Vc unless a drive is failed in some manner. Each drive applies its own
separate torque to the rotor 90◦ out-of-phase with each other. But the torques must use the push-pull action
to drive the rotor in the same direction to speed up or slow down. Therefore the torque is defined with a
Nm
constant, T = Kt i where Kt is in Amps-peak . Even though i is a sine wave that goes positive-negative (push-
pull), the torque must be driven always positive to spin up (push-push or pull-pull).
7 OF 17
A MERICAN I NSTITUTE OF A ERONAUTICS AND A STRONAUTICS
B. Mechanical Model
The torque is a fluctuating function in time, but an effective average value of the torque is desired. Here
an RMS value is not used but the average value over a cycle that is normally used in mechanics. Summing
up the two drive torque gives

Ttotal = Kt ic |cos(ωe t − θ)| + Kt is |sin(ωe t − θ)| (15)

Using the definition for the average of a function


Z p Z p
1 1
Tave = Kt ic |cos| dt + Kt is |sin| dt (16)
P 0 P 0

where P is the period. A little research reveals that


Z p Z p
1 1 2
|sin| dt = |cos| dt = (17)
P 0 P 0 π

As Kt is defined with peak-amps we have

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 ω

ω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

Ptotal = Vc Ic + Vs Is = Rm (Ic2 + Is2 ) + Bm ω 2 + Jm ω (31)
dt
Separating the equation into thermal and mechanical parts gives

Ptherm = Rm (Ic2 + Is2 ) + Bm ω 2 (32a)



Pmech = Jm ω (32b)
dt

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.

IV. Spin Motor Controller


An adaptive proportional voltage controller is presented which adjusts the PWM voltages depending
on several control modes for speed, current, and torque. There are five modes of operation for a CMG
wheel. Nominal mode for normal operating speeds or changing speeds within a specific range. The Spin-up
mode for spinning up the wheel from rest. The Braking mode for spinning down from a nominal speed
and the CMGs are powered from the back EMF as long as the wheel speed is above 1300 RPM. Finally,
the wheel is in Coasting mode, if the wheel is spinning down without any power neither from an external
power source (RPCMs) nor an internal power source (back EMF). The voltage controller is used for each
mode of operation. The voltage controller updates CMG spin motor’s acceleration based on the current rate,
past and current commanded rates for a given time step dt. The input commanded rates are generated by a
steering control law generally implemented in the flight software. A simple fixed gain proportional control
with a feed forward term is used to determine the acceleration. Also, the current commanding gimbal rate
is filtered based on the history of commanded and filtered rates.
The two electrical equations (22a and 22b) for the motor windings contain two free parameters for
control of the motor speed; the sine and cosine drive voltages Vs and Vc . A voltage function is required that
will change the voltages in order to satisfy the desired conditions of speed, current and torque. For the ISS
CMGs, it is realized that the relatively weak motor driving the heavy wheel constitutes a slowly changing
system and thus in certain modes of operation it is assumed to be in a pseudo-steady-state condition. The
steady-state versions of the state equations (22) where dI dω
dt = dt ≈ 0 are

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

d(Vs + Vc ) = R(dIc + dIs ) + 2Ke dω) (36)

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.

Figure 6: Spinup Current I vs RPM

1. Linear Current Control


The current follows a very linear trend from 0 to 5000 RPM and then gradually reaches a plateau of
maximum current corresponding to the motor’s torque limit at nominal speed. At this point it abruptly drops
to steady-state values to overcome friction in the system and to maintain speed. The slope of the linear
dI
portion of the spin-up graph provides the desired current change per RPM ( dω ) for the controller. The ISS
Amp
CMGs exhibit a spin-up ramp of 0.000185 rpm = 0.00177Amp − sec. Here only the slope of the current is
of interest and not the actual values. Including the known current ramp value dI c
dω in the differential relation
for voltage from Eq. (36) gives

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

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

Parameter Value Units

Torque Constant, Kt 0.08 Nm/Apeak


Electrical Constant, Ke 0.014 Vpeak /rpm
Resistance (windings + on resistance), Rm 3.56 Ω/Phase
Inductance (coils), Lm 0.002 H/Phase
Inertia, Jm 7.1 kg m2
Drag Constant, Bm 0.00005 Nm/rad/s

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

Figure 8: Spin-up Test


control subsystem (TCS) and the electrical power consumed goes to the electrical power subsystem (EPS)
for effective (average) calculations of CMG power consumption. Essentially, the total power consumed in
the motor is turned into a simple resistor and its value sent to the EPS system. The EPS solves for current
and powers in the CMG as part of the solution for the whole ISS system. The CMG model development and
testing is completed and is deployed as part of the TS21 simulation.

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

Figure 10: Coasting Test


single-phase or a two-phase DC motor assuming the current versus speed curves are known for the respective
applications.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy