A motor controller comprising: an internal power bus filter configured to inhibit electrical and electromagnetic noise from being communicated between a spacecraft power bus associated with a spacecraft and an internal power bus of a reaction wheel assembly, RWA, bus; an arrangement of power switch elements providing a path for motor phase currents associated with an alternating current, AC, motor, the arrangement of power switch elements coupled between the AC motor and the internal RWA bus, characterized in that the power switch elements are Gallium Nitride (GaN) transistors; and in that the motor controller further comprises a digital control system coupled to the AC motor and the arrangement of power switch elements, the digital control system configured to detect and identify the AC motor (step 304), retrieve parameters associated with the AC motor from a memory (step 306), receive a command input, receive position sensor feedback (nodes 33 and 35) associated with the AC motor, and based on the command input, the position sensor feedback and the parameters associated with the AC motor, (i) control activation of the arrangement of power switch elements, and (ii) generate a data output, wherein the digital control system comprises a field oriented control, FOC, coupled to pulse width modulators (100 -1,100 -2, 100 -3) via nodes (52 -1, 52 -2, 52 -3), wherein the pulse width modulators are configured to perform spread-spectrum space vector pulse width modulation (SVPWM) under control of the FOC and the outputs of the pulse width modulators activate the arrangement of power switch elements. an internal power bus filter configured to inhibit electrical and electromagnetic noise from being communicated between a spacecraft power bus associated with a spacecraft and an internal power bus of a reaction wheel assembly, RWA, bus; an arrangement of power switch elements providing a path for motor phase currents associated with an alternating current, AC, motor, the arrangement of power switch elements coupled between the AC motor and the internal RWA bus, characterized in that the power switch elements are Gallium Nitride (GaN) transistors; and in that the motor controller further comprises a digital control system coupled to the AC motor and the arrangement of power switch elements, the digital control system configured to detect and identify the AC motor (step 304), retrieve parameters associated with the AC motor from a memory (step 306), receive a command input, receive position sensor feedback (nodes 33 and 35) associated with the AC motor, and based on the command input, the position sensor feedback and the parameters associated with the AC motor, (i) control activation of the arrangement of power switch elements, and (ii) generate a data output, wherein the digital control system comprises a field oriented control, FOC, coupled to pulse width modulators (100 -1,100 -2, 100 -3) via nodes (52 -1, 52 -2, 52 -3), wherein the pulse width modulators are configured to perform spread-spectrum space vector pulse width modulation (SVPWM) under control of the FOC and the outputs of the pulse width modulators activate the arrangement of power switch elements. detect and identify the AC motor (step 304), retrieve parameters associated with the AC motor from a memory (step 306), receive a command input, receive position sensor feedback (nodes 33 and 35) associated with the AC motor, and based on the command input, the position sensor feedback and the parameters associated with the AC motor, (i) control activation of the arrangement of power switch elements, and (ii) generate a data output, wherein the digital control system comprises a field oriented control, FOC, coupled to pulse width modulators (100 -1,100 -2, 100 -3) via nodes (52 -1, 52 -2, 52 -3), wherein the pulse width modulators are configured to perform spread-spectrum space vector pulse width modulation (SVPWM) under control of the FOC and the outputs of the pulse width modulators activate the arrangement of power switch elements.