The author says he took "the audio output of an amplifier and added a clamping diode and feed the signal into one of the phases on the worm drive motor. To give the motor a louder sound I added a small DC voltage to the other phase. This coil had the oppisite polarity then that of the audio phase."
Apparently, only the lightsaber sound was added to the montage later. [Star Wars Blog]