Open patrickjane opened 4 years ago
Hi there, I know this is late to the party, but in case anyone is going through this I wanted to post my experience.
I have been successfully using the CheapStepper library with a nodeMCU board for a while now. Every so often I do get this soft reset issue, but for my use case it hasn't been an issue. If you're having issues getting the shaft to turn (I certainly did), I recommend you try using the moveDegrees() method rather than the move by steps version you've tried here. it's been more reliable for me. I've included a section of my working code below.
// Initalize Stepper object
CheapStepper stepper(D0,D1,D2,D3);
boolean clockwise = true;
boolean counterclockwise = false;
if (motorone_status == "ON") {
stepper.moveDegrees(clockwise, 180);
Serial.println("one turn of motor ");
server.send(200, "text/plain", "One spin sent!");
delay(2000);
motorone_status == "OFF";
stepper.off();
}
Hi there, I know this is late to the party, but in case anyone is going through this I wanted to post my experience.
I have been successfully using the CheapStepper library with a nodeMCU board for a while now. Every so often I do get this soft reset issue, but for my use case it hasn't been an issue. If you're having issues getting the shaft to turn (I certainly did), I recommend you try using the moveDegrees() method rather than the move by steps version you've tried here. it's been more reliable for me. I've included a section of my working code below.
// Initalize Stepper object CheapStepper stepper(D0,D1,D2,D3); boolean clockwise = true; boolean counterclockwise = false; if (motorone_status == "ON") { stepper.moveDegrees(clockwise, 180); Serial.println("one turn of motor "); server.send(200, "text/plain", "One spin sent!"); delay(2000); motorone_status == "OFF"; stepper.off(); }
Thank you good sir!
I am not entirely sure where the error lies here, but I am trying to use a NodeMCU v1 together with a ESP-12E Motor Shield and a 28BYJ stepper motor. According to this link, the pins shall be 5, 0, 4, 2 or D1, D3, D2, D4.
However, when I try to spin the motor, I get a crash loop while I can hear the motor, but the shaft is not spinning. This is how the crash looks:
This is the code:
Can someone help me out? Is the NodeMCU or the shield maybe not compatible with this library?
I do know that the motor works with that board, because I was using the LUA firmware before, but now want to use C++/Arduino IDE.