Hello, I am writing stepper motor control with magnetic sensor.
When sensor is 0 and motor pulse between 0-600 motor is running properly if I turned the sensor on and off unlimited motor working properly . But when I raise motor pulse value over 600 motor doesnt work.
If I turned on sensor while motor working motor is stopping. Actually motor is strain.
I select in the progress bar value c# (0-1100) its speed value and this value write to arduino (speed=inputstring)with serial port. Arduino reading this value.
What you are describing in your Reply #7 is how you send values to the Arduino.
But the problem you described in your Original Post seems to arise after the Arduino has received the value correctly.
Now, when the Arduino receives a value of 600, how does it use it?
When you have a problem like this it is usually easier to put the problem value (600 in this case) directly into the Arduino program so that the problem is not confused by the business of receiving data.
The real issue is step motor working every speed without magnetic sensor. But when ı take over the magnetic sensor motor doesnt work if speed over 600. 600= motor pulse value*step(motor driver step number each degree). If motor acceleration is reduced the problem nothing has changed.
Try commenting out all the print statements and see if that helps. Serial.print() is very slow and it may prevent AccelStepper from being called sufficiently frequently.
Vecihi:
is it arduino or c# ? İf its arduino I published all code as you know
ınfact ı cant understand you
In Reply #10 I suggested that you comment out the print statements
In Reply #11 you said you did and nothing changed
In Reply #13 I asked you to post the program
In Reply #14 you posted a little piece of the program
In Reply #15 I asked you to post the complete program
ın reply 11 I said : Clean all print statements and ı said nothing changed . is it freak?
ın reply 12-13-14 : Already I published complete program in first reply. I published just al little print statements because other program in my first published code.
and my last comment ı asked all codes means:arduino or c#.