A method for controlling the operation of a motor utilizing a universal motor control module. The method includes sampling at least one motor operating criterion during operation of the motor and executing a universal control algorithm at a predetermined periodic interval of an AC line signal. Execution of the algorithm provides a firing angle solution for an electronic valve for each periodic interval, thereby controlling the behavior of the motor. Additionally, the method includes firing the electronic valve at the calculated firing angle during each periodic interval such that the motor functions in accordance with desired operational parameters.