Hey man i keep getting this( 'const char*' to 'char' [-fpermissive] )when i try to verify code in Arduino IDE when trying to build the web server. It high lights just one line WiFi.begin(ssid, password); . My password and wife password is correct.
Hi man, can you make a guide where i can send data via website to servo? what i mean is there is a dropbox/inputbox where i can input numbers then send it to servo using esp8266 or Wemos R1?
Hi, great video. Very useful. I have a question, is it possible to attach two Micro servos to the ESP32 and how would change the general programm and conecctions? Thank you so much
In the loop, the sample code performa a write to the servo object. Does the servo or does the esp32 know the current position of the shaft? For example, if the shaft is at 45 and I write 45, the shaft should not move, right? Or, should the shaft perform a sweep to calibrate itself? 8 guess that's ultimately what I am asking is do I need to calibrate the servo before writing degree values to the servo?
Hi Rui, I think it's a great explanation of how to operate the Servo via the web server. But I have one more question, how can I reduce the speed of the servo in this application
Does anyone know up an upgraded board from the Wemos D1 R2? I read on a forum that there isn't such a thing. I really want to stick with the same layout as the R2
Nice Video. I have got a question? If I want to control this Servomotor not from WiFi Network, I want it as an Access Point Wifi. So what I have to do?
Hello friend: First, excuse me if my English is not good. His tutorials are excellent, I've seen others and I really understand much more about his. I have a question. I modified this video of the esp32 with servo and the pin I connected a led and the idea is to make it modulate with the slider with pwm but I did not do well. You can help me? I appreciate it And thank you for enlightening your knowledge.
Okay, well I tried the existing basic servo example with ESP32 CAM but when I uploaded the code nothing happened to the servo and there were no errors. May I know how to resolve it
@cyber punk This one took a while to find out the answer to, but the main problem is that it’s getting confused with another built in Servo library that is built in to the Arduino IDE. Here is how to fix the issue. First of all, you will need to install a different library. It’s the same exact thing, you just install it differently then the video says. Go to Sketch, hover over include library, and click “Manage Libraries.” From here, you can search “Esp32 Servo” in the search tab. When you click enter, it should be the first one that comes up titled “ESP32Servo.” Click install and wait for it to install. Once it installed, you can click close to close that tab. Then change the first line of code that says “#include ” and change it to “#include ” that should solve the issue, and get the right library. However, for me, it says that there is a timed out warning waiting for packet content error, I’m not sure why. (“Could not auto-detect Flash size”) Aside from that, I hope this helps you and others trying to solve this issue.
@cyber punk Solved! Looked like I connected the Servo to the wrong GND Pin. Do the same thing as I told you the comment before, and make sure you connect the Servo to the right pins!
@@philpayne4579 look up Rui Santos's video on making an esp32 webcam for an idea of how it could work. you can make code to control a servo motor with the blynk library. I've never tried this combo but it seems like it could work. Also, you could get a raspberry pi zero. much easier to connect a camera and servos imo.
@@tseawell90 I tried using blynk last night but couldn't get video to stream on iOS on xx.xx.xx.xx:81/stream. I will try blynk again on Android because I think it was an iOS problem and not an ESP32 problem because there's definitely a video stream at that address
@@philpayne4579 Ok cool. check out this link community.blynk.cc/t/esp32-cam-video-stream-on-blynk/40818/24. user gydota shares code that seems to work.
Hi, in my case it gives this, any help, thanks: WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s). In file included from C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master\examples\01-SimpleServo\01-SimpleServo.ino:1:0: C:\Users\Utilizador\Documents\Arduino\libraries\Servo\src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." ^ Multiple libraries were found for "Servo.h" Used: C:\Users\Utilizador\Documents\Arduino\libraries\Servo Not used: C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master Not used: C:\Program exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.
i have this error #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." ^ Multiple libraries were found for "WiFi.h" Used: C:\Users\basoc\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi Not used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\WiFi Multiple libraries were found for "Servo.h" Used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\Servo exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1.
@zam hafzam I had this same issue. It has to do to where you connected your Servomotor. After reopening the packaging on my esp32, I looked at the pins and it turns out that I had the wrong GND Pin. Even if you’re sure, check to see if your Servo is connected to the right pins! You have 1 pin that is connected to the flash row. (Pins 6-11 I think) Most likely you have misplaced your GND Pin. Hope this helps!
You can find the complete project details (schematics + source code) on my blog: randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/
I need to use a stepper motor or a normal electric motor instead of a servo motor, how should I do it?
Hey man i keep getting this( 'const char*' to 'char' [-fpermissive] )when i try to verify code in Arduino IDE when trying to build the web server. It high lights just one line WiFi.begin(ssid, password); . My password and wife password is correct.
Hi man, can you make a guide where i can send data via website to servo? what i mean is there is a dropbox/inputbox where i can input numbers then send it to servo using esp8266 or Wemos R1?
Hello. My esp32 have no vin.
May i use other pin? Cause my esp32 has no vin.🥺 still Fatal occured error🥺
I got lots of errors, but switching from 5 to 3.3V finally got it to work.
Do you mean the power supply? Btw thanks for sharing
nvalid conversion from 'const char*' to 'char*' [-fpermissive]
wonderful, and how to move two servo motors?
Hi, great video. Very useful. I have a question, is it possible to attach two Micro servos to the ESP32 and how would change the general programm and conecctions? Thank you so much
This is wonderful Rui Santos
Great video. can u share how to control DC Motor from Web Server with esp? thanks
Great Video!
a very good job, thank you RUI
I have a problem to control two servos with two sliders. can you help me to do this? thank you in advance
In the loop, the sample code performa a write to the servo object. Does the servo or does the esp32 know the current position of the shaft? For example, if the shaft is at 45 and I write 45, the shaft should not move, right? Or, should the shaft perform a sweep to calibrate itself? 8 guess that's ultimately what I am asking is do I need to calibrate the servo before writing degree values to the servo?
OK, Solo que con la libreria Servo.h, no funciona hay que utilizar esta libreria #include , todo lo demás parece estar bien. Un saludo desde España.
Is there a clearner way of adding in the html? Maybe by referencing the html document somehow?
Could you use a NodeMCU instead? Thanks for the great tutorial!
probado y funciona con nodemcu
thanks! I'm going to try this when I get my esp32. I'm going to attempt to integrate it with IFTTT webhooks.
thanks man this works great
thank you very much bro it's totally working alright
Hi Rui, I think it's a great explanation of how to operate the Servo via the web server. But I have one more question, how can I reduce the speed of the servo in this application
My servo only rotates 90 degrees, I have this same issues with different .ino files as well
hello my servo motor turns 90 degrees when I get 180 what could be the problem
Hello, Rui Santos
can your ESP32 diagram be made with Fritzing? If I have a PCB and a schematic, how do I make it?
Does anyone know up an upgraded board from the Wemos D1 R2? I read on a forum that there isn't such a thing. I really want to stick with the same layout as the R2
Does this work with the Seeeduino Xiao ESP32C3?
Nice Video. I have got a question? If I want to control this Servomotor not from WiFi Network, I want it as an Access Point Wifi. So what I have to do?
How do you know what the actual position of the servo is? there doesn't appear to be any feedback in the program.
Hello friend: First, excuse me if my English is not good. His tutorials are excellent, I've seen others and I really understand much more about his. I have a question. I modified this video of the esp32 with servo and the pin I connected a led and the idea is to make it modulate with the slider with pwm but I did not do well. You can help me? I appreciate it And thank you for enlightening your knowledge.
Do I need to have internet access for using the slider ??
No
Viva.
poderei adicionar um outro servo de outro fabricante?
does this only works on local network?
I keep getting client disconnected every time I try to put a servo position in on the webpage
How to control servo which is connected to arduino pins through esp wifi module (through a web server).
Okay, well I tried the existing basic servo example with ESP32 CAM but when I uploaded the code nothing happened to the servo and there were no errors. May I know how to resolve it
please make a node mcu slider for LED
thanks bro
what if I want to add another servo with different controls??
Great Video. Theres a way to control true MQTT?
How to do multiple web pages as they able to hyperlink with each other using "esp"
Can i change the 180 degree to 330 degree?
servo.h isnt working! its saying it only runs on avr,arm etc
x2
@cyber punk
This one took a while to find out the answer to, but the main problem is that it’s getting confused with another built in Servo library that is built in to the Arduino IDE. Here is how to fix the issue. First of all, you will need to install a different library. It’s the same exact thing, you just install it differently then the video says. Go to Sketch, hover over include library, and click “Manage Libraries.” From here, you can search “Esp32 Servo” in the search tab. When you click enter, it should be the first one that comes up titled “ESP32Servo.” Click install and wait for it to install. Once it installed, you can click close to close that tab. Then change the first line of code that says “#include ” and change it to “#include ” that should solve the issue, and get the right library. However, for me, it says that there is a timed out warning waiting for packet content error, I’m not sure why. (“Could not auto-detect Flash size”) Aside from that, I hope this helps you and others trying to solve this issue.
@cyber punk
Solved! Looked like I connected the Servo to the wrong GND Pin. Do the same thing as I told you the comment before, and make sure you connect the Servo to the right pins!
@@austinhendrick5403 thak you so much!
Rafael Robles No problem!
wifi is not getting connected,could anyone solve this please
Hey boss, can you not use tuniot to write the code it's limit the way to write the code and understanding of webpage.
Great.
why this isn't working with safari browser?
WiFi.begin(ssid, password); code error
Serial.println(); you need to put this before the Serial.print("Connecting to ");
@@MAS_momo No... I just tried.
anyone know how to do this with 3 servos and on the web page have 3 sliders?
Can we use esp32-cam for both video streaming and servo control from web server
Try the blynk app. You can display servo controls and video stream on one screen.
@@tseawell90 Really? I couldn't find a way to do that in blynk. Do you have any links to projects that do that?
@@philpayne4579
look up Rui Santos's video on making an esp32 webcam for an idea of how it could work. you can make code to control a servo motor with the blynk library. I've never tried this combo but it seems like it could work. Also, you could get a raspberry pi zero. much easier to connect a camera and servos imo.
@@tseawell90 I tried using blynk last night but couldn't get video to stream on iOS on xx.xx.xx.xx:81/stream. I will try blynk again on Android because I think it was an iOS problem and not an ESP32 problem because there's definitely a video stream at that address
@@philpayne4579 Ok cool. check out this link community.blynk.cc/t/esp32-cam-video-stream-on-blynk/40818/24. user gydota shares code that seems to work.
invalid conversion from 'const char*' to 'char*' [-fpermissive]
Replate code:
const char* ssid = "YOUR_SSID";
to
char ssid[] = "";
Does this only work for local networks?
@6:28 you mention about adding my network info, what info? do we have to have internet?
internet is not required, wifi is necessary for accessing the web page with the slider.
l need connect 1 display, 1 servo, the power is sufficient?
VU pin on nodemcu is connected to the USB source, so I guess it's ok ..
Help me! Can an external battery be used for this device for 1-2 years
Wifi is power hungry so no
Hi, in my case it gives this, any help, thanks:
WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master\examples\01-SimpleServo\01-SimpleServo.ino:1:0:
C:\Users\Utilizador\Documents\Arduino\libraries\Servo\src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
#error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
^
Multiple libraries were found for "Servo.h"
Used: C:\Users\Utilizador\Documents\Arduino\libraries\Servo
Not used: C:\Users\Utilizador\Documents\Arduino\libraries\ESP32-Arduino-Servo-Library-master
Not used: C:\Program
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
how to 2 servo ? master tutorial
can i do this also with an esp8266
Just change librery
#include
install: wharehauorawifimanager by tzapu
i have this error
#error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\basoc\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\WiFi
Multiple libraries were found for "Servo.h"
Used: C:\Users\basoc\Downloads\arduino-nightly-windows\arduino-nightly\libraries\Servo
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
I have the same problem
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
@zam hafzam
I had this same issue. It has to do to where you connected your Servomotor. After reopening the packaging on my esp32, I looked at the pins and it turns out that I had the wrong GND Pin. Even if you’re sure, check to see if your Servo is connected to the right pins! You have 1 pin that is connected to the flash row. (Pins 6-11 I think) Most likely you have misplaced your GND Pin. Hope this helps!
Guy uses "indus" code that is hard to understand, sorry