Comments on: ESP8266 NodeMCU Web Server: Control Stepper Motor (WebSocket) https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 19 Dec 2025 15:08:56 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-1140044 Fri, 19 Dec 2025 15:08:56 +0000 https://randomnerdtutorials.com/?p=106154#comment-1140044 In reply to Ramon.

Hi.
If you open the Javascript console on your web browser, do you get any errors?
Is the ESP8266 board close enough to your router to get a good Wi-Fi signal for a good communication between the browser and the ESP8266 server?

Regards,
Sara

]]>
By: Ramon https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-1139446 Thu, 18 Dec 2025 09:14:07 +0000 https://randomnerdtutorials.com/?p=106154#comment-1139446 Hello, I’ve been following this project with great interest, and after following all the steps, I’m getting the following message on the serial port:

Connecting to WiFi…
….192.168.1.37
LittleFS mounted successfully
WebSocket client #1 connected from 192.168.1.38
WebSocket client #1 disconnected

However, when I connect to the website, it takes a very long time to load, displays without CSS formatting, and then disconnects.

The serial port should display the following:

steps = message.substring(0, message.indexOf(“&”));

direction = message.substring(message.indexOf(“&”)+1, message.length());

Serial.print(“steps”);

Serial.println(steps);

Serial.print(“direction”);

Serial.println(direction);

notifyClients(direction);

notifyStop = true;

if (direction == “CW”) {
Serial.print(“CW”);
stepper.move(steps.toInt());

else {
Serial.print(“CCW”);
stepper.move(-steps.toInt());

but nothing is displayed.

I’ve tried many things, but I don’t know how to continue. I would appreciate any suggestions.

]]>
By: Miralem https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-1016210 Thu, 13 Mar 2025 15:43:36 +0000 https://randomnerdtutorials.com/?p=106154#comment-1016210 Sorry, I meant line 30

]]>
By: Miralem https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-1016206 Thu, 13 Mar 2025 15:32:04 +0000 https://randomnerdtutorials.com/?p=106154#comment-1016206 Thanks for the tutorial. A little tip: It is important that the coils of the motor are switched off when there is no action. That’s why I still have the function “stepper.disableOutputs();” in line 141. Regards, Miralem

]]>
By: Petko Petkov https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-991142 Fri, 13 Dec 2024 12:37:45 +0000 https://randomnerdtutorials.com/?p=106154#comment-991142 Hello!!!
Can I use a NEMA 17 stepper motor instead of this motor and a WeMos D1 WiFi UNO ESP8266 instead of a NodeMCU?

]]>
By: Sara Santos https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-776835 Fri, 19 Aug 2022 16:33:34 +0000 https://randomnerdtutorials.com/?p=106154#comment-776835 In reply to John.

Hi.
If you want to pass the parameters on the URL, use the following tutorial instead: https://randomnerdtutorials.com/stepper-motor-esp32-web-server/
We’re not selling that course anymore because some of the chapters are outdated-
We’re currently working on a similar eBook, with new content, and with updated subjects. It will be available in September or October.
So, stay tuned.
Thank you for supporting our work.
Regards,
Sara

]]>
By: John https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-776788 Fri, 19 Aug 2022 13:02:02 +0000 https://randomnerdtutorials.com/?p=106154#comment-776788 Hello great Santos’es (and maybe others)

Very great and learnfull site, but here I’m stuck at the speedstepper,
I want to http:///?direction=CCW&steps=20000 (for example)
But I tryed about 10000 diff ways to send, but no response at all, only what I
Type in on the website ‘Number of steps’ is the stepper responding

Greetings from the Netherlands

PS to bad I just missed the tutorials especialy the one to build a complete domotica system
https://randomnerdtutorials.com/build-a-home-automation-system-for-100/

]]>
By: Wawan Dharmawan https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-723928 Fri, 04 Feb 2022 16:00:05 +0000 https://randomnerdtutorials.com/?p=106154#comment-723928 Hi,
I want to thank you for this great tutorial. I’m totally newbie in this, but the steps in this tutorial are very clear so I can build this project successfully. I also learned how to upload files to the ESP8266, but how to delete unnecessary files already uploaded to the chip?
Regards,
Wawan

]]>
By: Sara Santos https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-702225 Tue, 23 Nov 2021 19:24:58 +0000 https://randomnerdtutorials.com/?p=106154#comment-702225 In reply to Will Frost.

Hi.
On the number input field, add value=”YOUR_VALUE”
Regards,
Sara

]]>
By: Will Frost https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-702216 Tue, 23 Nov 2021 18:23:12 +0000 https://randomnerdtutorials.com/?p=106154#comment-702216 Hi, thanks very much for this tutorial.
Can you advise how the entry box for number of steps can already contain a predefined value for whenever the page is loaded?
Most the time I’m always using the same number so it would useful if it was already there.
Kind regards,
Will.

]]>