Guide on Accelstepper

Thank you so much Michael for your reply.

I am sorry as i cannot post it now as i am not with my laptop.

However i would like to explain my code a little bit:

#include accelstepper
Define the pin
Declare variable
( float speed, float acceleration)

Void setup
( serial begin(9600);
Set.speed (speed)//speed=variable i declare;
.... Set other parameter such as set.moveTo()
)

Void loop
(
While (serial.available == 0 )
{}// to wait for my input
Speed = read.parseFloat;

..... Etc and other parameter.

Stepper1.runToPostion()
)

I am so sorry if it is confusing, but this is the best i think i can do. I will post the full code as soon as possible .

Thank you so much.