Stepper Motor and Waveform generation