Code for controlling Nema17 Stepper

With the correct code (such as my simple stepper code) you can easily have an hour, a day or a week between steps. Or a millisecond.

...R

Hi again,

Well, As I was searching about my problem that I mentioned in the above posts I find a thread that is maybe my solution in my code.

The Thread is talking about a bug that exists in Stepper Library.
The thread is here: Stepper Library Max speed bug - Bugs & Suggestions - Arduino Forum

Well, the guy has the same problem with me. His stepper.speed has a very much higher value above the 300 value of his potentiometer. (He set it in 0-500 values in a 200steps/rev motor).

Mine has the same problem above 150 value in my 400steps/rev motor.

So, this guy fix this bug, but I'm still can't understand how to use it.

Is there any way to write something in my code, so to have this bug fixed?
I tried to copy the fixed part in my code before my "setup" but I got errors.

Can you help me on this?

Thank you

So, this guy fix this bug, but I'm still can't understand how to use it.

Make exactly the same changes to the same files.

Is there any way to write something in my code, so to have this bug fixed?

No.

Can you help me on this?

I'm beginning to have my doubts.

Come on PaulS.. Don't make me feel bad..

I can't find the Stepper Library cpp file, to edit it.

And yes, it's not at documents/arduino/libraries...

In there I can find only the libraries I install myself...

There are two libraries folders - one for libraries that you download and one for Arduino-supplied libraries (that includes Stepper). Where did you install the IDE?

If simple solutions are not to your taste I will leave you in @PaulS's capable hands.

...R

I just copy it in my applications folder in my mac.

Google here, google there, search arduino playground, search the forum and I Still can't find it!

arghh!!!