More messing with code for the stepper motor. I am using sterowire and tiddue to dampen oscillations now.