-->
Page 2 of 2

Re: ESP8266 Soft Reset with Step Motor

PostPosted: Wed Nov 14, 2018 3:40 am
by FEC
I have tried both yield() and delay(0), and it no longer crashes. The motor makes a notice and vibrates but does not actually move? Would the delay stop it from actually moving ?

Re: ESP8266 Soft Reset with Step Motor

PostPosted: Thu Nov 15, 2018 4:07 am
by QuickFix
With not much to go on:
  • Make sure the GPIO's in your stepper()-method correspond to the correct winding of the stepper motor
  • Make sure that the "Firing order" of the GPIO's is correct
  • Make sure there's enough juice to drive the stepper motor windings
Better first create (or find) a test project consisting of a controller (an actual Arduino or an ESP), two buttons and a stepper motor and write code that will let your motor step CW or CCW depending on which button you press.

When that's sorted, merge it into your (this) current project.