Go Down

Topic: Arduino uno and EasyDriver (Read 1 time) previous topic - next topic

EM500

Hello
In order to control an EasyDriver shield I wrote a sketch found in a Michael Margolis book (8.13) but something does not work,
dirPin 2 works properly, but no signal comes out from stepPin 3.
Could you please give me a little help.
Thank in advantage

Fede

wildbill

You're missing a minus; this:
Code: [Select]
    else if(ch == '-'){
      step(steps);
      steps = 0;

should be this:
Code: [Select]

    else if(ch == '-'){
      step(-steps);
      steps = 0;

Go Up