 Before the advent of solid state electronics, "camshaft controllers" were used to control the speed of electric motors.A camshaft, driven by an electric motor or a pneumatic motor, was used to operate contactors in sequence.By this means, resistors or tap changers were switched in or out of the circuit to vary the speed of the main motor.