Hi i am driving a stepper motor with a reprap A4988 driver in my setup i am also having a heater which is controlled by a relay. I have to keep the temperature constant by switching the relay, some times the motor stops working or it just moves up and down irrespective of the program when the relay is switched on and off . I am using PIC microcontroller to control this set up. I am not gettingby anto - Stepper Motors, Servo Motors, DC Motors