Comments on: ESP8266 NodeMCU with Stepper Motor (28BYJ-48 and ULN2003 Motor Driver) https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 09 Feb 2024 20:58:31 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: John N https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-889633 Fri, 09 Feb 2024 20:58:31 +0000 https://randomnerdtutorials.com/?p=106084#comment-889633 Hi Sara/Rui, I just started fooling with one of these; initially using a nano to make sure all was well. Since my end desire is to use it remotely via wifi, your (another great) tutorial got me going in that direction. Oddly I wanted to see if I could make a half revolution by changing the statement stepper.moveTo(stepsPerRevolution); to stepper.moveTo(stepsPerRevolution/2); .That seemed to work but when the ESP was reset the motor moved 1/4 a revolution, then 1/2 revolution after that. Another interesting observation is that when it starts, it starts ccw, instead of cw. Most examples I see seem to indicate that the motor usually starts cw then when a negative number is applied to stepper.moveto it then goes ccw. Any thoughts on that?

]]>
By: Humaira Islam Shifa https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-832729 Sun, 30 Apr 2023 16:53:13 +0000 https://randomnerdtutorials.com/?p=106084#comment-832729 Hello!

I have collected all of the required parts to follow this tutorial. But I have brought a 12V 28BYJ-48 stepper motor mistakenly. Which changes should I make to follow this tutorial?

In my opinion, replacing the 5V DC power supply with a 12 DC power supply should be the only change I need to make. Though I can not be sure, as I have a very little experience with this.

Thank you.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-801771 Fri, 09 Dec 2022 17:43:54 +0000 https://randomnerdtutorials.com/?p=106084#comment-801771 In reply to Veit.

Hi.
It’s probably not the same library. However, it might be a compatible fork..
Regards,
Sara

]]>
By: Veit https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-801569 Thu, 08 Dec 2022 16:49:29 +0000 https://randomnerdtutorials.com/?p=106084#comment-801569 Hi
I downloaded the AccelStepper library.
The only weird thing is that it’s not by Mike McCauley, it’s by Patrick Wasp. The documentation is the same as far as I can see. The programs also look the same. I just hope that I have the right library.

]]>
By: James Cotter https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-725892 Sun, 13 Feb 2022 16:16:04 +0000 https://randomnerdtutorials.com/?p=106084#comment-725892 I am trying to put together a small project where in a stepper motor is turned 360 one revolution hourly at the top of the hour. Do you have any tutorials that give the basics on that ?Thanks

]]>
By: Pete https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-713865 Sun, 26 Dec 2021 22:38:58 +0000 https://randomnerdtutorials.com/?p=106084#comment-713865 You say that the code gives 2048 steps / rev, but at half-step it would give 4096 steps / rev. THe code sets up the motor as:
AccelStepper stepper(AccelStepper::HALF4WIRE, IN1, IN3, IN2, IN4);
which, if I understand correctly, defines a half-step sequence. Which is correct?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-696706 Tue, 09 Nov 2021 22:02:12 +0000 https://randomnerdtutorials.com/?p=106084#comment-696706 In reply to Dennis.

Hi.
That’s right.
That’s why we use that library for the ESP8266.
Regards,
Sara

]]>
By: Dennis https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-696652 Tue, 09 Nov 2021 20:24:57 +0000 https://randomnerdtutorials.com/?p=106084#comment-696652 Thanks for another great tutorial. Arduino has a blocking stepper library that I think gets installed by default. However, this is not a good one for the ESP8266 due to the fact that the ESP has a watchdog timer running by default and doesn’t like blocking code. So if you move just a little bit, then it will work, but if you move a lot, the WDT resets the board. A non-blocking library like your accelStepper is the way to go for sure.

]]>
By: Robert https://randomnerdtutorials.com/esp8266-nodemcu-stepper-motor-28byj-48-uln2003/#comment-688899 Mon, 25 Oct 2021 02:13:20 +0000 https://randomnerdtutorials.com/?p=106084#comment-688899 Superb work… Like always. I have only one question. Is this sketch somehow limited to port 80? If I tryed with other port then 80 the program doesn’t work… Thanks for all the great work =)

]]>