Comments on: ESP32 Web Server: Control a DC Motor (Arduino IDE) https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 14 Mar 2025 12:11:04 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: James https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-976196 Sat, 26 Oct 2024 14:54:42 +0000 https://randomnerdtutorials.com/?p=149533#comment-976196 Great tutorial and works perfectly for my actuator! However, I’ve been trying to add a delay of 30 seconds after selecting forward/backward movement, so it disables the outputs after the time period (essentially sending the stopMotor command automatically):

void moveForward(){
Serial.println(“Moving Forward”);
digitalWrite(enable1Pin, HIGH);
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, HIGH);
delay(30000);
digitalWrite(enable1Pin, LOW);
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, LOW);
}

It does not seem to change the pin states after the time period though.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-940495 Mon, 22 Jul 2024 09:51:17 +0000 https://randomnerdtutorials.com/?p=149533#comment-940495 In reply to Ross Skilleter.

Hi.
Make sure you install the libraries as we mention in the tutorial.
Delete any libraries with the same name you may have installed previously.
Once you have installed the libraries via .ZIP file, update them to the latest version in the Arduino IDe.
Regards,
Sara

]]>
By: Ross Skilleter https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-940022 Sun, 21 Jul 2024 06:22:31 +0000 https://randomnerdtutorials.com/?p=149533#comment-940022 Hi,
My problem is with AsyncWebServer library. Have tried lots of suggestions
off the web, no luck. here is the results readout.
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function ‘bool getMD5(uint8_t*, uint16_t, char)’:
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: ‘mbedtls_md5_starts_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_starts’?
74 | mbedtls_md5_starts_ret(&_ctx);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_starts
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: ‘mbedtls_md5_update_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_update’?
75 | mbedtls_md5_update_ret(&_ctx, data, len);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_update
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: ‘mbedtls_md5_finish_ret’ was not declared in this scope; did you mean ‘mbedtls_md5_finish’?
76 | mbedtls_md5_finish_ret(&_ctx, _buf);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_finish
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function ‘void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage
)’:
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:189:7: error: ‘ets_printf’ was not declared in this scope; did you mean ‘vswprintf’?
189 | ets_printf(“ERROR: Too many messages queued\n”);
| ^~~~~~~~~~
| vswprintf
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In member function ‘void AsyncWebSocketClient::_queueMessage(AsyncWebSocketMessage*)’:
C:\Users\Ross\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:549:7: error: ‘ets_printf’ was not declared in this scope; did you mean ‘vswprintf’?
549 | ets_printf(“ERROR: Too many messages queued\n”);
| ^~~~~~~~~~
| vswprintf

exit status 1

Compilation error: exit status 1

]]>
By: Barrois https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-939356 Fri, 19 Jul 2024 15:07:44 +0000 https://randomnerdtutorials.com/?p=149533#comment-939356 It works well with L298N up to 12v but then there is a problem with the BTS7960 the 3.3v outputs are too weak and you need CrusS0108E it seems

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-938538 Wed, 17 Jul 2024 16:46:03 +0000 https://randomnerdtutorials.com/?p=149533#comment-938538 In reply to Józef.

You’re welcome 😀

]]>
By: Józef https://randomnerdtutorials.com/esp32-web-server-dc-motor-arduino/#comment-938535 Wed, 17 Jul 2024 16:41:35 +0000 https://randomnerdtutorials.com/?p=149533#comment-938535 It works great – thank you very much

]]>