Comments on: ESP32 with Stepper Motor (28BYJ-48 and ULN2003 Motor Driver) https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 13 Apr 2025 03:12:25 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: iliaMalek https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-1026399 Sun, 13 Apr 2025 03:12:25 +0000 https://randomnerdtutorials.com/?p=105321#comment-1026399 Hi.
thanks so much for your tutorial,
If you have time please make a tutorial for
Wire Stepper Motor to the ESP32-CAM
Thanks.

]]>
By: Michael https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-1018354 Thu, 20 Mar 2025 19:09:06 +0000 https://randomnerdtutorials.com/?p=105321#comment-1018354 Its probably something that I have/have not done as this is my very first venture into electronic type stuff, but it dont work for me 🙁
If I view the serial monitor while the esp is connected to the pc it says clockwise, anti-clockwise, etc but nothing happens with the stepper. I am using a external 5V power supply and everything is wired as shown in the above diagram, but im getting no led on the esp or the driver board lighting up.
Anyone have any ideas.

]]>
By: Frans https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-995885 Mon, 30 Dec 2024 16:58:47 +0000 https://randomnerdtutorials.com/?p=105321#comment-995885 Works fine! Motor is running quit hot though…

]]>
By: Maleesha Priyanjana https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-995763 Mon, 30 Dec 2024 05:31:25 +0000 https://randomnerdtutorials.com/?p=105321#comment-995763 Very clear explanation. Thank you!

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-990063 Mon, 09 Dec 2024 11:29:50 +0000 https://randomnerdtutorials.com/?p=105321#comment-990063 In reply to Jan.

Hi.
This worked well with the ULN2003, but if you prefer, you can also use a ULN2001 (but I haven’t tried this one).
Regards,
Sara

]]>
By: Jan https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-990030 Mon, 09 Dec 2024 08:38:26 +0000 https://randomnerdtutorials.com/?p=105321#comment-990030 Hi,

I’m not sure if the ULN2003 works well with 3.3V logic – wouldn’t it be better to use the ULN2001?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-970186 Thu, 10 Oct 2024 13:52:57 +0000 https://randomnerdtutorials.com/?p=105321#comment-970186 In reply to Max Patrone.

Thanks for providing that info.
Regards,
Sara

]]>
By: Max Patrone https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-969882 Wed, 09 Oct 2024 22:01:21 +0000 https://randomnerdtutorials.com/?p=105321#comment-969882 In reply to Max Patrone.

I reply to myself 🙂 because (maybe) I found the way.
To cool down the temp of the stepper is possible to use the AccelStepper library and the method disableOutputs() allows to turn off the motor (by setting all pin to LOW) and there’s no current flowing in the stepper, until next “move” command will be requested.

]]>
By: Max Patrone https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-969639 Wed, 09 Oct 2024 12:45:41 +0000 https://randomnerdtutorials.com/?p=105321#comment-969639 I used this tutorial and part of the code to write a ESP32 program to control the same stepper and driver used this by webhooks (final project is to control the blades of the “veneziane” blinds at home).

I did the same already using ESPhome and Home Assistant but I need to remove Home Assistant and control the steppers (physically connected to my blinds) using webhooks.

The point is : both solutions works fine but while the ESPhome solution has no issue, this solution (that I need) makes the stepper motor so hot, even if the motor is still long time (without any moves).

In the ESPhome yaml file there a directive that ask the driver/motor to sleep when not in use (sleep_when_done : true). Maybe that’s the magic ? is there any similar method to perform “sleeping” and cold down the stepper temp ?

thanks so much for your tutorial, Grazie ! 🙂

]]>
By: Antonio Testa https://randomnerdtutorials.com/esp32-stepper-motor-28byj-48-uln2003/#comment-903238 Thu, 04 Apr 2024 20:00:32 +0000 https://randomnerdtutorials.com/?p=105321#comment-903238 Since the library stepper.h block the microcontroller while the stepmotor is moving, I decide to create a nonblocking stepmotor library based on timer/interrupts so that the microcontroller is free even when the stepmotor is moving. It is able to manage both types of stepmotor: Nema17 and 28byj-48, The NewStepper.h is available at https://github.com/AntonioFromBrazil/NewStepper

]]>