I am trying to control a stepper motor through arduino using C#. The program works perfectly fine at the first instance. But when i launch the program at the second instance it fails.
I have tried to integrate the autodetect function (http://playground.arduino.cc/Csharp/SerialCommsCSharp) and stepper control code together. But there is some issue in the code which lets it run perfectly only once. Kindly help me to solve the issue.
autodetect_v3.ino (5.39 KB)