Comments on: ESP8266 NodeMCU Web Server: Control Stepper Motor (WebSocket) https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 17 Mar 2025 11:28:46 +0000 hourly 1 https://wordpress.org/?v=6.8.2 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.

]]>
By: Sara Santos https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-688732 Sun, 24 Oct 2021 17:03:22 +0000 https://randomnerdtutorials.com/?p=106154#comment-688732 In reply to Alain Falcoz.

Hi.
The onEvent() function is defined in the code itself.
void onEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len) {
switch (type) {
case WS_EVT_CONNECT:
Serial.printf(“WebSocket client #%u connected from %s\n”, client->id(), client->remoteIP().toString().c_str());
//Notify client of motor current state when it first connects
notifyClients(direction);
break;
case WS_EVT_DISCONNECT:
Serial.printf(“WebSocket client #%u disconnected\n”, client->id());
break;
case WS_EVT_DATA:
handleWebSocketMessage(arg, data, len);
break;
case WS_EVT_PONG:
case WS_EVT_ERROR:
break;
}
}
Then, we simply call that function later to use it.
Regards,
Sara

]]>
By: Alain Falcoz https://randomnerdtutorials.com/stepper-motor-esp8266-websocket/#comment-688186 Sat, 23 Oct 2021 13:40:13 +0000 https://randomnerdtutorials.com/?p=106154#comment-688186 Hi Rui ans Sara, again a very good tutorial ! but I am puzzled with onEvent()…
I understand that the onEvent() procedure plays a key role in the action, but I do not understand its origin. It does not appear in the .h included files.
Is onEvent a special procedure name ? Is there a special way to write it ?
How do we associate events with onEvent ?
For instance, WiFi object has a onEvent method : the smart guy who developed the WiFi library has written some private code to associate events to the method, but in this sketch, onEvent is a procedure, then… I am lost
Thank you for your help

]]>